SlideShare a Scribd company logo
11-4 Modes of Transfer
Data transfer to and from peripherals
1) Programmed I/O
2) Interrupt-initiated I/O
3) Direct Memory Access (DMA)
4) I/O Processor (IOP)
Example of Programmed I/O
Interrupt-initiated I/O
1) Non-vectored : fixed branch address
2) Vectored : interrupt source supplies the branch address (interrupt
vector)
Initial Operation of ISR
1) Clear lower-level mask register bit
2) Clear interrupt status bit IST
3) Save contents of processor registers
4) Set interrupt enable bit IEN
5) Proceed with service routine
Final Operation of ISR
1) Clear interrupt enable bit IEN
2) Restore contents of processor registers
3) Clear the bit in the interrupt register belonging to the source that has been serviced
4) Set lower-level priority bits in the mask register
5) Restore return address into PC and set IEN
11-6 Direct Memory Access (DMA)
DMA
DMA controller takes over the buses to manage the transfer directly between the I/O device and
memory (Bus Request/Grant)
CPU
BR
BG
DBUS
WR
ABUS
RD
Bus request
Bus grant
Address bus
Write
Read
Data bus
High-impedance
(disable)
when BG is
enabled
DMA
Controller
BR
BG
Transfer Modes
1) Burst transfer : Block
2) Cycle stealing transfer : Byte
DMA Controller ( Intel 8237 DMAC ) :
DMA Initialization Process
1) Set Address register :
memory address for read/write
2) Set Word count register :
the number of words to transfer
3) Set transfer mode :
read/write,
burst/cycle stealing,
I/O to I/O,
I/O to Memory,
Memory to Memory
Memory search
I/O search
4) DMA transfer start : next section
5) EOT (End of Transfer) :
Interrupt
Control
logic
CS
Data bus
buffers
Control register
Data bus
DMA select
Internal
bus
RS
Interrupt
BG
BR
RD
WR
Register select
Read
Write
Bus request
Bus grant
Interrupt
Address register
Word count register
Address bus
buffers
Address bus
DMA request
DMA Acknowledge
to I/O device
DMA Transfer (I/O to Memory)
1) I/O Device sends a DMA request
2) DMAC activates the BR line
3) CPU responds with BG line
4) DMAC sends a DMA acknowledge
to the I/O device
5) I/O device puts a word in the data
bus (for memory write)
6) DMAC write a data to the address
specified by Address register
7) Decrement Word count register
8) Word count register = 0
EOT interrupt CPU
9) Word count register  0
DMAC checks the DMA request from
I/O device
I/O
Peripheral
device
DMA acknowledge
Address
select
CPU
Interrupt
Address Data
BG
BR
RD WR
Random access
memory (RAM)
Address Data
RD WR
Direct memory
access (DAM)
controller
Interrupt
Address Data
RD WR
BG
RS
DS
BR
DMA request
Read control
Write control
Address bus
Data bus

More Related Content

PPTX
I/O Interfaces: Bridging the Digital and Physical Worlds
PPTX
Direct Memory Access (DMA) in Computer Organisation and Architecture pptx
PPTX
Direct Memory Access(DMA).pptx ppt ppt ppt
PDF
Unit 4-input-output organization
PDF
Unit 4-input-output organization
PDF
Computer organization part 2
PPTX
DMA operation
PPTX
Modes of data transfer.computer architecture.
I/O Interfaces: Bridging the Digital and Physical Worlds
Direct Memory Access (DMA) in Computer Organisation and Architecture pptx
Direct Memory Access(DMA).pptx ppt ppt ppt
Unit 4-input-output organization
Unit 4-input-output organization
Computer organization part 2
DMA operation
Modes of data transfer.computer architecture.

Similar to 11. Input-Output Organization.pdf (20)

