SlideShare a Scribd company logo
4
Most read
6
Most read
9
Most read
Computer Organisation and
Architecture
Course Code: CO206
Module-5- Input Output Organisation-Modes of Transfer
Dr. Pawan Singh Mehra
Asst. Professor
Dept. of CSE
1
By
Dr.
Pawan
Singh
Mehra
Contents of Module 5
Programmed I/O
Interrupt initiated I/O
Direct Memory Access
I/O Channels and Processors
Serial Communication: Synchronous Communication
Asynchronous Communication
Standard Communication Interfaces
2
By
Dr.
Pawan
Singh
Mehra
Modes of Data Transfer in I/O
3
Programmed I/O
Interrupt Driven I/O
Direct Memory Access(DMA)
By
Dr.
Pawan
Singh
Mehra
Programmed I/O
4
Programmed I/O operations are the result of I/O instructions written in
the computer program.
Each data item transfer is initiated by an instruction in the program.
Usually the transfer is to and from CPU registers and Peripheral.
Transferring data under program control requires constant monitoring
of the peripheral by the CPU
Once a data transfer is initiated, the CPU is required to monitor the
interface to see when a transfer can again be made.
In this method, the CPU stays in program loop until the I/O unit
indicates that it is ready for data transfer.
It is a time consuming process since it keeps the processor busy
needlessly.
By
Dr.
Pawan
Singh
Mehra
Programmed I/O
5
CPU while executing a program
encounters an I/O instruction
CPU issues I/O command to I/O
module
I/O module performs the
requested action and set status
registers
CPU is responsible to check the
status register periodically to see if
I/O operation is complete
No interrupt to alert the CPU
By
Dr.
Pawan
Singh
Mehra
Interrupt Initiated I/O
6
Programmed I/O needs continuous CPU involvement.
CPU needs to slow down to I/O speed.
It can be avoided by Interrupt: Open communication only when
some data has to be transferred
I/O interface, instead of the CPU, monitors the I/O device
When the interface determines that the I/O device is ready for data
transfer, it generates an Interrupt Request to the CPU.
In the mean time the CPU can proceed to execute another
program.
Upon detecting an interrupt, CPU stops momentarily the task it is
doing, branches to the service routine to process the data transfer,
and then returns to the task it was performing
By
Dr.
Pawan
Singh
Mehra
Interrupt Initiated I/O
7
By
Dr.
Pawan
Singh
Mehra
Direct Memory Access
8
It is an I/O technique used for high speed data transfer.
In DMA, the interface transfers data into and out of the memory unit
through the memory bus.
In DMA, the CPU releases the control of the bus to a device called a
DMA controller
Removing the CPU from the path and letting the peripheral device
manage the memory buses directly would improve the speed of
transfer.
The CPU initiates the transfer by supplying the interface with the
starting address and the number of words needed to be transferred and
then proceeds to execute the other tasks.
When the transfer is to be made, the DMA requests the memory cycles
through the memory bus.
By
Dr.
Pawan
Singh
Mehra
Direct Memory Access
9
When the request is granted by the memory controller, the DMA
transfers the data directly into memory
The CPU merely delays its memory access operation to allow the direct
memory I/O transfer.
By
Dr.
Pawan
Singh
Mehra
Block Diagram of DMA Controller
10
By
Dr.
Pawan
Singh
Mehra
DMA Transfer
11
By
Dr.
Pawan
Singh
Mehra
Burst Transfer and Cycle Stealing
12
When the DMA takes control of the bus system, it communicates
directly with the memory. The transfer can be made in several ways.
In DMA burst transfer, a block sequence consisting of a number of
memory words is transferred in a continuous burst while the DMA
controller is master of the memory buses.
This mode of transfer is needed for fast devices such as magnetic disks,
where data transmission cannot be stopped or slowed down until an
entire block is transferred.
An alternative technique called cycle stealing allows the DMA controller
to transfer one data word at a time, after which it must return control
of the buses to the CPU.
The CPU merely delays its operation for one memory cycle to allow the
direct memory I/O transfer to “steal” one memory cycle.
By
Dr.
Pawan
Singh
Mehra
I/O Processors
13
Instead of having each interface communicate with the CPU, a
computer may incorporate one or more external processors and assign
them the task of communicating directly with all I/O devices.
 An input–output processor (IOP) may be classified as a processor with
direct memory access capability that communicates with I/O devices.
The IOP is similar to a CPU except that it is designed to handle the
details of I/O processing.
Unlike the DMA controller that must be set up entirely by the CPU, the
IOP can fetch and execute its own instructions
By
Dr.
Pawan
Singh
Mehra
CPU and IOP Communication
14
By
Dr.
Pawan
Singh
Mehra

