Académique Documents
Professionnel Documents
Culture Documents
COMPUTER ORGANIZATION
Topic : Interfacing and
communication
(I/O Techniques)
Compiled by
Salehah Hamzah
Comp.Science Dept, UiTM Perlis
Introduction
Programmed I/O
Interrupt-Driven I/O
Interrupt
Direct Memory Access
Introduction
Introduction
2. The data transfer rate of peripherals is usually
slower than the transfer rate of the CPU, and
consequently, a synchronization mechanism may be
needed.
3. Data codes and formats in peripherals differ from
the word format in the CPU and memory.
4. The operating modes of peripherals are different
from each other and each must be controlled so as
not to disturb the operation of other peripherals
connected to the CPU.
Introduction
The I/O bus consists of data lines, address lines, and control lines.
Each peripheral device has associated with it an interface unit.
Each interface decodes the address and controlreceived from the I/O bus,
interprets them for the peripheral, and provides signals for the peripheral
controller.
It also synchronizes the data flow and supervises the transfer between
peripheral and processor.
Each peripheral has its own controller that operates the particular
electromechanical device.
For example, the printer controller controls the paper motion, the print timing,
and the selection of printing characters
9-7
I/O Fundamentals
Three strategies
Programmed (polled) I/O
Interrupt-driven I/O
Direct memory access (DMA)
8
I/O Techniques
In the case that the I/O device is not ready because the
examine flag is negated, the processor loops back.
Interrupt
What it is?
Interrupt-Driven I/O
13
Interrupts
Interrupt organization
14
INTERRUPT SERVICES
Interrupt
Types of interrupt
Usage of interrupt
The way in which an interrupt is used depends on the nature of
the device.
There are several different ways in which interrupt are used:
As an external event notifier.
Interrupt are useful as notifiers to the CPU of external
events that require action.
Frees the CPU from necessity of performing polling.
Example: Keyboard input.
As a completion signal.
Controlling the flow of data to an output device.
Interrupt serves to notify the computer of completion of a
Usage of interrupt
As a means of allocating CPU time.
Interrupt is used as a method of allocating CPU
Usage of interrupt
As an abnormal event indicator.
Servicing an interrupt
Types of interrupt
Multiple interrupt
Polling
Vectored Interrupt
Comparison of
Three I/O Techniques
- Reading a data block
28
Handshaking
Handshaking
1.
2.
3.
4.