Chapter 5 : Memory extension & I/O extension Microcontroller Principle and Application 主讲教师:黄英 1 Contents: Memory extension introduction Program memory extension Chapter 5 Memory extension & I/O extension Data memory extension I/O extension introduction I/O interface chip: 8255 Keyboard interface LED Displayer interface Home work (1) Home work (2) 2 Memory extension introduction System extension & its structure Memory extension & addresses arrangement Contents: Return 3 System extension and it’s structure 1. Structure of system extension 2. System Bus & its construction method Contents: Return 4 · Extension objects: ROM, RAM, I/O interface circuit, etc. Fig. 1 The structure of system extension 1. Structure of system extension 5 · In order to realize system extension, the first thing is: to construct system bus Return 6 2. System Bus & its construction method (1)System Bus · System Bus is divided into three groups: AB、DB、CB 7 ① Address Bus(AB) · Carry address information. · Single direction: MCU → Memory, I/O interface · Its number determines the number of memory cells: · Maximal extension space: n → 2n 216 cells = 64KB 8 ② Data Bus(DB) · Carry data information · Bi-direction: MCU Memory, I/O interface · Bit number: Word number(8 bits) 9 ③ Control Bus(CB) · Carry control information · Bi-direction : MCU → Memory, I/O interface 10