SlideShare a Scribd company logo
Direct Memory Access
(DMA)
Prepared by: Lavin
Jan.2023
Outline:
• What Is Direct Memory Access?
• DMA Controller:
• How Direct Memory Access Works?
• How to Enable Direct Memory Access?
• Different Modes of Operation:
• Program.C Transfer vs DMA Transfer
• Types of Device DMA:
• Advantages and Disadvantages of DMA:
Direct memory access (DMA) is a process that allows specific
hardware devices to access system memory independently of
the CPU.
This enables the device to perform tasks without interrupting
the main processor, improving performance.
DMA is used for devices such as disk controllers and network
cards.
You can also use it for data transfer between the memory and
peripheral devices such as sound cards and graphics cards.
What Is Direct Memory Access?
The process is managed by a chip known as a DMA
controller (DMAC).
The direct memory access controller is used only for transferring the data, it doesn’t
do any modifications, so it reads, writes the data, and verifies the transfer data.
The DMA controller operates in two modes they are master mode and slave mode.
Whenever the CPU sends the acknowledgment to the DMA controller it acts as master
mode, similarly whenever the CPU didn’t send the acknowledgment to the DMA
controller then up to that point it acts as a slave.
DMA Controller :
DMA works by having a dedicated DMA controller
that manages the data transfers between memory and
the various devices that need to access it.
The DMA controller will first need to be configured
with the desired source and destination addresses, as
well as the size of the data transfer.
Once everything is configured, the DMA controller
will initiate the transfer and monitor it until it is
complete.
How Direct Memory Access Works?
Windows includes a utility called "Device Manager"
that can be used to enable or disable DMA for devices.
To access Device Manager, click Start, then type "device
manager" into the search box. Device Manager will then
show a list of all the devices installed on your computer.
Find the device you want to enable DMA for and double-
click it to open its properties. In the properties window,
go to "Details" tab, then find the "DMA" setting and set
it to "Enabled". Save your changes and close Device
Manager.
How to Enable Direct Memory Access?
It is used for large data transfer.
It is used for small data transfer.
For transferring data, a DMA controller is necessary.
The data transfer can be controlled
through software.
The speed of data transfer is slow.
While transferring data,the CPU involves.
Additional hardware is required.
Program.C Transfer vs DMA Transfer
The data transfer can be controlled through
hardware.
The speed of data transfer is very fast.
The CPU is not involved while transferring
data.
Types of Device DMA:
Devices perform one of the following three types of DMA:
REGISTER
COUNTER
Burst mode
Different Modes of Operation:
Cycle stealing mode
Transparent mode
01
02
03
The work overload
on the CPU
decreases.
For each transfer, only a
few numbers of clock
cycles are required
DMA speedups the memory
operations by bypassing the
involvement of the CPU.
Advantages and Disadvantages of DMA:
• Advantage:
01
02
Increases the price
of the system.
if done badly, hard to
use.
Advantages and Disadvantages of DMA:
• Disadvantage:
Reference:
https://www.elprocus.com/direct-memory-access-dma-in-computer-architecture/
https://www.watelectronics.com/dma-controller/
https://www.techopedia.com/definition/2767/direct-memory-access-dma
https://www.elprocus.com/direct-memory-access-dma-in-computer-architecture/
Thanks

More Related Content

PPTX
3.Direct-Memory-Access-DMA-Overview.pptx
PPTX
Computer Organization Video Presentation
PPTX
Direct Memory Access (DMA).pptx
PPTX
DMA airctecture.pptx
PPTX
Direct access memory
PPTX
“Imagine the CPU is a chef cooking a meal. Without DMA, the chef must also ca...
PPTX
Direct memory access
PPTX
30128-influencer-marketing-pitch-deck[1].pptx
3.Direct-Memory-Access-DMA-Overview.pptx
Computer Organization Video Presentation
Direct Memory Access (DMA).pptx
DMA airctecture.pptx
Direct access memory
“Imagine the CPU is a chef cooking a meal. Without DMA, the chef must also ca...
Direct memory access
30128-influencer-marketing-pitch-deck[1].pptx

Similar to about architecture....................... (20)

