Unit 4 Lecture 3 Modes of Data Transfer
Unit 4 Lecture 3 Modes of Data Transfer
Input-Output Organization
Lecture-3
Modes of Data Transfer
Binary information received from an external device is usually stored in
memory for later processing. Information transferred from the central computer
into an external device originates in the memory unit. The CPU merely executes
the I/O instructions and may accept the data temporarily, but the ultimate
source or destination is the memory unit.
Data transfer between the central computer and the I/O devices may be
handled in a variety of modes. Some modes use the CPU as an intermediate
path, others transfer data directly to and from the memory unit.
Data transfer to and from peripherals may be handled in one of three
possible modes:
Programmed I/O
Interrupt-initiated I/O
Direct Memory Access (DMA)
Programmed I/O: It is due to the result of the I/O instructions that are
written in the computer program. Each data item transfer is initiated by an
instruction in the program. Usually the transfer is from a CPU register and
memory.
In this case, it requires constant monitoring by the CPU of the peripheral
devices.
The transfer of data requires three instructions:
1. Read the status register.
2. Check the status of the flag bit and branch to step 1 if not set or to step
3 if set.
3. Read the data register.