Data Tranfer Techinques
Data Tranfer Techinques
PARALLEL MODE:- In a parallel mode , the entire word is transferred at one time .the device commonly used for data transfer are keyboards seven segment LEDs data converters and memory. SERIAL MODE:- In the serial mode , data are transferred one bit at a time over a single line between the microprocessors and a peripheral. It is commonly used with peripherals such as CRT terminals , printers, cassette tapes and modems for telephone.
MICROPROCESSOR CONTROLLED :- HERE data transfer is controlled by microprocessor. Microprocessor is primarily responsible for data transfer whether from I/o to the c.p.u or to the memory or vice versa . DEVICE CONTROLLED:- Here data transfer is controlled by IO device .data is transferred in between IO device and memory without the intervention of c.p.u.such a transfer increases rate of transfer and makes the system more efficient
Check status
done
Next instruction
Assume that the input device transfers its data at an average rate of 100 bytes pe c.p.u will then check the flag 10000 times between each transfer The c.p.u is wasting time while checking the flag instead of doing some useful work.
C.P.U-------IO
IO----------c.p.u
Next instruction
Interrupt
RAM BG C.P.U BR RD RD WR ADD DATA
READ CONTROL DATA BUS
WR
ADD
DATA
ADDR
ADDRESS BUS
RD WR DS RS BR BG
ADD DATA
DMA ACK
DMA CONT
DMA
IO PERIPHERAL DEVICE
INTERRUPT
The DMA has its own address which activates the DS and RS lines
The c.p.u initializes the DMA through data lines
Once the DMA receives the start control command it can start the transfer between the peripheral devices and memory. When the peripheral device sends a DMA request the DMA controller activates the BR line, informing the c.p.u to relinquish the busses.
The c.p.u responds with its BG lines informing the DMA that its busses are disabled. The DMA then puts the current value of its address register into the address bus, initiates the WR or RD signal and then sends the DMA ACK to the peripheral device.
CYCLE STEALING MODE OF DATA TRANSFER:- In this technique a long block of data is transferred by a sequence of DMA cycle.in this method after transferring one byte or several bytes the IO device withdraws DMA request. This method reduces interference in C.P.U ACTIVITIES