Interfacing a Microprocessor Chip with Memory Chips and IO...

14
1 1 Interfacing a Microprocessor Chip with Memory Chips and IO Controller Chips

Transcript of Interfacing a Microprocessor Chip with Memory Chips and IO...

Page 1: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

11

Interfacing a Microprocessor Chip with Memory Chips and

IO Controller Chips

Page 2: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

2

• Two aspects:1. Physical connection between devices• Connecting two or more devices through a channel

– Wires– Wireless

• Adapting voltage and current levels– Logic 0 → 0V; Logic 1 → 5V– Logic 0 → 5V; Logic 1 → 0V– Logic 0 → 15V, Logic 1 → -15V

2. Procedural connection between devices• Software to implement a set of rules that control and

communicate with devices for a particular function.

Page 3: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

3

• Set of rules (the Protocol) used to communicate between two or more devices

• Microprocessor Control of RAM/ROM Memory– RAM: read/write operations– ROM: read only– Supply address and control; then data may be accessed

• Microprocessor Control of FLASH Memory– Read/write operations more complex• higher voltages/currents• Required delay between accesses much longer than RAM

Page 4: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

4

• Microprocessor Control of I/O Controllers of Devices– Device dependent/specific– Control, Status, and Data Registers• Control registers for configuring operation of device• Status register for obtaining status for the device• Data register fro writing to or reading from the device

– General Protocol• Write to control registers to configure desired operation• Read status register to obtain operation status• Read data register, or write to data register

Page 5: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

5

MEMORY

IO CONTROLLERS

PERIPHERAL DEVICES

MIC

ROCO

MPU

TER

MICROPROCESSOR– Bus Master– Controls the Slaves• Procedural Interface– ABUS, CBUS Signals

PCIASCIA

MIC

ROCO

NTR

OLL

ER (S

ingl

e Ch

ip)

USB

Page 6: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

6

CHIP SELECT

PCIASCIA

USB

Page 7: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

7

6800 Micro-

processorPIN Diagram

Page 8: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

8

Example 15.4: RAM: 128 words by 8-bit

Page 9: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

9

Example 15.1: Physical Connection to μP and Internal Logic

A0A1A2A3A4A5A6

A0A1A2A3A4A5A6

128x8

D1…D7

Page 10: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

10

EXAMPLE 15.4: ROM Memory

Page 11: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

11

SYNCHRONOUS BUS CONTROL

φ1

Page 12: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

12

Latching into μPregister.

Page 13: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

13

Latching into memory.

To Memory

Page 14: Interfacing a Microprocessor Chip with Memory Chips and IO ...ece.eng.umanitoba.ca/undergraduate/ECE3610/LectureNotes/Lecture 15.pdf · 5 MEMORY IO CONTROLLERS PERIPHERAL DEVICES

14

ASYNCHRONOUS BUS CONTROL