SlideShare a Scribd company logo
3
Most read
11
Most read
14
Most read
Modes of Transfer
Computer organization &
Architecture
By Nithiyapriya Pasavaraj
The Data transfer between the central unit and I/O devices can be
handled in one of the possible three modes::
1. Programmed I/O
2. Interrupt Initiated I/O
3. Direct Memory Access
Programmed I/O
● Programmed I/O instructions are the result of I/O instructions written in computer
program.
● Each data item transfer is initiated by the instruction in the program.
● I/O instructions are needed to transfer data from & to a CPU a register & peripherals.
● Once a data transfer is initiated , the CPU is required to monitor the interface to see
when a transfer can again be made.
● In the programmed I/O method, the CPU stays in a program loop until the I/O unit
indicates that it is ready for data transfer.
Programmed I/O
● In the programmed I/O method, the I/O device does not have direct access
to memory
● A transfer from an I/O device to memory requires the execution of several
instructions by the CPU, including
■ an input instruction to transfer the data from the device to the CPU
■ a store instruction to transfer the data from the CPU to memory.
● The device transfer bytes of data one at a time as they are available.
Data transfer from I/O device to CPU
Programmed IO - Example
★ When a byte of data is available, the device places it in the I/O bus and enables its
data valid line.
★ The interface accepts the byte into its data register and enables the data accepted line.
★ The interface sets a bit in the status register that we will refer to as an F or "flag" bit.
The device can now disable the data valid line, but it will not transfer another byte
until the data accepted line is disabled by the interface.
★ A program is written for the computer to check the flag in the status register to
determine if a byte has been placed in the data register by the I/O device.& it is is
done by reading the status register into a CPU register and checking the value of the
flag bit.
■ If the flag is equal to 1, the CPU reads the data from the data register.& then
the flag bit is cleared to 0 by either the CPU or the interface.
■ Once the flag is cleared, the interface disables the data accepted line and the
device can then transfer the next data byte.
The Transfer of each byte requires 3
instructions(Steps).
1. Read the status register
2. Check the status of flag bit & go to step 1 , if it is
not set (or) go to step 3 if it is set.
3. Read the data register.
The Transfer of each byte
requires 3 instructions.
1. Read the status register
2. Check the status of flag bit
& go to step 1 , if it is not set
(or) go to step 3 if it is set.
3. Read the data register.
Disadvantage of Programmed I/O:
● The problem with programmed I/O is that it is time consuming ,
since it keeps the processor busy
● The processor, while waiting, must repeatedly interrogate the
status of the I/O module.
● Performance of the entire system is severely degraded.
Interrupt - initiated I/O
★ In the programmed I/O method the CPU stays in the program loop until the
I/O unit indicates that it is ready for data transfer. This is time consuming
process because it keeps the processor busy needlessly.
★ This problem can be overcome by using interrupt initiated I/O.
★ In Interrupt initiated IO, when the interface determines that the peripheral is
ready for data transfer, it generates an interrupt.
★ After receiving the interrupt signal, the CPU stops the task which it is
processing and service the I/O transfer and then returns back to its previous
processing task.
● The CPU responds to the interrupt signal by storing the return address
from the program counter into a memory stack and then control branches
to a service routine that processes the required I/O transfer.
● This can be done by two methods:
■ Vectored interrupt
■ Non-vectored interrupt
● Vectored Interrupt:
In a vectored interrupt, the source that interrupts supplies the branch information
to the computer. This information is called the interrupt vector.
● Non-vectored Interrupt:
In a non vectored interrupt, the branch address is assigned to a
fixed location in memory.
Priority Interrupt
A priority interrupt is a system that establishes a priority
over the various sources to determine which condition is to be
serviced first when two or more requests arrive
simultaneously.
Direct Memory Access
Direct Memory Access
● The technique of Removing the CPU from the path of data transfer and letting the peripheral
device to manage the memory buses directly to improve the speed of transfer ,is known as
DMA.
● In this method , the interface transfer data to and from the memory through memory bus.
● The DMA controller manages to transfer data between peripherals and memory unit.
● In DMA ,
■ when the CPU initiate the transfer, DMA request memory cycle through the memory
bus.
■ When the request is granted by the memory controller, th DMA transfer the data
directly to the memory.
● Many hardware systems use DMA such as disk drive controllers, graphic cards, network cards
and sound cards etc. It is also used for intra chip data transfer in multicore processors.
Thank you...

More Related Content

PPT
Modes Of Transfer in Input/Output Organization
PPTX
Modes of transfer
PPTX
Direct memory access
PPTX
Modes of data transfer.computer architecture.
PPT
Types of instructions
PPTX
Lecture 3 instruction set
PPTX
priority interrupt computer organization
PPTX
Direct access memory
Modes Of Transfer in Input/Output Organization
Modes of transfer
Direct memory access
Modes of data transfer.computer architecture.
Types of instructions
Lecture 3 instruction set
priority interrupt computer organization
Direct access memory