PPTX
DMA presentation [By- Digvijay]
PPTX
Direct access memory
PPTX
Direct memory access (dma)
PPTX
Aryan_camemoryhierchyandmanagements.pptx
PPTX
Direct Memory Access(DMA)
PPTX
Direct memory access controller slide.pptx
PPTX
PPTX
Direct Memory Aceess (1,21,27) coa .pptx
PPTX
Direct Memory Aceess (1,21,27) coa .pptx
PDF
ppppptttt.pdf
PDF
Direct memory access (DMA) is a function that allows an inputoutput.pdf
PPTX
DMA and DMA controller
PDF
1 q.pdf
PPTX
Direct memory access (dma)
PPT
Direct Memory Access (DMA) E_systems.ppt
PPTX
Direct Memory Access (DMA) PRA.1233.pptx
PPT
Direct Memory Access (DMA).ppt
PPT
Direct Memory Access (DMA).ppt
DMA presentation [By- Digvijay]
Direct access memory
Direct memory access (dma)
Aryan_camemoryhierchyandmanagements.pptx
Direct Memory Access(DMA)
Direct memory access controller slide.pptx
Direct Memory Aceess (1,21,27) coa .pptx
Direct Memory Aceess (1,21,27) coa .pptx
ppppptttt.pdf
Direct memory access (DMA) is a function that allows an inputoutput.pdf
DMA and DMA controller
1 q.pdf
Direct memory access (dma)
Direct Memory Access (DMA) E_systems.ppt
Direct Memory Access (DMA) PRA.1233.pptx
Direct Memory Access (DMA).ppt
Direct Memory Access (DMA).ppt
Ad

Recently uploaded (20)

PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Indian roads congress 037 - 2012 Flexible pavement
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
advance database management system book.pdf
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
Empowerment Technology for Senior High School Guide
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
My India Quiz Book_20210205121199924.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
Indian roads congress 037 - 2012 Flexible pavement
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
advance database management system book.pdf
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Unit 4 Computer Architecture Multicore Processor.pptx
Virtual and Augmented Reality in Current Scenario
AI-driven educational solutions for real-life interventions in the Philippine...
Introduction to pro and eukaryotes and differences.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Empowerment Technology for Senior High School Guide
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
My India Quiz Book_20210205121199924.pdf
Ad

about architecture.......................

  • 2. Outline: • What Is Direct Memory Access? • DMA Controller: • How Direct Memory Access Works? • How to Enable Direct Memory Access? • Different Modes of Operation: • Program.C Transfer vs DMA Transfer • Types of Device DMA: • Advantages and Disadvantages of DMA:
  • 3. Direct memory access (DMA) is a process that allows specific hardware devices to access system memory independently of the CPU. This enables the device to perform tasks without interrupting the main processor, improving performance. DMA is used for devices such as disk controllers and network cards. You can also use it for data transfer between the memory and peripheral devices such as sound cards and graphics cards. What Is Direct Memory Access? The process is managed by a chip known as a DMA controller (DMAC).
  • 4. The direct memory access controller is used only for transferring the data, it doesn’t do any modifications, so it reads, writes the data, and verifies the transfer data. The DMA controller operates in two modes they are master mode and slave mode. Whenever the CPU sends the acknowledgment to the DMA controller it acts as master mode, similarly whenever the CPU didn’t send the acknowledgment to the DMA controller then up to that point it acts as a slave. DMA Controller :
  • 5. DMA works by having a dedicated DMA controller that manages the data transfers between memory and the various devices that need to access it. The DMA controller will first need to be configured with the desired source and destination addresses, as well as the size of the data transfer. Once everything is configured, the DMA controller will initiate the transfer and monitor it until it is complete. How Direct Memory Access Works?
  • 6. Windows includes a utility called "Device Manager" that can be used to enable or disable DMA for devices. To access Device Manager, click Start, then type "device manager" into the search box. Device Manager will then show a list of all the devices installed on your computer. Find the device you want to enable DMA for and double- click it to open its properties. In the properties window, go to "Details" tab, then find the "DMA" setting and set it to "Enabled". Save your changes and close Device Manager. How to Enable Direct Memory Access?
  • 7. It is used for large data transfer. It is used for small data transfer. For transferring data, a DMA controller is necessary. The data transfer can be controlled through software. The speed of data transfer is slow. While transferring data,the CPU involves. Additional hardware is required. Program.C Transfer vs DMA Transfer The data transfer can be controlled through hardware. The speed of data transfer is very fast. The CPU is not involved while transferring data.
  • 8. Types of Device DMA: Devices perform one of the following three types of DMA: REGISTER COUNTER
  • 9. Burst mode Different Modes of Operation: Cycle stealing mode Transparent mode
  • 10. 01 02 03 The work overload on the CPU decreases. For each transfer, only a few numbers of clock cycles are required DMA speedups the memory operations by bypassing the involvement of the CPU. Advantages and Disadvantages of DMA: • Advantage:
  • 11. 01 02 Increases the price of the system. if done badly, hard to use. Advantages and Disadvantages of DMA: • Disadvantage: