SlideShare a Scribd company logo
1 of 12
Download to read offline
A. S. M. Badrudduza, Asst. Prof., Dept. of ETE, RUET
DMA Operation
DMA Operation [Cntd.]
• Direct Memory Access (DMA) is an I/O technique commonly
used for high-speed data transfer; for example , data transfer
between memory and a floppy disk.
• In DMA, MPU releases the control of the buses to a device
called a DMA controller. The controller manages data
transfer between memory and a peripheral under its control,
thus bypassing the MPU.
• Two new signals HOLD and HLDA (Hold acknowledge) are
needed to complete DMA task.
HOLD
This is an active high input signal to MPU from another master requesting
the use of address and data busses.
The processor relinquishes the buses in the following machine cycle once
the MPU receives the HOLD request.
The busses are tri-stated and HLDA signal is sent out.
MPU regains the control of the buses after HOLD goes low.
HLDA
This is an active high output signal from MPU.
It indicates that the MPU is relinquishing the control of the buses.
DMA Controller Essentials
 A data bus,
 An address bus,
 Read/Write control signals, and
 Control signals to disable its role as a peripheral and
enable its role as a processor.
8237A
DMA
Controller
with
Internal
Registers
Features of 8237A
8237 is a programmable Direct Memory Access controller (DMA)
housed in a 40-pin package.
It has four independent channels with each channel capable of
transferring 64K bytes.
It must interface with MPU and a peripheral device (floppy disk).
DMA plays two roles: i. it is an I/O device to MPU (slave mode) and ii.
it is a data transfer processor to peripheral device (master mode).
Many of its signals that are input in the I/O mode become outputs in
the processor mode.
It also needs additional signal lines to communicate with the
addresses of 64K data bytes which are generated externally by using
latches and buffers.
Description
8237 has four independent channels CH0-CH3. Two 16-bit registers
are internally associated with each channel: One is used to load the
starting address of the byte to be copied and the second is used to
load a count of the number of bytes to be copied.
These registers are determined by A3-A0 and the chip select line (CS).
Last 8 registers are used for writing commands and reading status.
The 8237 signals are divided into two groups: 1) signals on left (used
to communicate with MPU), and 2) signals on right (used to
communicate with peripheral).
Some of these signals are bidirectional and their functions are
determined by the DMA mode of operation (I/O or processor mode).
DMA Signals
DREQ0-DREQ3: Those are four independent, asynchronous input signals to the DMA
from peripherals. To obtain DMA service , a request is generated by activating the
DREQ line of the channel.
DACK0-DACK3: Those are output lines to inform the individual peripherals that DMA
is granted. DREQ and DACK are equivalent to handshake signals in I/O devices.
MEMR and MEMW: Those are output signals used during DMA cycle to write and
read from memory.
A3-A0 and A7-A4: A3-A0 lines are bidirectional. As input lines, they are used to
access control registers. During DMA cycle, those are output lines and are used to
generate low order address which are later combined with remaining lines A7-A4.
AEN and ADSTB: Address Enable and Address Strobe are used to latch a high-order
address byte to generate a 16-bit address.
HRQ and HLDA: After receiving the HRQ (Hold request), the MPU completes the bus
cycle in process and issues the HLDA (Hold Acknowledgement) signal.
DMA Interfacing with Microprocessor
DMA process includes 8 data lines, four control signals, 8 address lines. Additional
8 address lines are generated to access 64K bytes.
When a transfer begins, the DMA places the low-order byte on the address bus
and high-order byte on the data bus.
Then 8237 asserts AEN (Address Enable) and ADSTB (Address Strobe).
Theses two signals are used to latch the high-order byte from the data bus and
8237 places the 16-bit address on the system bus.
First latch (373 #1) is used to latch a high order address from the data bus and the
second latch (373 #2) is used to demultiplex the MPU bus and generate the low
order address bus.
The AEN signal is connected to OE signal of 373 #2 to disable the low order
address bus from the MPU when 373 #1 is enabled to latch the high order byte of
address.
Interfacing
8237A
DMA
Controller
Reference:
Ramesh Gaonkar, ‘Microprocessor, Architecture, Programming, and
Applications’, 5th Edition.

More Related Content

Similar to Direct Memory Access.pdf

Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerMuhammed Afsal Villan
 
3 L pin diagram.pptx
3 L pin diagram.pptx3 L pin diagram.pptx
3 L pin diagram.pptxPoonamarora73
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorNikhil Kumar
 
Intel 8086 internal architecture & pin diagram
Intel 8086 internal architecture & pin diagramIntel 8086 internal architecture & pin diagram
Intel 8086 internal architecture & pin diagramkrunal47
 
8086 Programing.ppt
8086 Programing.ppt8086 Programing.ppt
8086 Programing.pptDrRRAMAN
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controllerabdulugc
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controllerafzal ahmad
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory AccessTuqa Rmahi
 
Chapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptxChapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptxmelaku76
 
Micro channel architecture
Micro channel architectureMicro channel architecture
Micro channel architectureGichelle Amon
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 

Similar to Direct Memory Access.pdf (20)

Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA Controller
 
3 L pin diagram.pptx
3 L pin diagram.pptx3 L pin diagram.pptx
3 L pin diagram.pptx
 
8086 modes
8086 modes8086 modes
8086 modes
 
8086 new
8086 new8086 new
8086 new
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 Microprocessor
 
Intel 8086 internal architecture & pin diagram
Intel 8086 internal architecture & pin diagramIntel 8086 internal architecture & pin diagram
Intel 8086 internal architecture & pin diagram
 
DMA
DMADMA
DMA
 
8086 Programing.ppt
8086 Programing.ppt8086 Programing.ppt
8086 Programing.ppt
 
unit 4 mc.pdf
unit 4 mc.pdfunit 4 mc.pdf
unit 4 mc.pdf
 
UNIT 3.pptx
UNIT 3.pptxUNIT 3.pptx
UNIT 3.pptx
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controller
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controller
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Chapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptxChapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptx
 
Micro channel architecture
Micro channel architectureMicro channel architecture
Micro channel architecture
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
MINIMUM MODE INTERFACE
MINIMUM MODE INTERFACEMINIMUM MODE INTERFACE
MINIMUM MODE INTERFACE
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 

Recently uploaded

HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 

Recently uploaded (20)

HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 

Direct Memory Access.pdf

  • 1. A. S. M. Badrudduza, Asst. Prof., Dept. of ETE, RUET
  • 3. DMA Operation [Cntd.] • Direct Memory Access (DMA) is an I/O technique commonly used for high-speed data transfer; for example , data transfer between memory and a floppy disk. • In DMA, MPU releases the control of the buses to a device called a DMA controller. The controller manages data transfer between memory and a peripheral under its control, thus bypassing the MPU. • Two new signals HOLD and HLDA (Hold acknowledge) are needed to complete DMA task.
  • 4. HOLD This is an active high input signal to MPU from another master requesting the use of address and data busses. The processor relinquishes the buses in the following machine cycle once the MPU receives the HOLD request. The busses are tri-stated and HLDA signal is sent out. MPU regains the control of the buses after HOLD goes low. HLDA This is an active high output signal from MPU. It indicates that the MPU is relinquishing the control of the buses.
  • 5. DMA Controller Essentials  A data bus,  An address bus,  Read/Write control signals, and  Control signals to disable its role as a peripheral and enable its role as a processor.
  • 7. Features of 8237A 8237 is a programmable Direct Memory Access controller (DMA) housed in a 40-pin package. It has four independent channels with each channel capable of transferring 64K bytes. It must interface with MPU and a peripheral device (floppy disk). DMA plays two roles: i. it is an I/O device to MPU (slave mode) and ii. it is a data transfer processor to peripheral device (master mode). Many of its signals that are input in the I/O mode become outputs in the processor mode. It also needs additional signal lines to communicate with the addresses of 64K data bytes which are generated externally by using latches and buffers.
  • 8. Description 8237 has four independent channels CH0-CH3. Two 16-bit registers are internally associated with each channel: One is used to load the starting address of the byte to be copied and the second is used to load a count of the number of bytes to be copied. These registers are determined by A3-A0 and the chip select line (CS). Last 8 registers are used for writing commands and reading status. The 8237 signals are divided into two groups: 1) signals on left (used to communicate with MPU), and 2) signals on right (used to communicate with peripheral). Some of these signals are bidirectional and their functions are determined by the DMA mode of operation (I/O or processor mode).
  • 9. DMA Signals DREQ0-DREQ3: Those are four independent, asynchronous input signals to the DMA from peripherals. To obtain DMA service , a request is generated by activating the DREQ line of the channel. DACK0-DACK3: Those are output lines to inform the individual peripherals that DMA is granted. DREQ and DACK are equivalent to handshake signals in I/O devices. MEMR and MEMW: Those are output signals used during DMA cycle to write and read from memory. A3-A0 and A7-A4: A3-A0 lines are bidirectional. As input lines, they are used to access control registers. During DMA cycle, those are output lines and are used to generate low order address which are later combined with remaining lines A7-A4. AEN and ADSTB: Address Enable and Address Strobe are used to latch a high-order address byte to generate a 16-bit address. HRQ and HLDA: After receiving the HRQ (Hold request), the MPU completes the bus cycle in process and issues the HLDA (Hold Acknowledgement) signal.
  • 10. DMA Interfacing with Microprocessor DMA process includes 8 data lines, four control signals, 8 address lines. Additional 8 address lines are generated to access 64K bytes. When a transfer begins, the DMA places the low-order byte on the address bus and high-order byte on the data bus. Then 8237 asserts AEN (Address Enable) and ADSTB (Address Strobe). Theses two signals are used to latch the high-order byte from the data bus and 8237 places the 16-bit address on the system bus. First latch (373 #1) is used to latch a high order address from the data bus and the second latch (373 #2) is used to demultiplex the MPU bus and generate the low order address bus. The AEN signal is connected to OE signal of 373 #2 to disable the low order address bus from the MPU when 373 #1 is enabled to latch the high order byte of address.
  • 12. Reference: Ramesh Gaonkar, ‘Microprocessor, Architecture, Programming, and Applications’, 5th Edition.