SlideShare a Scribd company logo
DIRECT MEMORY ACCESS
[DMA]
DIRECT MEMORY ACCESS(DMA)
 In DMA there is direct communication between
memory and the peripheral devices.
 CPU is idle and has no control over the memory
buses.
 DMA controller uses buses and transfer the
data directly between I/O devices and memory.
Direct Memory Access(DMA).pptx ppt ppt ppt
 BR(Bus Request) signal is used by DMA controller to
request CPU for the buses.
 When this input is active, the CPU terminates the execution of
the current instruction and places the address bus, data bus
and read write lines into a high Impedance state. High
Impedance state means that the output is disconnected(open
circuit)
 CPU then activates BG(Bus Grant) signal to
acknowledge BR signal.
 DMA now has full control over the buses and
perform the transfer.
 When the DMA terminates the transfer, it disables the
Bus Request (BR) line. The CPU disables the Bus Grant
(BG), takes control of the buses and return to its
normal operation.
TRANSFER CAN BE PERFORMED IN TWO WAYS:
 Burst Transfer
 Cycle Stealing
 In burst transfer, a number of memory word is
transfer in a continuous burst. It is done while
communicating with fast devices and can’t be
stopped or slow down.
• Cycle stealing allows the DMA controller to transfer one
data word at a time, after which it must returns control of the
buses to the CPU.
 CPU delays it operation for one cycle during which DMA
transfer takes place.
Direct Memory Access(DMA).pptx ppt ppt ppt
DMA CONTROLLER
 It communicates with CPU through data bus and
control lines.
 Registers in DMA are selected by CPU by enabling DS
and RS.
 RD and WR signals are for read and write
operation.
 The CPU initializes the DMA through the data bus. Once the
DMA receives the start control command, it can transfer
between the peripheral and the memory
 When BG=0 CPU can communicate with DMA
register for read or write operation.
 When BG=1 DMA communicate directly with the
DMA CONTROLLER
 It has three register: address, word count and control
register.
 Address register contain address which specify the
location of memory to read or write.
 It is incremented after each word is transferred into
memory.
 Word count register holds the number of words to be
transferred.
 It is decremented by one after each word is
transferred into memory and regularly check for
zero.
CONTROL REGISTER SPECIFY THE MODE OF
TRANSFER.
 DMA is first initialized by CPU. After that DMA
continue to transfer data.
 CPU initialize the DMA by sending the following
information through the data bus:
 Starting address of memory block for read or write.
 The word count or number of words to read or write.
 Control to specify mode such as read or write.
 Control to start DMA
ONCE DMA IS INITIALIZED, CPU STOP
COMMUNICATING WITH DMA
UNLESS IT RECEIVE INTERRUPT
SIGNAL OR IF IT WANTS TO CHECK
HOW MANY WORDS HAS BEEN
TRANSFERRED.
Direct Memory Access(DMA).pptx ppt ppt ppt
THANK YOU

More Related Content

PPTX
Direct Memory Access (DMA) in Computer Organisation and Architecture pptx
PDF
DMA.pdf
PPTX
DMA presentation [By- Digvijay]
PPTX
Direct Memory Access
PPTX
Aryan_camemoryhierchyandmanagements.pptx
PPTX
DMA operation
PPTX
Direct memory access (dma)
PPTX
I/O Interfaces: Bridging the Digital and Physical Worlds
Direct Memory Access (DMA) in Computer Organisation and Architecture pptx
DMA.pdf
DMA presentation [By- Digvijay]
Direct Memory Access
Aryan_camemoryhierchyandmanagements.pptx
DMA operation
Direct memory access (dma)
I/O Interfaces: Bridging the Digital and Physical Worlds

Similar to Direct Memory Access(DMA).pptx ppt ppt ppt (20)

PPTX
Direct access memory
PPTX
Direct memory access controller slide.pptx
PPTX
Computer Organization Video Presentation
PPTX
Direct access memory
PPTX
Dma and dma controller 8237
PPTX
Direct Memory Access (DMA).pptx
PPTX
DMA and DMA controller
PDF
Unit 4-input-output organization
PDF
Unit 4-input-output organization
PPTX
Direct Memory Access(DMA)
PDF
CSN221_Lec_36 Computer Architecture and Microprocessor
PPTX
30128-influencer-marketing-pitch-deck[1].pptx
PDF
11. Input-Output Organization.pdf
PPTX
DMA airctecture.pptx
PPTX
8257 DMA Controller
PPTX
Direct memory access (dma) with 8257 DMA Controller
PPT
1 STM32's DMA.ppt
PPTX
Direct access memory
Direct memory access controller slide.pptx
Computer Organization Video Presentation
Direct access memory
Dma and dma controller 8237
Direct Memory Access (DMA).pptx
DMA and DMA controller
Unit 4-input-output organization
Unit 4-input-output organization
Direct Memory Access(DMA)
CSN221_Lec_36 Computer Architecture and Microprocessor
30128-influencer-marketing-pitch-deck[1].pptx
11. Input-Output Organization.pdf
DMA airctecture.pptx
8257 DMA Controller
Direct memory access (dma) with 8257 DMA Controller
1 STM32's DMA.ppt
Ad

Recently uploaded (20)

