4
Most read
6
Most read
9
Most read
by Code-
Note
IMRAN KHAN
Name ID
Md. Sumon Hossain Shahin 1#103#45
Md. Imran Khan 1#1030#5
Afroja Kabir 1#10326#
Israt Jahan 1#103308
Tania Sultana Jui 1#1#3270
 DMA
 Basic DMA operation
 DMA controller
 Data transfer with DMA controller
 DMA Controller options for data transfer
 Data Transfer modes
 Advantage & Disadvantage
3
• Direct Memory Access (DMA) is a method that allows an
input/output (I/O) device to send or receive data directly to or
from the main memory, bypassing the CPU to speed up memory
operations. The process is managed by a chip known as a DMA
controller (DMAC).
DMA
4
•DMA transfers are performed by a control circuit that is part of
the I/O device interface.
• It refer to this circuit as a DMA controller.
• The DMA controller performs the function that would normally
be carried out by the processer when accessing the main memory.
• Device wishing to perform DMA asserts the processors bus
request signal
• Processor completes the current bus cycle and then asserts the
bus grant signal to the device.
5
DMA
• The direct memory access (DMA) I/O technique provides direct
access to the memory while the microprocessor is temporarily
disabled.
• A DMA controller temporarily borrows the address bus, data bus,
and control bus from the microprocessor and transfers the data
bytes directly between an I/O port and a series of memory
locations.
• The DMA transfer is also used to do high-speed memory-to-
memory transfers.
• Two control signals are used to request and acknowledge a DMA
transfer in the microprocessor-based system.
6
DMA operation
During a block input byte transfer, the following sequence occurs as the data byte is sent from
the interface to the memory:
• The interface sends the DMA controller a request for DMA
service.
• A Bus request is made to the HOLD pin (active High) on the
8086 microprocessor and the controller gains control of the
bus.
• A Bus grant is returned to the DMA controller from the Hold
acknowledge (HLDA) pin (active High) on the 8086
microprocessor.
• The DMA controller places contents of the address register
onto the address bus.
• The controller sends the interface a DMA acknowledgment,
which tells the interface to put data on the data bus. (For an
output it signals the interface to latch the next data placed on
the bus.)
• The data byte is transferred to the memory location indicated
by the address bus.
• The interface latches the data.
• The Bus request is dropped, the HOLD pin goes Low, and the
controller relinquishes the bus.
• The Bus grant from the 8086 microprocessor is dropped and
the HLDA pin goes Low.
• The address register is incremented by 1.
• The byte count is decremented by 1.
• If the byte count is non-zero, return to step 1, otherwise stop
DMA operation
• The DMA Controller has several options available for the
transfer of data.
• They are:-
 Cycle steal
 Burst transfer
 Hidden DMA
1) CYCLE STEAL
A read or write signal is generated by the DMAC, and the I/O
device either generates or latches the data. The DMAC
effectively steals cycles from the processor in order to transfer
the byte, so single byte transfer is also known as cycle stealing
2). BURST TRANSFER
To achieve block transfers, some DMAC's incorporate an
automatic sequencing of the value presented on the address
bus. A register is used as a byte count, being decremented for
each byte transfer, and upon the byte count reaching zero, the
DMAC will release the bus. When the DMAC operates in burst
mode, the CPU is halted for the duration of the data transfer.
3) HIDDEN DMA
It is possible to perform hidden DMA, which is transparent to
the normal operation of the CPU. In other words, the bus is
grabbed by the DMAC when the processor is not using it.
The DMAC monitors the execution of the processor, and when
it recognises the processor executing an instruction which has
sufficient empty clock cycles to perform a byte transfer, it waits
till the processor is decoding the op code, then grabs the bus
during this time. The processor is not slowed down, but
continues processing normally. Naturally, the data transfer by
the DMAC must be completed before the processor starts
DMA Data Transfer Modes
1. Single Transfer Mode 2. Block Transfer Mode
3. Demand Transfer Mode 4. Cascade Mode:
5. Memory to memory transfer
 Single Transfer Mode: In Single Transfer mode the device is