PPT
Unit3 pipelining io organization
PDF
Computer architecture
PPTX
Aryan_camemoryhierchyandmanagements.pptx
PPT
Unit3 input
PPTX
DMA presentation [By- Digvijay]
PPTX
Dma and dma controller 8237
PPTX
Lecture 9.pptx
PDF
modes of transfer computer architecture.
PPTX
inputoutputorganization-140722085906-phpapp01.pptx
PPT
Chapter 6 input output
PPTX
PPTX
Direct Memory Access (DMA).pptx
PPTX
Input - output organzation
PPTX
Input Output Organization
PDF
A transfer from I/O device to memory requires the execution of several instru...
DOCX
Cpi unit 01
PPTX
Lecture22_New2024 (1).pptx lecture numbere one h yeh
PPTX
8257 DMA Controller
PPTX
Direct memory access (dma)
Unit3 pipelining io organization
Computer architecture
Aryan_camemoryhierchyandmanagements.pptx
Unit3 input
DMA presentation [By- Digvijay]
Dma and dma controller 8237
Lecture 9.pptx
modes of transfer computer architecture.
inputoutputorganization-140722085906-phpapp01.pptx
Chapter 6 input output
Direct Memory Access (DMA).pptx
Input - output organzation
Input Output Organization
A transfer from I/O device to memory requires the execution of several instru...
Cpi unit 01
Lecture22_New2024 (1).pptx lecture numbere one h yeh
8257 DMA Controller
Direct memory access (dma)
Ad

Recently uploaded (20)

PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Artificial Intelligence
PDF
composite construction of structures.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
PPT on Performance Review to get promotions
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
UNIT 4 Total Quality Management .pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
Current and future trends in Computer Vision.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
additive manufacturing of ss316l using mig welding
PPTX
OOP with Java - Java Introduction (Basics)
DOCX
573137875-Attendance-Management-System-original
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Artificial Intelligence
composite construction of structures.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT on Performance Review to get promotions
Automation-in-Manufacturing-Chapter-Introduction.pdf
Geodesy 1.pptx...............................................
UNIT 4 Total Quality Management .pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Safety Seminar civil to be ensured for safe working.
Current and future trends in Computer Vision.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
additive manufacturing of ss316l using mig welding
OOP with Java - Java Introduction (Basics)
573137875-Attendance-Management-System-original
Ad

11. Input-Output Organization.pdf

  • 1. 11-4 Modes of Transfer Data transfer to and from peripherals 1) Programmed I/O 2) Interrupt-initiated I/O 3) Direct Memory Access (DMA) 4) I/O Processor (IOP) Example of Programmed I/O Interrupt-initiated I/O 1) Non-vectored : fixed branch address 2) Vectored : interrupt source supplies the branch address (interrupt vector)
  • 2. Initial Operation of ISR 1) Clear lower-level mask register bit 2) Clear interrupt status bit IST 3) Save contents of processor registers 4) Set interrupt enable bit IEN 5) Proceed with service routine Final Operation of ISR 1) Clear interrupt enable bit IEN 2) Restore contents of processor registers 3) Clear the bit in the interrupt register belonging to the source that has been serviced 4) Set lower-level priority bits in the mask register 5) Restore return address into PC and set IEN 11-6 Direct Memory Access (DMA) DMA DMA controller takes over the buses to manage the transfer directly between the I/O device and memory (Bus Request/Grant) CPU BR BG DBUS WR ABUS RD Bus request Bus grant Address bus Write Read Data bus High-impedance (disable) when BG is enabled DMA Controller BR BG
  • 3. Transfer Modes 1) Burst transfer : Block 2) Cycle stealing transfer : Byte DMA Controller ( Intel 8237 DMAC ) : DMA Initialization Process 1) Set Address register : memory address for read/write 2) Set Word count register : the number of words to transfer 3) Set transfer mode : read/write, burst/cycle stealing, I/O to I/O, I/O to Memory, Memory to Memory Memory search I/O search 4) DMA transfer start : next section 5) EOT (End of Transfer) : Interrupt Control logic CS Data bus buffers Control register Data bus DMA select Internal bus RS Interrupt BG BR RD WR Register select Read Write Bus request Bus grant Interrupt Address register Word count register Address bus buffers Address bus DMA request DMA Acknowledge to I/O device
  • 4. DMA Transfer (I/O to Memory) 1) I/O Device sends a DMA request 2) DMAC activates the BR line 3) CPU responds with BG line 4) DMAC sends a DMA acknowledge to the I/O device 5) I/O device puts a word in the data bus (for memory write) 6) DMAC write a data to the address specified by Address register 7) Decrement Word count register 8) Word count register = 0 EOT interrupt CPU 9) Word count register  0 DMAC checks the DMA request from I/O device I/O Peripheral device DMA acknowledge Address select CPU Interrupt Address Data BG BR RD WR Random access memory (RAM) Address Data RD WR Direct memory access (DAM) controller Interrupt Address Data RD WR BG RS DS BR DMA request Read control Write control Address bus Data bus