PPTX
"One Earth Celebrating World Environment Day"
PPTX
Environmental Ethics: issues and possible solutions
PPTX
Delivery census may 2025.pptxMNNN HJTDV U
PDF
Ornithology-Basic-Concepts.pdf..........
PDF
The Truth Behind Vantara zoo in Jamnagar
PDF
Effects of rice-husk biochar and aluminum sulfate application on rice grain q...
PDF
Blue Economy Development Framework for Indonesias Economic Transformation.pdf
PPTX
structure and components of Environment.pptx
PPTX
Concept of Safe and Wholesome Water.pptx
PDF
Urban Hub 50: Spirits of Place - & the Souls' of Places
DOCX
Epoxy Coated Steel Bolted Tanks for Dairy Farm Water Ensures Clean Water for ...
PPTX
UN Environmental Inventory User Training 2021.pptx
DOCX
Epoxy Coated Steel Bolted Tanks for Fish Farm Water Provides Reliable Water f...
PDF
School Leaders Revised Training Module, SCB.pdf
PPTX
Arugula. Crop used for medical plant in kurdistant
PPTX
Envrironmental Ethics: issues and possible solution
PPTX
Conformity-and-Deviance module 7 ucsp grade 12
PPT
PPTPresentation3 jhsvdasvdjhavsdhsvjcksjbc.jasb..ppt
PPTX
Green Modern Sustainable Living Nature Presentation_20250226_230231_0000.pptx
PPTX
Plant_Cell_Presentation.pptx.com learning purpose
"One Earth Celebrating World Environment Day"
Environmental Ethics: issues and possible solutions
Delivery census may 2025.pptxMNNN HJTDV U
Ornithology-Basic-Concepts.pdf..........
The Truth Behind Vantara zoo in Jamnagar
Effects of rice-husk biochar and aluminum sulfate application on rice grain q...
Blue Economy Development Framework for Indonesias Economic Transformation.pdf
structure and components of Environment.pptx
Concept of Safe and Wholesome Water.pptx
Urban Hub 50: Spirits of Place - & the Souls' of Places
Epoxy Coated Steel Bolted Tanks for Dairy Farm Water Ensures Clean Water for ...
UN Environmental Inventory User Training 2021.pptx
Epoxy Coated Steel Bolted Tanks for Fish Farm Water Provides Reliable Water f...
School Leaders Revised Training Module, SCB.pdf
Arugula. Crop used for medical plant in kurdistant
Envrironmental Ethics: issues and possible solution
Conformity-and-Deviance module 7 ucsp grade 12
PPTPresentation3 jhsvdasvdjhavsdhsvjcksjbc.jasb..ppt
Green Modern Sustainable Living Nature Presentation_20250226_230231_0000.pptx
Plant_Cell_Presentation.pptx.com learning purpose
Ad

Direct Memory Access(DMA).pptx ppt ppt ppt

  • 2. DIRECT MEMORY ACCESS(DMA)  In DMA there is direct communication between memory and the peripheral devices.  CPU is idle and has no control over the memory buses.  DMA controller uses buses and transfer the data directly between I/O devices and memory.
  • 4.  BR(Bus Request) signal is used by DMA controller to request CPU for the buses.  When this input is active, the CPU terminates the execution of the current instruction and places the address bus, data bus and read write lines into a high Impedance state. High Impedance state means that the output is disconnected(open circuit)  CPU then activates BG(Bus Grant) signal to acknowledge BR signal.  DMA now has full control over the buses and perform the transfer.  When the DMA terminates the transfer, it disables the Bus Request (BR) line. The CPU disables the Bus Grant (BG), takes control of the buses and return to its normal operation.
  • 5. TRANSFER CAN BE PERFORMED IN TWO WAYS:  Burst Transfer  Cycle Stealing  In burst transfer, a number of memory word is transfer in a continuous burst. It is done while communicating with fast devices and can’t be stopped or slow down. • Cycle stealing allows the DMA controller to transfer one data word at a time, after which it must returns control of the buses to the CPU.  CPU delays it operation for one cycle during which DMA transfer takes place.
  • 7. DMA CONTROLLER  It communicates with CPU through data bus and control lines.  Registers in DMA are selected by CPU by enabling DS and RS.  RD and WR signals are for read and write operation.  The CPU initializes the DMA through the data bus. Once the DMA receives the start control command, it can transfer between the peripheral and the memory  When BG=0 CPU can communicate with DMA register for read or write operation.  When BG=1 DMA communicate directly with the
  • 8. DMA CONTROLLER  It has three register: address, word count and control register.  Address register contain address which specify the location of memory to read or write.  It is incremented after each word is transferred into memory.  Word count register holds the number of words to be transferred.  It is decremented by one after each word is transferred into memory and regularly check for zero.
  • 9. CONTROL REGISTER SPECIFY THE MODE OF TRANSFER.  DMA is first initialized by CPU. After that DMA continue to transfer data.  CPU initialize the DMA by sending the following information through the data bus:  Starting address of memory block for read or write.  The word count or number of words to read or write.  Control to specify mode such as read or write.  Control to start DMA
  • 10. ONCE DMA IS INITIALIZED, CPU STOP COMMUNICATING WITH DMA UNLESS IT RECEIVE INTERRUPT SIGNAL OR IF IT WANTS TO CHECK HOW MANY WORDS HAS BEEN TRANSFERRED.