programmed to make one transfer only. In single mode only one
byte is transferred per request.
 Block Transfer Mode: Once the DMA controller is
granted access to the system bus by the CPU, it transfers all
bytes of data in the data block. This mode is called "Block
Transfer Mode". once a Block transfer is started, it runs until
the transfer count reaches zero
DMA Data Transfer Modes
 Demand Transfer Mode: Demand Mode DMA allows PC
hardware to transfer many bytes of data, via a DMA channel,
with only a single programming of the DMA controller.
 Cascade Mode: Used to cascade additional DMA
controllers Actual bus signals is executed by cascaded chip.
 Memory to memory transfer: To perform the transfer of
the block of data from one set of memory address to another
one ,this mode is used. This means data can be transferred
from one memory device to another memory device.
• DMA allows a peripheral device to read from/write to
memory without going through the CPU
• DMA allows for faster processing since the processor can be
working on something else while the peripheral can be
populating memory.
• DMA transfer requires a DMA controller to carry out the
operation, hence cost of the system increases.
• Cache Coherence problems.
DMA operation

More Related Content

PPTX
PPT
MIS-CH05: IT Infrastructure and Emerging Technologies
PPTX
Thermal detectors of ir
PPTX
Regular Expression (Regex) Fundamentals
PPT
Ll(1) Parser in Compilers
ODP
Introduction to Perl - Day 1
PPT
MIS-CH01: Information Systems, Organization, and Strategy
MIS-CH05: IT Infrastructure and Emerging Technologies
Thermal detectors of ir
Regular Expression (Regex) Fundamentals
Ll(1) Parser in Compilers
Introduction to Perl - Day 1
MIS-CH01: Information Systems, Organization, and Strategy

What's hot (20)

PPTX
DMA and DMA controller
PPTX
Direct memory access
PPTX
Direct memory access
PPTX
Direct Memory Access(DMA)
PPTX
Data link layer
PPTX
8237 dma controller
PPTX
Congestion control
PPS
Timing and-control-unit
PPT
Chapter 13 - I/O Systems
PPTX
8257 DMA Controller
DOC
Dma transfer
PPTX
PPTX
DMA presentation [By- Digvijay]
PPTX
Presentation on risc pipeline
PPTX
4.programmable dma controller 8257
PDF
Data Communication & Computer Networks : Serial and parellel transmission
PPTX
Modes of transfer
PPTX
8086 in minimum mode
PDF
Computer organization memory
PPTX
Protected mode memory addressing 8086
DMA and DMA controller
Direct memory access
Direct memory access
Direct Memory Access(DMA)
Data link layer
8237 dma controller
Congestion control
Timing and-control-unit
Chapter 13 - I/O Systems
8257 DMA Controller
Dma transfer
DMA presentation [By- Digvijay]
Presentation on risc pipeline
4.programmable dma controller 8257
Data Communication & Computer Networks : Serial and parellel transmission
Modes of transfer
8086 in minimum mode
Computer organization memory
Protected mode memory addressing 8086
Ad

Similar to DMA operation (20)

PPTX
Direct memory access (dma)
PPTX
Dma and dma controller 8237
PPTX
Direct Memory Access (DMA).pptx
PPTX
Direct memory access controller slide.pptx
PPTX
Direct memory access
PPTX
Dma data transfer
PPTX
Direct access memory
PPTX
Direct access memory
PPTX
Computer Organization Video Presentation
PPTX
Direct Memory Access
PPTX
A case study on Data Memory Access. - DMA - DMA Controller -Working Mechanism...
PPT
1 STM32's DMA.ppt
PPTX
DMA airctecture.pptx
PPTX
This pot is about computer architecture.
PPTX
PPTX
“Imagine the CPU is a chef cooking a meal. Without DMA, the chef must also ca...
PPTX
PPTX
DMA Versus Polling or Interrupt Driven I/O
PPTX
DMA information of microprocessor.Shows how it performs
Direct memory access (dma)
Dma and dma controller 8237
Direct Memory Access (DMA).pptx
Direct memory access controller slide.pptx
Direct memory access
Dma data transfer
Direct access memory
Direct access memory
Computer Organization Video Presentation
Direct Memory Access
A case study on Data Memory Access. - DMA - DMA Controller -Working Mechanism...
1 STM32's DMA.ppt
DMA airctecture.pptx
This pot is about computer architecture.
“Imagine the CPU is a chef cooking a meal. Without DMA, the chef must also ca...
DMA Versus Polling or Interrupt Driven I/O
DMA information of microprocessor.Shows how it performs
Ad

