Unit 4 Lecture 2 Input Output Interface (1)
Unit 4 Lecture 2 Input Output Interface (1)
Input-Output Organization
Lecture-2
I/O Interface
Input-Output Interface:
Peripherals connected to a computer need special communication links for
interfacing with CPU. In computer system, there are special hardware
components between the CPU and peripherals to control or manage the input-
output transfers. These components are called input-output interface units
because they provide communication links between processor bus and
peripherals. They provide a method for transferring information between
internal system and input-output devices.
The purpose of the communication link is to resolve the differences that exist
between the central computer and each peripheral. The major differences are:
Data conversion:
o Data conversion refers to conversion between digital and analog
signals and conversion between serial and parallel data formats.
Synchronization:
o Synchronization refers to matching of operating speed of CPU and
other peripherals.
Device selection:
o Device selection refers to the selection of I/O device by CPU in a
queue manner.
The I/O bus consists of data lines, address lines and control lines.
The I/O bus from the processor is attached to all peripherals interface.
To communicate with a particular device, the processor places a device address
on address lines.
Each Interface decodes the address and control received from the I/O bus,
interprets them for peripherals and provides signals for the peripheral
controller. It is also synchronizes the data flow and supervises the transfer
between peripheral and processor.
Each peripheral has its own controller. For example, the printer controller
controls the paper motion, the print timing.
The control lines are referred as I/O command. The commands are as
following:
Control command- A control command is issued to activate the
peripheral and to inform it what to do.
Status command- A status command is used to test various status
conditions in the interface and the peripheral.
Data Output command- A data output command causes the interface to
respond by transferring data from the bus into one of its registers.
Data Input command- The data input command is the opposite of the
data output. In this case the interface receives on item of data from the
peripheral and places it in its buffer register
To communicate with I/O, the processor must communicate with the memory
unit. Like the I/O bus, the memory bus contains data, address and read/write
control lines.
There are 3 ways that computer buses can be used to communicate with
memory and I/O:
Use two Separate buses , one for memory and other for I/O.
Use one common bus for both memory and I/O but separate
control lines for each.
Use one common bus for memory and I/O with common control
lines