Professional Documents
Culture Documents
Unit 5
I/O ORGANIZATION
There are four types of I/O commands:
There are three commonly used Input/output Techniques (Data Transfer mode)
Programmed Input/output:
Entire I/O is handled by CPU with the help of small software (system software) without any additional
hardware. It is based on concept of busy waiting.
With memory-mapped I/O, there is a single address space for memory locations and I/O devices
There are separate control lines for memory and I/O devices. A memory reference instruction does not
affect an I/O device.
Computer Architecture
Unit 5
I/O ORGANIZATION
Interrupt Driven I/O:
Major drawback of programmed I/O is busy waiting, CPU has to repeatedly check whether a device is
free, the performance of CPU goes down. One solution could be, CPU switches to some other program
without waiting for the I/O device to complete. When device becomes free, it informs back the CPU
through a mechanism, known as interrupt.
Interrupt Processing:
Interrupt can be generated by various sources both internal and external. An interrupt causes CPU to
temporarily transfer control from current program to another program. This mechanism significantly
improves a computer’s I/O performance.
Computer Architecture
Unit 5
I/O ORGANIZATION
Multiple Interrupt:
If several devices are connected to CPU, CPU must know the interrupting device (may generate interrupt
at same time). In case of multiple interrupts, CPU will have to use arbitration technique to select an I/O
device to service.
Computer Architecture
Unit 5
I/O ORGANIZATION
Direct Memory Access (DMA):
When CPU is involved in data transfer, it uses the system bus twice