Recently uploaded (20)

PPTX
CS6006 - CLOUD COMPUTING - Module - 1.pptx
PDF
Computer organization and architecuture Digital Notes....pdf
PPTX
Micro1New.ppt.pptx the main themes if micro
PDF
Beginners-Guide-to-Artificial-Intelligence.pdf
PPTX
Micro1New.ppt.pptx the mai themes of micfrobiology
PDF
Designing Fault-Tolerant Architectures for Resilient Oracle Cloud ERP and HCM...
PDF
SEH5E Unveiled: Enhancements and Key Takeaways for Certification Success
PPTX
Solar energy pdf of gitam songa hemant k
PDF
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
PPTX
SE unit 1.pptx aaahshdhajdviwhsiehebeiwheiebeiev
PPTX
Environmental studies, Moudle 3-Environmental Pollution.pptx
PDF
Computer System Architecture 3rd Edition-M Morris Mano.pdf
PPTX
Design ,Art Across Digital Realities and eXtended Reality
PDF
[jvmmeetup] next-gen integration with apache camel and quarkus.pdf
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PDF
MLpara ingenieira CIVIL, meca Y AMBIENTAL
PDF
AIGA 012_04 Cleaning of equipment for oxygen service_reformat Jan 12.pdf
PPTX
WN UNIT-II CH4_MKaruna_BapatlaEngineeringCollege.pptx
PDF
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
PDF
Cryptography and Network Security-Module-I.pdf
CS6006 - CLOUD COMPUTING - Module - 1.pptx
Computer organization and architecuture Digital Notes....pdf
Micro1New.ppt.pptx the main themes if micro
Beginners-Guide-to-Artificial-Intelligence.pdf
Micro1New.ppt.pptx the mai themes of micfrobiology
Designing Fault-Tolerant Architectures for Resilient Oracle Cloud ERP and HCM...
SEH5E Unveiled: Enhancements and Key Takeaways for Certification Success
Solar energy pdf of gitam songa hemant k
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
SE unit 1.pptx aaahshdhajdviwhsiehebeiwheiebeiev
Environmental studies, Moudle 3-Environmental Pollution.pptx
Computer System Architecture 3rd Edition-M Morris Mano.pdf
Design ,Art Across Digital Realities and eXtended Reality
[jvmmeetup] next-gen integration with apache camel and quarkus.pdf
August -2025_Top10 Read_Articles_ijait.pdf
MLpara ingenieira CIVIL, meca Y AMBIENTAL
AIGA 012_04 Cleaning of equipment for oxygen service_reformat Jan 12.pdf
WN UNIT-II CH4_MKaruna_BapatlaEngineeringCollege.pptx
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
Cryptography and Network Security-Module-I.pdf

