Modes of Data Transfer
Modes of Data Transfer
Transfer
Present by
Srijit Barui
BWU/BNC/21/026
Content
2
Input/Output Interface and Peripheral
Devices
3
Modes of Data Transfer
4
Programmed I/O
• Programmed I/O is result of the I/O instructions that are written in the computer
program.
• Normally data transmit between a CPU and a peripheral device.
Drawback of Programmed I/O :
• The CPU stays in the program loop until the I/O unit indicates that it is ready for
data transfer.
• This is a time-consuming process since it needlessly keeps the CPU busy.
• This situation can be avoided by using an interrupt facility.
5
Interrupt Initiated I/O
• This mode uses an interrupt facility and special
commands to inform the interface to issue the
interrupt command when data becomes available
and interface is ready for the data transfer.
• On that time, CPU keeps on executing other tasks
and need not check for the flag.
• When the flag is set, the interface is informed and
an interrupt is initiated in which the CPU responds
to the signal by storing the return address from the
program counter (PC) into the memory stack and
then branches to service that processes the I/O
request.
• After the transfer is complete, CPU returns to the
previous task it was executing.
6
Interrupt Initiated I/O
Types of Interrupt Initiated I/O :
• Vectored interrupt : The source that interrupt the CPU provides
the branch information.
• Non-vectored interrupt : The branch address is assigned to the
fixed address in the memory.
Drawback of Programmed I/O :
• In bοth thе mеthοds prοgrammеd I/Ο and Intеrrupt intiated I/Ο
rеquirе thе activе intеrvеntiοn οf thе prοcеssοr tο transfеr data
bеtwееn mеmοry and thе I/Ο mοdulе, and any data transfеr must
transvеrsе a path thrοugh thе prοcеssοr.
• Thе I/Ο transfеr ratе is limitеd by thе spееd with which thе
prοcеssοr can tеst and sеrvicе a dеvicе.
7
Direct Memory Access
8
Thank You
9