Chapter 11Chapter 12 Memory system designI/O system design Objectives: The importance of bus buffering How the 8088 addresses (accesses) memory - I/O ports.

Slides:



Advertisements
Similar presentations
Chapter 2 (cont.) An Introduction to the 80x86 Microprocessor Family Objectives: The different addressing modes and instruction types available The usefulness.
Advertisements

Basic Microprocessor Timing
8088/86 Microprocessors and Supporting Chips
The Intel 8255 Programmable Peripheral Interface chip is used to give the microprocessor (8088) access to programmable input/ output devices. It has three.
A Design Example An Exact Calculator. Exact Calculator Manipulating Large Integer Values Operations: – +, -, *, /, %, And, Or, Xor, Not, Power Functions.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 4.
Memory Address Decoding
Khaled A. Al-Utaibi 8086 Bus Design Khaled A. Al-Utaibi
Memory & IO Interfacing to CPU
Microprocessor System Design. Outline Address decoding Chip select Memory configurations.
SYSTEM CLOCK Clock (CLK) : input signal which synchronize the internal and external operations of the microprocessor.
Chapter 2 Number conversion (BCD) 8086 microprocessor Internal registers Making of Memory address.
The 8085 Microprocessor Architecture
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
MEMORY ORGANIZATION Memory Hierarchy Main Memory Auxiliary Memory
Memory Interface Dr. Esam Al_Qaralleh CE Department
Designing the 8086/8088 Microcomputer System
Chapter 10 Hardware Details on the 8088 Objectives: The general specification on the 8088 microprocessors The processor’s control signal names and specifications.
P Address bus Data bus Read-Only Memory (ROM) Read-Write Memory (RAM)
Design of Microprocessor-Based Systems Hardware Detail of Intel 8088 Dr. Esam Al_Qaralleh CE Department Princess Sumaya University for Technology.
Micro-controller or embedded controller
Architecture of the 8051 INTERNAL DATA BUS Oscillator & Timing Programmable I/O (32 Pins) 80C51 CPU 64K byte Expansion Control Serial I/O 4K Program Memory.
Memory Interfacing ECE 511: Digital System & Microprocessor.
Microcomputer & Interfacing Lecture 2
University of Tehran 1 Microprocessor System Design Omid Fatemi Memory Interfacing
MODES OF Details of Pins Pin 1 –Connected Ground Pins 2-16 –acts as both input/output. Outputs address at the first part of the cycle and outputs.
1 LHO 12 Interfacing. 2 A simple bus bus structure ProcessorMemory rd'/wr enable addr[0-11] data[0-7] bus Wires: –Uni-directional or bi-directional –One.
Memory interface Memory is a device to store data
Memory interface Memory is a device to store data
Memory and I/O Interfacing
8088 I/F with basic IO, RAM and 8255
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Address Decoding Memory/IO.
Fig 8-4 p-341. S 5 =IF flag (interrupt Enable). S 6 =0 always.
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Basic I/O Interface A Course in Microprocessor
Memory interface Memory is a device to store data
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
Minimum System Requirements Clock Generator Memory Interfacing.
Memory Interface A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
Khaled A. Al-Utaibi  Memory Interface and the 3 Buses  Interfacing the 8088 Processor  Interfacing the 8086 Processor  Interfacing.
MODES OF Details of Pins Pin 1GND –Connected Ground Pins 2-16 AD14-AD0–acts as both input/output. Outputs address at the first part of the cycle.
8086/8088 Hardware System. Typical Microprocessor Memory System CPU Memory Control Address Data.
1 Memory Systems Computer Architectures M. 2 EPROM memories Access time: ns VPP A16 A15 A12 A7 A6 A5 A4 A3 A2 A1 A0 D0 D1 D2 GND VCC PGM* NC A14.
MICROPROCESSORS AND APPLICATIONS
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
A Design Example A Programmable Calculator. Programmable Calculator Working in Exact Mode Receiving Program from RS232 Port Saving Programs using RS232.
Basic I/O Interface Fixed Address Variable Address
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
I/O Interface. INTRO TO I/O INTERFACE I/O instructions (IN, INS, OUT, and OUTS) are explained. Also isolated (direct or I/O mapped I/O) and memory-mapped.
Microprocessor Fundamentals Week 4
1 Expanded Modes, Bus, External Memory Today: First Hour: Expanded Modes, Bus, Timing –Section of Huang’s Textbook –In-class Activity #1 Second.
8085 Microprocessor: Architecture & Support Components.
Memory Systems 3/17/ Memory Classes Main Memory Invariably comprises solid state semiconductor devices Interfaces directly with the three bus architecture.
5-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL
Objectives : At the end of this lesson, students should be able to : i.Identify the types of memory chip and their functions. ii.Define the difference.
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
Memory Interface EEE 365 [FALL 2014] LECTURER 12 ATANU K SAHA BRAC UNIVERSITY.
8255 Programmable Peripheral Interface
Homework Reading Tokheim, Chapter 12-1 through 12-4.
Memory Interfacing.
Computer Architectures M
8086 MICROPROCESSOR ARCHITECTURE & SEGMENTATION
Interfacing 64Kb EPROM with 8085
Computer Architectures M
Interfacing Memory Interfacing.
Memory Systems Digital Systsems M.
第四章 80386的存贮器和输入/输出接口 作业:P335 5,7,13,17,21,25,36,37,41,44,45,46,48,52,65 21:46.
Flags Carry flag Overflow Parity flag Direction Interrupt enable
Presentation transcript:

