Unit - 4 Input / Output Organization
Unit - 4 Input / Output Organization
Unit - 4 Input / Output Organization
1. Processor
2. Memory Module
3. I/O Module
Each module interfaces to the system bus and controls one or more peripheral devices. An I/O
module is not simply a set of mechanical connectors that wire a device into the system bus.
Rather, the I/O module contains logic for performing a communication function between the
peripheral and the bus.
There are a wide variety of peripherals with various methods of operation. It would be
impractical to incorporate the necessary logic within the processor to control a range of
devices.
The data transfer rate of peripherals is often much slower than that of the memory or
processor. Thus, it is impractical to use the high-speed system bus to communicate
directly with a peripheral.
Peripherals often use different date formats and word lengths than the computer to
which they are attached.
Thus, an I/O module is required. This module has two major functions:
Interface to the processor and memory via the system bus or central switch.
Interface to one or more peripheral devices by tailored data links.
Input / Output Device (or External I/O Device):
An Extenal Device attach to a computer by a link to an I/O module. The link is used to exchange
control, status and data between the I/O module and the external devices. An external device
connected to an I/O module is often reffered to a peripheral devices or simply a periperal.
Diagram :
Control Buffer
Logic
Transducer
for example: ready/not ready to show whether the device is ready for data transfer.
The transducer convert data from electrical to other form of energy during output & from other
form to electrical during input.
I/O Module:
In addition to the processor and a set of memory modules the third key element of a computer
system is a set of I/O module. Each module interface to the system bus or central switch and
controls one or more periperals devices and I/O module is not simply a set of mechanical
connectors that wire a set of mechanical connectors that wire a device into the system bus.
Rather the I/O module connects logic for performing a communication function between the
peripheral and the bus.
The mazor functions or requirements for an I/O module fall into the following categories:
Address Lines
External Data
I/O
Logic device
Status
interface logic
Control Lines
Control
A status register may also function as a control register to accept detailed control information
from the processor. The logic within the module instead with the processor via a set of control
lines. The processor uses the control line to issue commands to the I/O module.
Data Transfer:
There are two types of data transfer techniques:
Asynchronus data transfer to independent unit required that control signal be transmitted
between the communicating units to indicate the time at which data is being transmitted.
There are two control signals:
Data Line
Data Line
Data Valid
1. Parallel Data Transfer – In parallel data transmission each bit of the message has its own
path and the total messages transmitted at the same time. It is faster but require many
wires, it is used for short distance and where speed is important.
2. Serial Data Transfer – In serial data transmission each bit in the message is send in
sequence ine at a time. This method require the use of one constructor. It is slower but
the less expensive since it requires only one conductor.
Modes of Transfer:
Data transfer between the central computer and I/O devices may be handled in a variety of
modes. Some modes used the CPU as an intermediate path, other transfer the data directly to
and from the memory unit. Data transfer to and from peripherals may be handled in one of 3
possible modes.
1. Programmed I/O
2. Interrupt initiated I/O
3. Direct Memory Access(DMA)
Programmed Input/Output – In the programmed I/O method the I/O device doesn’t have direct
access to memory. A transfer from an I/O device to memory requires the execution of several
instructions by the CPU including an input instruction to transfer the data from the device to
the CPU and store instruction to transfer the data from the CPU to memory. Other instruction
may be needed to verify that the data are available from the device and to count the number of
word transfer.
Programmed I/O operations are the result of I/O instructions written in the computer program.
Each data item transfer is initiated by an instruction in the program. Usually the transfer is to
and from the CPU registers and peripherals. Other instructions are needed to transfer the data
to and from CPU and memory. Trasnfering data under program control require constant
monitoring of the peripheral by the CPU. It is up to the program instruction executed in the CPU
to keep closed tabs on everything that is taking place in the interface unit and the I/O device. In
the programmed I/O method the CPU stays in a program loop until the I/O unit indicates that is
ready for data transfer.