What's hot (20)

PPT
Instruction cycle
PPTX
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
PPTX
DMA and DMA controller
PPTX
Input Output Organization
PPT
Data transfer and manipulation
PPT
Input output organization
PDF
Addressing modes in computer organization
PPTX
Instruction Execution Cycle
PPTX
Interrupts
PPTX
Register organization, stack
DOCX
Control Units : Microprogrammed and Hardwired:control unit
PPTX
Interrupts and types of interrupts
PPTX
Instruction codes
PPTX
Timing and control
PPTX
Basic Computer Organization and Design
PPTX
Stacks & subroutines 1
DOC
Dma transfer
PPS
Synchronous and-asynchronous-data-transfer
PPTX
PPTX
Computer architecture virtual memory
Instruction cycle
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
DMA and DMA controller
Input Output Organization
Data transfer and manipulation
Input output organization
Addressing modes in computer organization
Instruction Execution Cycle
Interrupts
Register organization, stack
Control Units : Microprogrammed and Hardwired:control unit
Interrupts and types of interrupts
Instruction codes
Timing and control
Basic Computer Organization and Design
Stacks & subroutines 1
Dma transfer
Synchronous and-asynchronous-data-transfer
Computer architecture virtual memory
Ad

Similar to Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasavaraj (20)

PPT
Unit3 input
PPTX
Modes of data transfer
PPTX
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
PPTX
Input output organization (1).pptx
PDF
Unit 6
PPTX
Computer architecture presentation
PPT
Input Output Operations
PPTX
i_o updated.pptx 6=₹cnjxifj,lsbd ধ and vjcjcdbgjfu n smn u cut the lb, it ও o...
PDF
Unit 4-input-output organization
PDF
Unit 4-input-output organization
PPTX
Module 6.pptx for computer architecture and organisation
PPTX
MODES OF TRANSFER.pptx
PDF
COMPUTER ORGANIZATION NOTES Unit 3 4
PPTX
Input - output organzation
PPT
Chapter 6 input output
PPTX
COA-Unit5-ppt2.pptx
PPTX
Computer organization I/O organization details
PPTX
Data transfer techniques 8085
PPTX
Computer organization
PPTX
Computer organization
Unit3 input
Modes of data transfer
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
Input output organization (1).pptx
Unit 6
Computer architecture presentation
Input Output Operations
i_o updated.pptx 6=₹cnjxifj,lsbd ধ and vjcjcdbgjfu n smn u cut the lb, it ও o...
Unit 4-input-output organization
Unit 4-input-output organization
Module 6.pptx for computer architecture and organisation
MODES OF TRANSFER.pptx
COMPUTER ORGANIZATION NOTES Unit 3 4
Input - output organzation
Chapter 6 input output
COA-Unit5-ppt2.pptx
Computer organization I/O organization details
Data transfer techniques 8085
Computer organization
Computer organization
Ad

More from priya Nithya (19)

PPTX
Android Architecture.pptx
PDF
Html server control - ASP. NET with c#
PPTX
Asynchronous data transfer
PDF
Asp.net state management
DOC
HTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LAB
DOCX
HTML SERVER CONTROL - ASP.NET WITH C#
DOC
Android LAb - Creating an android app with Radio button
PPTX
ASP.NET - Life cycle of asp
DOC
Web application using c# Lab - Web Configuration file
DOCX
Creation of simple application using - step by step
PPSX
Adaptation of tcp window
PPSX
Asp.net Overview
PPSX
Key mechanism of mobile ip
PPSX
Mobile ip overview
PPSX
Features of mobile ip
PDF
Creating a Name seperator Custom Control using C#
PDF
How to Create Database component -Enterprise Application Using C# Lab
PDF
Creating simple component
PPT
Internet (i mcom)
Android Architecture.pptx
Html server control - ASP. NET with c#
Asynchronous data transfer
Asp.net state management
HTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LAB
HTML SERVER CONTROL - ASP.NET WITH C#
Android LAb - Creating an android app with Radio button
ASP.NET - Life cycle of asp
Web application using c# Lab - Web Configuration file
Creation of simple application using - step by step
Adaptation of tcp window
Asp.net Overview
Key mechanism of mobile ip
Mobile ip overview
Features of mobile ip
Creating a Name seperator Custom Control using C#
How to Create Database component -Enterprise Application Using C# Lab
Creating simple component
Internet (i mcom)

Recently uploaded (20)

PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
master seminar digital applications in india
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Institutional Correction lecture only . . .
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
Cell Structure & Organelles in detailed.
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Module 4: Burden of Disease Tutorial Slides S2 2025
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
master seminar digital applications in india
VCE English Exam - Section C Student Revision Booklet
Institutional Correction lecture only . . .
Insiders guide to clinical Medicine.pdf
Cell Types and Its function , kingdom of life
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pre independence Education in Inndia.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Cell Structure & Organelles in detailed.
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Microbial diseases, their pathogenesis and prophylaxis
O5-L3 Freight Transport Ops (International) V1.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Renaissance Architecture: A Journey from Faith to Humanism
O7-L3 Supply Chain Operations - ICLT Program
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...

Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasavaraj

  • 1. Modes of Transfer Computer organization & Architecture By Nithiyapriya Pasavaraj
  • 2. The Data transfer between the central unit and I/O devices can be handled in one of the possible three modes:: 1. Programmed I/O 2. Interrupt Initiated I/O 3. Direct Memory Access
  • 3. Programmed I/O ● Programmed I/O instructions are the result of I/O instructions written in computer program. ● Each data item transfer is initiated by the instruction in the program. ● I/O instructions are needed to transfer data from & to a CPU a register & peripherals. ● Once a data transfer is initiated , the CPU is required to monitor the interface to see when a transfer can again be made. ● In the programmed I/O method, the CPU stays in a program loop until the I/O unit indicates that it is ready for data transfer.
  • 4. Programmed I/O ● In the programmed I/O method, the I/O device does not have direct access to memory ● A transfer from an I/O device to memory requires the execution of several instructions by the CPU, including ■ an input instruction to transfer the data from the device to the CPU ■ a store instruction to transfer the data from the CPU to memory. ● The device transfer bytes of data one at a time as they are available.
  • 5. Data transfer from I/O device to CPU Programmed IO - Example
  • 6. ★ When a byte of data is available, the device places it in the I/O bus and enables its data valid line. ★ The interface accepts the byte into its data register and enables the data accepted line. ★ The interface sets a bit in the status register that we will refer to as an F or "flag" bit. The device can now disable the data valid line, but it will not transfer another byte until the data accepted line is disabled by the interface. ★ A program is written for the computer to check the flag in the status register to determine if a byte has been placed in the data register by the I/O device.& it is is done by reading the status register into a CPU register and checking the value of the flag bit. ■ If the flag is equal to 1, the CPU reads the data from the data register.& then the flag bit is cleared to 0 by either the CPU or the interface. ■ Once the flag is cleared, the interface disables the data accepted line and the device can then transfer the next data byte.
  • 7. The Transfer of each byte requires 3 instructions(Steps). 1. Read the status register 2. Check the status of flag bit & go to step 1 , if it is not set (or) go to step 3 if it is set. 3. Read the data register.
  • 8. The Transfer of each byte requires 3 instructions. 1. Read the status register 2. Check the status of flag bit & go to step 1 , if it is not set (or) go to step 3 if it is set. 3. Read the data register.
  • 9. Disadvantage of Programmed I/O: ● The problem with programmed I/O is that it is time consuming , since it keeps the processor busy ● The processor, while waiting, must repeatedly interrogate the status of the I/O module. ● Performance of the entire system is severely degraded.
  • 10. Interrupt - initiated I/O ★ In the programmed I/O method the CPU stays in the program loop until the I/O unit indicates that it is ready for data transfer. This is time consuming process because it keeps the processor busy needlessly. ★ This problem can be overcome by using interrupt initiated I/O. ★ In Interrupt initiated IO, when the interface determines that the peripheral is ready for data transfer, it generates an interrupt. ★ After receiving the interrupt signal, the CPU stops the task which it is processing and service the I/O transfer and then returns back to its previous processing task.
  • 11. ● The CPU responds to the interrupt signal by storing the return address from the program counter into a memory stack and then control branches to a service routine that processes the required I/O transfer. ● This can be done by two methods: ■ Vectored interrupt ■ Non-vectored interrupt ● Vectored Interrupt: In a vectored interrupt, the source that interrupts supplies the branch information to the computer. This information is called the interrupt vector. ● Non-vectored Interrupt: In a non vectored interrupt, the branch address is assigned to a fixed location in memory.
  • 12. Priority Interrupt A priority interrupt is a system that establishes a priority over the various sources to determine which condition is to be serviced first when two or more requests arrive simultaneously.
  • 14. Direct Memory Access ● The technique of Removing the CPU from the path of data transfer and letting the peripheral device to manage the memory buses directly to improve the speed of transfer ,is known as DMA. ● In this method , the interface transfer data to and from the memory through memory bus. ● The DMA controller manages to transfer data between peripherals and memory unit. ● In DMA , ■ when the CPU initiate the transfer, DMA request memory cycle through the memory bus. ■ When the request is granted by the memory controller, th DMA transfer the data directly to the memory. ● Many hardware systems use DMA such as disk drive controllers, graphic cards, network cards and sound cards etc. It is also used for intra chip data transfer in multicore processors.