More Related Content

PPTX
Process synchronization
PPTX
Processor allocation in Distributed Systems
PPT
Input output organization
PPTX
Join ordering in fragment queries
PPTX
Means End Analysis (MEA) in Artificial.pptx
PPT
Disk structure
PPTX
Lecture 3 threads
PPTX
Interrupts
Process synchronization
Processor allocation in Distributed Systems
Input output organization
Join ordering in fragment queries
Means End Analysis (MEA) in Artificial.pptx
Disk structure
Lecture 3 threads
Interrupts

What's hot (20)

PDF
Parallel programming model, language and compiler in ACA.
PPTX
Synchronization in distributed computing
PPTX
Predicate logic
PPTX
File Protection
DOC
Naming in Distributed System
PPTX
Design Issues of Distributed System (1).pptx
PPTX
Distributed Shared Memory notes in distributed systems.pptx
PDF
Deadlock in Distributed Systems
PPTX
Operating system paging and segmentation
PPT
Analysis modeling in software engineering
PDF
Deadlock Avoidance - OS
PPTX
Operating system critical section
PDF
Distributed deadlock
PDF
management of distributed transactions
PPTX
Query processing in Distributed Database System
PPTX
Memory Management in OS
PPTX
Communication And Synchronization In Distributed Systems
PPTX
Distributed database
PPTX
Directory implementation and allocation methods
PPTX
Addressing modes
Parallel programming model, language and compiler in ACA.
Synchronization in distributed computing
Predicate logic
File Protection
Naming in Distributed System
Design Issues of Distributed System (1).pptx
Distributed Shared Memory notes in distributed systems.pptx
Deadlock in Distributed Systems
Operating system paging and segmentation
Analysis modeling in software engineering
Deadlock Avoidance - OS
Operating system critical section
Distributed deadlock
management of distributed transactions
Query processing in Distributed Database System
Memory Management in OS
Communication And Synchronization In Distributed Systems
Distributed database
Directory implementation and allocation methods
Addressing modes
Ad

Similar to modes of transfer computer architecture. (20)

PPTX
This pot is about computer architecture.
PPTX
Lecture 9.pptx
PPT
Modes Of Transfer in Input/Output Organization
PPTX
Chapter 5 IO Unit.pptx we are electrical
PPTX
Modes of data transfer.computer architecture.
PDF
Unit 4-input-output organization
PDF
Unit 4-input-output organization
PPTX
Input - output organzation
PPTX
inputoutputorganization-140722085906-phpapp01.pptx
PPTX
Data transfer techniques 8085
PPTX
Input Output Organization
PPTX
ch -6 IO.pptx
PPTX
Modes of transfer
PDF
chapter5-Input-output.pdf
PPTX
DMA operation
PPTX
IO methods
PPTX
Direct memory access
PPTX
I/O Interfaces: Bridging the Digital and Physical Worlds
PPTX
Modes of data transfer
PPTX
CS304PC: Computer Organization and Architecture Session 26 Mode of transfer
This pot is about computer architecture.
Lecture 9.pptx
Modes Of Transfer in Input/Output Organization
Chapter 5 IO Unit.pptx we are electrical
Modes of data transfer.computer architecture.
Unit 4-input-output organization
Unit 4-input-output organization
Input - output organzation
inputoutputorganization-140722085906-phpapp01.pptx
Data transfer techniques 8085
Input Output Organization
ch -6 IO.pptx
Modes of transfer
chapter5-Input-output.pdf
DMA operation
IO methods
Direct memory access
I/O Interfaces: Bridging the Digital and Physical Worlds
Modes of data transfer
CS304PC: Computer Organization and Architecture Session 26 Mode of transfer
Ad

Recently uploaded (20)

PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Basic Mud Logging Guide for educational purpose
PDF
Computing-Curriculum for Schools in Ghana
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Insiders guide to clinical Medicine.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Lesson notes of climatology university.
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Renaissance Architecture: A Journey from Faith to Humanism
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
human mycosis Human fungal infections are called human mycosis..pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Anesthesia in Laparoscopic Surgery in India
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Basic Mud Logging Guide for educational purpose
Computing-Curriculum for Schools in Ghana
PPH.pptx obstetrics and gynecology in nursing
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
TR - Agricultural Crops Production NC III.pdf
01-Introduction-to-Information-Management.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Insiders guide to clinical Medicine.pdf
Complications of Minimal Access Surgery at WLH
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Supply Chain Operations Speaking Notes -ICLT Program
O5-L3 Freight Transport Ops (International) V1.pdf
Lesson notes of climatology university.
FourierSeries-QuestionsWithAnswers(Part-A).pdf