Chapter 11Chapter 12 Memory system designI/O system design Objectives: The importance of bus buffering How the 8088 addresses (accesses) memory - I/O ports The design of custom memory and I/O address decoders The difference between full and partial address decoding How wait states may be inserted into memory and I/O read/write cycles The difference between static and dynamic RAMs How a dynamic RAM is addressed and what purpose refresh cycles serve The operation of buffered input ports The operation of latched output ports Parallel I/O with the 8255 PPI Serial I/O with the 8251 UART EE314 Microprocessor Systems Based on "An Introduction to the Intel Family of Microprocessors" by James L. Antonakos

11.3 Bus Buffering 8282 STB OE D Q LE Memory Address Decoder Memory Chip 1 Memory Chip 2 Memory Chip n Data Bus Address Bus 8286 OE T 8282 STB OE D Q LE RD WR IO/M A16/S3-A19/S6 A8-A AD0-AD7 ALE DEN DT/R READY 74LS244 G1 G2 CE (Chip Enable) or CS (Chip Select), activate each chip WR and RD for each chip some high Address lines and IO/M used to identify the accessed chip the decoder drives READY: provides enough access time for the selected chip some low address lines identify the internal accessed byte (more for memory, few for I/O) I/O Address Decoder I/O Chip 1 I/O Chip 2 I/O Chip m

A0-A13 16KB EPROM chip OE FFFFF Full address decoding Memory Map - WR RD A19, A18 assigned to 00 => CS active for every address from to 3FFFF A18 = 0 A19 = 0 IO/M = 0 IO/M = 0 => Memory map A0... A17 256KB RAM chip A18 A19 CS1’ MWTC MRDC The same Memory-map assignment CS1 A18 A19 IO/M A7 B6 C5 74LS E12 E21 E0 A17 A18 A19 A14 A15 A16 A19 = 1, A18 = 0, A17 = 0 activate the decoder A16, A15, A14 select one EPROM chip A14 A15 A16 A17 A18 A19 CS2 A19=A18=...=A14=1 select the EPROM All the address lines used by the decoder or memory chip => each byte is uniquely addressed = full address decoding FFFFF 3FFFF FFFFF FC000 3FFFF FFFFF FC000 83FFF FFFF FFFFF FC000 9FFFF 9C000 83FFF FFFF Memory Map 2 20 = 1,048,576 different byte addresses = 1Mbyte MRDC A0... A17 256KB RAM chip WR RD A 256Kbyte = 2 18 RAM chip has 18 address lines, A0 - A17 16KB EPROM chip 16KB EPROM chip 16KB EPROM chip 16KB EPROM chip 16KB EPROM chip 16KB EPROM chip 16KB EPROM chip CS4 CS5 CS6 CS7 CS8 CS9 CS10 16KB EPROM chip OE CS3 A0-A13

