版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1,Chapter 5 : Memory extension,Microcontroller Principle and Application,主讲教师:黄英,2,Contents:,5.1 Memory extension introduction,5.2 Program memory extension,Chapter 5 Memory extension,5.3 Data memory extension,Home work,3,5.1 Memory extension introduction,5.1.1 System extension & its structure,5.1.2
2、Memory extension & addresses arrangement,Contents:,Return,4,5.1.1 System extension and its structure,1. Structure of system extension,2. System Bus & its construction method,Contents:,Return,5, Extension objects: ROM, RAM, I/O interface circuit, etc.,Fig. 1 The structure of system extension,1. Struc
3、ture of system extension,6, In order to realize system extension, the first thing is:,to construct system bus,Return,7,2. System Bus & its construction method,(1)System Bus, System Bus is divided into three groups:,AB、DB、CB,8, Address Bus(AB), Carry address information. Single direction: MCU Memory,
4、 I/O interface Its number determines the number of memory cells: Maximal extension space:,n 2n,216 cells = 64KB,9, Data Bus(DB), Carry data information Bi-direction: MCU Memory, I/O interface Bit number:,Word number(8 bits),10, Control Bus(CB), Carry control information Bi-direction : MCU Memory, I/
5、O interface,11,(2)System Bus Construction, Address Bus: P0(low 8-bit address lines): needs 8-bit address latch(74LS273, 74LS373) P2(high address lines): dont need when 256 bytes(extended memory) Data Bus: P0 Control Bus: ALE, PSEN, EA, RD, WR,12,Fig. 2 Construction Diagram of System Bus Extension,Re
6、turn,13,5.1.2 Memory extension & addresses arrangement,Contents:,1. Memory System of Microcontroller,2. Address Searching Technology of Memory Extension,Return,14,1. Memory System of Microcontroller,Fig. 3 Memory Space Arrangement of 8051 Memory System,Return,15,2. Address Searching Technology of Me
7、mory Extension,To solve the followings: (1)Address arrangement of each expanded memory chip. (2)Selection of each expanded memory chip. (The main problem) 2 ways: Line-Selection Method Encoding Method,16,(1) Line-Selection Method Uses address line directly. Suitable for expanding memory in small sca
8、le.,17,(2) Encoding Method Uses encoder to produce chip-selection signal. Dual 2-4 encoder: 74LS139 3-8 encoder: 74LS138 Suitable for expanding memory in large scale.,Return,18,5.2 Program memory extension,5.2.1 Read Only Memory(ROM),Contents:,5.2.2 Typical extension Chip of Program Memory,5.2.3 Ext
9、ension examples of Program Memory,Return,19,5.2.1 Read Only Memory(ROM),1. Mask ROM 2. PROM/otpROM PROM: Programmable ROM OtpROM: One Time Programmable ROM 3. EPROM EPROM: Erasable Programmable ROM Types: 2716(2KB8),2732(4KB8), 2764(8KB8),27128(16KB8), 27256(32KB8), etc. 4. EEPROM(E2PROM) E2PROM: El
10、ectrically Erasable Programmable Types: 28C16,28C17,2817A, etc. 5. Flash ROM Types: 28F256, 28F516, etc.,Return,20,5.2.2 Typical Extension Chip of Program Memory,1. Pins of EPROM 2716(2KB8),2. Working Modes of EPROM 2716,Contents:,Return,21,Fig.4 Pins Arrangement of 2716,1. Pins of EPROM 2716(2KB8),
11、 211 A0A10,22,2. Working Modes of EPROM 2716,five types: Read Unselect Programming Program Verification Programming forbidden,Return,23,5.2.3 Extension examples of Program Memory,1. Single Chip Extension,Contents:,2. Multi-Chip Extension,Return,24,1. Single Chip Extension, EPROM: 2716(2KB8) 211 A0A1
12、0 2328 P2.2P2.0 P0.7P0.0 P2.7(Chip Selection Line),25,Fig. 5 Single Chip Extension of Program Memory,26,There are 16 overlap areas(mapping areas): P2.6P2.3 = 0000FFFF, 24 =16,Return,Address Arrangement: 8000H 87FFH,27,2. Multi-Chip Extension, Two EPROMs: 2764(8KB8), total space: 16KB8 213 A0A12 2528
13、 P2.4P2.0、 P0.7P0.0、 P2.7(Chip Selection Line),28,Fig. 6 Multi-Chip Extension of Program Memory,29,Address Arrangement: Chip #1: 0000H 1FFFH, Chip #2: 8000H 9FFFH,Return,30,5.3 Data memory extension,5.3.1 Random-Access Memory(RAM),Contents:,5.3.2 Typical extension Chip of Data Memory,5.3.3 Examples
14、of extension Data Memory,Return,5.3.4 Features and usage of memory system,31,5.3.1 Random-Access Memory(RAM),1. SRAM(Static RAM) 2. DRAM(Dynamic RAM),Return,32,5.3.2 Typical Extension Chip of Data Memory,6116(2KB8): 211 A10A0 6264(8KB8): 213 A12A0,33,Pins Arrangement of SRAM 6116(2KB8),34,2. Working
15、 Modes of SRAM 6116,4 types: Read Write Unselect Forbidden,Return,35,5.3.3 Examples of Extension Data Memory,1. Single Chip Expanding,Contents:,2. Multi-Chip Expanding,Return,36, 6116(2KB8) 211 A10A0 2328 P2.2P2.0 P0.7P0.0,1. Single Chip Expanding,37,Fig. 8 Single Chip Extension of Data Memory,38,Ad
16、dress Arrangement: 0000H 07FFH,Return,39,2. Multi-Chip Expanding, Four SRAMs: 6116(2KB8) total space: 8KB8 211 A10A0,(1)Adopts: Line-Selection Method,(2)Adopts: Encoding Method,Return,40,(1)Adopts: Line-Selection Method,211 = 2328 P2.2P2.0 P0.7P0.0 P2.6P2.3(4 Lines Selection), Four SRAMs: 6116(2KB8)
17、 total space: 8KB8 211 A10A0,41,Fig. 9 Multi-Chip Extension of Data Memory,42,Address Arrangement: Chip #1: 7000H 77FFH Chip #2: 6800H 6FFFH Chip #3: 5800H 5FFFH Chip #4: 3800H 3FFFH,43,(2)Adopts: Encoding Method,211 = 2328 P2.2P2.0 P0.7P0.0 P2.5P2.3(For encoder pins:A,B,/G), Four SRAMs: 6116(2KB8)
18、total space: 8KB8 211 A10A0,44,Fig. 11 Multi-Chip Extension of Data Memory (Encoding Method),45,Address Arrangement: Chip #1: 0000H 07FFH Chip #2: 0800H 0FFFH Chip #3: 1000H 17FFH Chip #4: 1800H 1FFFH,Return,46,5.3.4 Features and usage of memory system,1. Features of memory system,Contents:,2. Usage
19、 of memory system,Return,47,1. Features of memory system,(1)Program memory & data memory exist at the same time.,(2)Internal & external memory exist at the same time.,4 physical memory spaces: Internal program memory space External program memory space Internal data memory space External data memory
20、 space,3 logic memory spaces: 64KB internal & external program memory space 256 bytes internal data memory space 64KB external data memory space,(3) The addresses of program memory are continuous.,Return,48,2. Usage of memory system,(1)Distinguish memory space Distinguish internal program and data memory to read internal ROM: MOVC to read internal
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 建筑拆除团队角色分工方案
- 建筑拆除施工振动控制方案
- 2026江西抚州宜黄县公共文化服务中心(博物馆)招募就业见习人员2人备考题库及一套参考答案详解
- 2026安徽寿州控股集团有限公司人才引进11人备考题库及答案详解(名校卷)
- 机电设备接地数据记录方案
- 2026浙江台州循环经济发展有限公司招聘6人备考题库及参考答案详解一套
- 钢结构通廊防火涂料应用方案
- 2026广东潮安区人民医院第一批招聘合同工31人备考题库附答案详解(综合题)
- 2026中国中医科学院西苑医院招聘药学部工作人员2人备考题库(事业编)及答案详解(夺冠系列)
- 河道水域划分与使用管理方案
- 煤矸石路基施工工艺
- 授权:如何激发全员领导力
- 住宅项目项目部实施计划书方案
- 《大学英语英语六级》教学大纲
- GB/T 2820.5-2009往复式内燃机驱动的交流发电机组第5部分:发电机组
- 食堂卫生工作检查表
- 特种经济动物生产学 第七章 鹿课件
- 燃料电池原理及应用课件-002
- 质量在我心中,质量在我手中
- 2022年第39届全国中学生物理竞赛预赛试题(含参考答案)
- 绿色建造-绿色施工
评论
0/150
提交评论