Lecture 17 IO Interface
Lecture 17 IO Interface
Lecture 17 IO Interface
Lecture 34
Peripheral Devices
Input Devices Output Devices
• Keyboard • Card Puncher, Paper Tape Puncher
• Optical input devices • CRT
- Card Reader • Printer (Impact, Ink Jet, Laser, Dot Matrix)
- Paper Tape Reader • Plotter
- Bar code reader • Analog
- Digitizer • Voice
- Optical Mark Reader
• Magnetic Input Devices
- Magnetic Stripe Reader
• Screen Input Devices
- Touch Screen
- Light Pen
- Mouse
• Analog Input Devices
Input/Output Organization 2
Lecture 34
I/O Interface
• Provides a method for transferring information between internal
storage (such as memory and CPU registers) and external I/O
devices
• Resolves the differences between the computer and peripheral
devices
– Peripherals - Electromechanical Devices
– CPU or Memory - Electronic Device
– Unit of Information
• Peripherals – Byte, Block, …
• CPU or Memory – Word
True
False
Input/Output Organization 4
Lecture 34
I/O Bus and Interface
I/O bus
Data
Processor Address
Control
Keyboard
and Printer Magnetic Magnetic
display disk tape
terminal
Interface
- Decodes the device address (device code)
- Decodes the commands (operation)
- Provides signals for the peripheral controller
- Synchronizes the data flow and supervises
the transfer rate between peripheral and CPU or Memory
Typical I/O instruction
Op. code Device address Function code
(Command)
Input/Output Organization 5
Lecture 34
I/O Bus and Memory Bus
Functions of Buses
Memory-mapped I/O
- A single set of read/write control lines
(no distinction between memory and I/O transfer)
- Memory and I/O addresses share the common address space
-> reduces memory address range available
- No specific input or output instruction
-> The same memory reference instructions can
be used for I/O transfers
- Considerable flexibility in handling I/O operations
……….. Provides signals for the peripheral controller
a) CPU
b) MEMORY
c) REGISTER
d) INTERFACE
Input/Output Organization 8
Lecture 34
I/O Interface
Port A I/O data
Bidirectional register
Bus
data bus buffers
Port B I/O data
register
CPU
Chip select I/O
CS
Register select
Control Control Device
RS1 Timing
Register select register
RS0 and
I/O read Control
RD Status Status
I/O write
WR register