Beruflich Dokumente
Kultur Dokumente
Presented By:
A.Devibala
Contents
I/O Organization
Input-Output Interface
Modes of Data Transfer
Programmed I/O
Interrupt-Initiated I/O
Direct Memory Access (DMA)
I/O Organization
Control
Keyboard
and Printer Magnetic
display disk
terminal
One control line is in the same direction as the data flows in the bus
from the source to destination. It is used by source unit to inform the
destination unit whether there a valid data in the bus. The other
control line is in the other direction from the destination to the
source. It is used by the destination unit to inform the source whether
it can accept the data. The sequence of control during the transfer
depends on the unit that initiates the transfer.
Modes of Data Transfer
Transfer of data is required between CPU and peripherals or
memory or sometimes between any two devices or units of
your computer system. To transfer a data from one unit to
another one should be sure that both units have proper
connection and at the time of data transfer the receiving unit is
not busy. This data transfer with the computer is Internal
Operation.
Modes of Data Transfer
All the internal operations in a digital system are
synchronized by means of clock pulses supplied by a
common clock pulse Generator. The data transfer can
be
i. Synchronous or
ii. Asynchronous
Modes of Data Transfer
When both the transmitting and receiving units use
same clock pulse then such a data transfer is called
Synchronous process. On the other hand, if the there
is not concept of clock pulses and the sender operates
at different moment than the receiver then such a data
transfer is called Asynchronous data transfer.
Modes of Data Transfer
The data transfer can be handled by various modes. some of the
modes use CPU as an intermediate path, others transfer the data
directly to and from the memory unit and this can be handled by 3
following ways:
i. Programmed I/O
Status Error
Busy
Ready
CPU reads word from I/O module & writes it to memory or
CPU reads word from memory & writes it to I/O module
Is
transfer
NO complete
yes
Execute next instruction
Drawback of the Programmed I/O
The main drawback of the Program Initiated I/O was that the
CPU has to monitor the units all the times when the program is
executing. Thus the CPU stays in a program loop until the I/O
unit indicates that it is ready for data transfer. This is a time
consuming process and the CPU time is wasted a lot in
keeping an eye to the executing of program.
Status Error
Ready
Is
transfer
NO complete
yes
Execute next instruction
Direct Memory Access (DMA)
In the Direct Memory Access (DMA) the interface transfer the
data into and out of the memory unit through the memory bus.
The transfer of data between a fast storage device such as
magnetic disk and memory is often limited by the speed of the
CPU. Removing the CPU from the path and letting the
peripheral device manage the memory buses directly would
improve the speed of transfer. This transfer technique is called
Direct Memory Access (DMA).
Direct Memory Access (DMA)
Bus Grant BG
WR Write
i. DMA Burst
i. Address Register
In the Direct Memory Access (DMA) the interface transfer the data into
and out of the memory unit through the memory bus.