FFFFF Partial address decoding Memory Map - WR RD A0... A15 64KB RAM chip A18 A19 CS1’ MWTC MRDC The same Memory-map assignment CS1 A18 A19 IO/M Some address lines not used by the decoder or memory chip => mirror images = partial address decoding FFFFF 3FFFF FFFFF 3FFFF FFFF FFFF FFFF FFFFF FC000 7FFFF 7C000 3FFFF FFFF FFFF FFFF Memory Map A0... A15 64KB RAM chip WR RD A 64Kbyte = 2 16 RAM chip has 16 address lines, A0 - A15 FFFFF FC000 9FFFF 9C000 83FFF FFFF 7C000 3FFFF FFFF FFFF FFFF FFFFF FC000 DFFFF DC000 CF000 CC000 9FFFF 9C000 83FFF FFFF 7C000 3FFFF FFFF FFFF FFFF base image mirror images MRDC A0-A13 16KB EPROM chip OE A14 A15 A16 A17 A18 CS2 A18=...=A14=1 select the EPROM mirror image base image mirror image A19, A18 assigned to 00 => CS active for every address from to 3FFFF A18 = 0 A19 = 0 IO/M = 0 IO/M = 0 => Memory map A16, A17 not used => four images for the same chip 16KB EPROM chip 16KB EPROM chip 16KB EPROM chip 16KB EPROM chip 16KB EPROM chip 16KB EPROM chip 16KB EPROM chip CS4 CS5 CS6 CS7 CS8 CS9 CS10 16KB EPROM chip OE CS3 A0-A13 A7 B6 C5 74LS E12 E21 E0 A17 A19 A14 A15 A16 A19 = 1, A17 = 0 activate the decoder A16, A15, A14 select one EPROM chip

FFFF 0000 Full address decoding I/O Map - All A15...A0 used by the decoder or I/O chip => each byte is uniquely addressed = full address decoding FFFF FFFC 0000 FFFF FFFC A7 B6 C5 74LS E12 E21 E0 A15 A0 A1 A2 A15=1,A14...A3= 0 activate the decoder for every address in range A2, A1, A0 select one input LATCH (port) IORC 1 byte input port 1 byte input port 1 byte input port 1 byte input port 1 byte input port 1 byte input port 1 byte input port CS4 CS5 CS6 CS7 CS8 CS9 CS10 1 byte input port OE CS3 A14... A I/O Map 2 16 = 65,536 different byte addresses =64Kbyte A2... A13 A14 A15 A0-A PPI WR RD CS2 A15=...=A2=1 select the 8255 chip IOWC IORC A0... A15 IO/M WR RD A15... A0 assigned to 0 => CS active only for 0000 address A0 = 0... A15 = 0 IO/M = 1 IO/M = 1 => I/O map 1 byte I/O port WR RD A0... A15 CS1’ IOWC IORC The same I/O-map assignment CS1 1 byte I/O port WR RD A 1byte I/O port no internal address decoding

FFFF 0000 FFFF 7 mirrors 0000 base Partial address decoding I/O Map - Some address lines not used by the decoder or I/O chip => mirror images = partial address decoding FFFF FFFC 7FFF 7FFC 7 mirrors 0000 base FFFF FFFC 800F mirror 800E base mirror 8000 base 7FFF 7FFC 7 mirrors 0000 base 8088 I/O Map 2 16 = 65,536 different byte addresses =64Kbyte A2... A12 A13 A14 A0-A PPI WR RD CS2 A14=...=A2=1 select the 8255 chip IOWC IORC base mirror A7 B6 C5 74LS E12 E21 E0 A15 A1 A2 A3 A15=1,A14...A4= 0 activate the decoder for every address in range F A3, A2, A1 select one input LATCH (port) IORC 1 byte input port 1 byte input port 1 byte input port 1 byte input port 1 byte input port 1 byte input port 1 byte input port CS4 CS5 CS6 CS7 CS8 CS9 CS10 1 byte input port OE CS3 A14... A4 A3... A15 IO/M WR RD A15... A3 assigned to 0 => CS active for every address in range A3 = 0... A15 = 0 IO/M = 1 IO/M = 1 => I/O map 1 byte I/O port WR RD A3... A15 CS1’ IOWC IORC The same I/O-map assignment CS1 1 byte I/O port WR RD A 1byte I/O port no internal address decoding