DMA operation

  • 2. Name ID Md. Sumon Hossain Shahin 1#103#45 Md. Imran Khan 1#1030#5 Afroja Kabir 1#10326# Israt Jahan 1#103308 Tania Sultana Jui 1#1#3270
  • 3.  DMA  Basic DMA operation  DMA controller  Data transfer with DMA controller  DMA Controller options for data transfer  Data Transfer modes  Advantage & Disadvantage 3
  • 4. • Direct Memory Access (DMA) is a method that allows an input/output (I/O) device to send or receive data directly to or from the main memory, bypassing the CPU to speed up memory operations. The process is managed by a chip known as a DMA controller (DMAC). DMA 4
  • 5. •DMA transfers are performed by a control circuit that is part of the I/O device interface. • It refer to this circuit as a DMA controller. • The DMA controller performs the function that would normally be carried out by the processer when accessing the main memory. • Device wishing to perform DMA asserts the processors bus request signal • Processor completes the current bus cycle and then asserts the bus grant signal to the device. 5 DMA
  • 6. • The direct memory access (DMA) I/O technique provides direct access to the memory while the microprocessor is temporarily disabled. • A DMA controller temporarily borrows the address bus, data bus, and control bus from the microprocessor and transfers the data bytes directly between an I/O port and a series of memory locations. • The DMA transfer is also used to do high-speed memory-to- memory transfers. • Two control signals are used to request and acknowledge a DMA transfer in the microprocessor-based system. 6
  • 8. During a block input byte transfer, the following sequence occurs as the data byte is sent from the interface to the memory: • The interface sends the DMA controller a request for DMA service. • A Bus request is made to the HOLD pin (active High) on the 8086 microprocessor and the controller gains control of the bus. • A Bus grant is returned to the DMA controller from the Hold acknowledge (HLDA) pin (active High) on the 8086 microprocessor.
  • 9. • The DMA controller places contents of the address register onto the address bus. • The controller sends the interface a DMA acknowledgment, which tells the interface to put data on the data bus. (For an output it signals the interface to latch the next data placed on the bus.) • The data byte is transferred to the memory location indicated by the address bus. • The interface latches the data.
  • 10. • The Bus request is dropped, the HOLD pin goes Low, and the controller relinquishes the bus. • The Bus grant from the 8086 microprocessor is dropped and the HLDA pin goes Low. • The address register is incremented by 1. • The byte count is decremented by 1. • If the byte count is non-zero, return to step 1, otherwise stop
  • 12. • The DMA Controller has several options available for the transfer of data. • They are:-  Cycle steal  Burst transfer  Hidden DMA
  • 13. 1) CYCLE STEAL A read or write signal is generated by the DMAC, and the I/O device either generates or latches the data. The DMAC effectively steals cycles from the processor in order to transfer the byte, so single byte transfer is also known as cycle stealing
  • 14. 2). BURST TRANSFER To achieve block transfers, some DMAC's incorporate an automatic sequencing of the value presented on the address bus. A register is used as a byte count, being decremented for each byte transfer, and upon the byte count reaching zero, the DMAC will release the bus. When the DMAC operates in burst mode, the CPU is halted for the duration of the data transfer.
  • 15. 3) HIDDEN DMA It is possible to perform hidden DMA, which is transparent to the normal operation of the CPU. In other words, the bus is grabbed by the DMAC when the processor is not using it. The DMAC monitors the execution of the processor, and when it recognises the processor executing an instruction which has sufficient empty clock cycles to perform a byte transfer, it waits till the processor is decoding the op code, then grabs the bus during this time. The processor is not slowed down, but continues processing normally. Naturally, the data transfer by the DMAC must be completed before the processor starts
  • 16. DMA Data Transfer Modes 1. Single Transfer Mode 2. Block Transfer Mode 3. Demand Transfer Mode 4. Cascade Mode: 5. Memory to memory transfer  Single Transfer Mode: In Single Transfer mode the device is programmed to make one transfer only. In single mode only one byte is transferred per request.  Block Transfer Mode: Once the DMA controller is granted access to the system bus by the CPU, it transfers all bytes of data in the data block. This mode is called "Block Transfer Mode". once a Block transfer is started, it runs until the transfer count reaches zero
  • 17. DMA Data Transfer Modes  Demand Transfer Mode: Demand Mode DMA allows PC hardware to transfer many bytes of data, via a DMA channel, with only a single programming of the DMA controller.  Cascade Mode: Used to cascade additional DMA controllers Actual bus signals is executed by cascaded chip.  Memory to memory transfer: To perform the transfer of the block of data from one set of memory address to another one ,this mode is used. This means data can be transferred from one memory device to another memory device.
  • 18. • DMA allows a peripheral device to read from/write to memory without going through the CPU • DMA allows for faster processing since the processor can be working on something else while the peripheral can be populating memory. • DMA transfer requires a DMA controller to carry out the operation, hence cost of the system increases. • Cache Coherence problems.