































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In this document topics covered which are Input Output Organization, Peripheral Devices, I/O Interface, Programmed I/O, Interrupt Initiated I/O, Priority Interrupt.
Typology: Study notes
1 / 39
This page cannot be seen from the preview
Don't miss anything!
































Input Devices
Output Devices
Laser, Dot Matrix)
Processor
Interface
Keyboard
Magnetic
tape
Printer
Interface Interface Interface
Data
Address
Control
Magnetic
disk
I/O bus
and peripheral devices
▫ Peripherals - Electromechanical Devices
▫ CPU or Memory - Electronic Device
▫ Data Transfer Rate
Peripherals - Usually slower
CPU or Memory - Usually faster than peripherals
Some kinds of Synchronization mechanism may be needed
▫
Unit of Information
Peripherals – Byte, Block, …
CPU or Memory – Word
▫ Data representations may differ
Commands
▫ Control – Start ,Stop, Activate
▫ Status – to get Current Status
▫ Output Data – Transfer data from Processor
▫ Input Data – Transfer data to processor
Physical Organization
▫ Many computers use a common single bus
system
for both memory and I/O interface units
Use one common bus but separate control
lines for
each function
Use one common bus with common control
lines
for both functions
▫
Some computer systems use two separate
buses,
A single set of read/write control lines
Memory and I/O addresses share the
common address space
No specific input or output instruction
Considerable flexibility in handling I/O
operations
CS RS1 RS0 Register selected
0 x x None - data bus in high-impeden
1 0 0 Port A register
1 0 1 Port B register
1 1 0 Control register
1 1 1 Status register
Chip select
Register select
Register select
I/O read
I/O write
CS
RS
RS
RD
WR
Timing
and
Control
Bus
buffers
Bidirectional
data bus
Port A
register
Port B
register
Control
register
Status
register
I/O data
Control
Status
Internal
bus
CPU
I/O
Device
I/O data
Program-Controlled I/O(Input Dev to CPU)
CPU
Data bus
Address bus
I/O read
I/O write
Interface
Data register
Status
register F
I/O bus
Data valid
Data accepted
I/O
device
Polling or Status Checking
Read status register
Check flag bit
flag
Read data register
Transfer data to memory
Operation
complete?
Continue with
program
= 0
= 1
yes
no
What to do when multiple I/O device
interrupt?
▫ Assign Priority to various I/O devices
▫ A higher priority device request is serviced
first
▫ Also determine which devices are
permitted to interrupt the system while
another is being serviced
▫ Higher priority interrupts can make
requests while servicing a lower priority
interrupt
Priority interrupt by software polling
Priority is established by the order of
polling the devices(interrupt sources)
Flexible since it is established by software
Low cost since it needs a very little
hardware
Very slow
Serially connect all devices
▫ The device with highest priority is placed in
the first position
▫ Interrupt Request from any device(>=1)
-> CPU responds by INTACK <- 1
-> Any device receives signal(INTACK) 1 at PI puts the VAD
on the bus
Device 1
PI PO
Device 2
PI PO
Device 3
PI PO
INT
INTACK
Interrupt request
Interrupt acknowledge
To next
device
CPU
VAD 1 VAD 2 VAD 3
Processor data bus
▫ Each bit is associated with an Interrupt Request from
different Interrupt Source - different priority level
▫ Each bit can be cleared by a program instruction
▫ Mask Register is associated with Interrupt Register
▫ Each bit can be set or cleared by an Instruction
occurred. INTACK enables tristate Bus Buffer to
load VAD generated by the Priority Logic