modes of transfer computer architecture.

  • 1. Computer Organisation and Architecture Course Code: CO206 Module-5- Input Output Organisation-Modes of Transfer Dr. Pawan Singh Mehra Asst. Professor Dept. of CSE 1 By Dr. Pawan Singh Mehra
  • 2. Contents of Module 5 Programmed I/O Interrupt initiated I/O Direct Memory Access I/O Channels and Processors Serial Communication: Synchronous Communication Asynchronous Communication Standard Communication Interfaces 2 By Dr. Pawan Singh Mehra
  • 3. Modes of Data Transfer in I/O 3 Programmed I/O Interrupt Driven I/O Direct Memory Access(DMA) By Dr. Pawan Singh Mehra
  • 4. Programmed I/O 4 Programmed I/O operations are the result of I/O instructions written in the computer program. Each data item transfer is initiated by an instruction in the program. Usually the transfer is to and from CPU registers and Peripheral. Transferring data under program control requires constant monitoring of the peripheral by the CPU Once a data transfer is initiated, the CPU is required to monitor the interface to see when a transfer can again be made. In this method, the CPU stays in program loop until the I/O unit indicates that it is ready for data transfer. It is a time consuming process since it keeps the processor busy needlessly. By Dr. Pawan Singh Mehra
  • 5. Programmed I/O 5 CPU while executing a program encounters an I/O instruction CPU issues I/O command to I/O module I/O module performs the requested action and set status registers CPU is responsible to check the status register periodically to see if I/O operation is complete No interrupt to alert the CPU By Dr. Pawan Singh Mehra
  • 6. Interrupt Initiated I/O 6 Programmed I/O needs continuous CPU involvement. CPU needs to slow down to I/O speed. It can be avoided by Interrupt: Open communication only when some data has to be transferred I/O interface, instead of the CPU, monitors the I/O device When the interface determines that the I/O device is ready for data transfer, it generates an Interrupt Request to the CPU. In the mean time the CPU can proceed to execute another program. Upon detecting an interrupt, CPU stops momentarily the task it is doing, branches to the service routine to process the data transfer, and then returns to the task it was performing By Dr. Pawan Singh Mehra
  • 8. Direct Memory Access 8 It is an I/O technique used for high speed data transfer. In DMA, the interface transfers data into and out of the memory unit through the memory bus. In DMA, the CPU releases the control of the bus to a device called a DMA controller Removing the CPU from the path and letting the peripheral device manage the memory buses directly would improve the speed of transfer. The CPU initiates the transfer by supplying the interface with the starting address and the number of words needed to be transferred and then proceeds to execute the other tasks. When the transfer is to be made, the DMA requests the memory cycles through the memory bus. By Dr. Pawan Singh Mehra
  • 9. Direct Memory Access 9 When the request is granted by the memory controller, the DMA transfers the data directly into memory The CPU merely delays its memory access operation to allow the direct memory I/O transfer. By Dr. Pawan Singh Mehra
  • 10. Block Diagram of DMA Controller 10 By Dr. Pawan Singh Mehra
  • 12. Burst Transfer and Cycle Stealing 12 When the DMA takes control of the bus system, it communicates directly with the memory. The transfer can be made in several ways. In DMA burst transfer, a block sequence consisting of a number of memory words is transferred in a continuous burst while the DMA controller is master of the memory buses. This mode of transfer is needed for fast devices such as magnetic disks, where data transmission cannot be stopped or slowed down until an entire block is transferred. An alternative technique called cycle stealing allows the DMA controller to transfer one data word at a time, after which it must return control of the buses to the CPU. The CPU merely delays its operation for one memory cycle to allow the direct memory I/O transfer to “steal” one memory cycle. By Dr. Pawan Singh Mehra
  • 13. I/O Processors 13 Instead of having each interface communicate with the CPU, a computer may incorporate one or more external processors and assign them the task of communicating directly with all I/O devices.  An input–output processor (IOP) may be classified as a processor with direct memory access capability that communicates with I/O devices. The IOP is similar to a CPU except that it is designed to handle the details of I/O processing. Unlike the DMA controller that must be set up entirely by the CPU, the IOP can fetch and execute its own instructions By Dr. Pawan Singh Mehra
  • 14. CPU and IOP Communication 14 By Dr. Pawan Singh Mehra