SlideShare a Scribd company logo
2
Most read
3
Most read
6
Most read
TOPIC : DIRECT ACCESS MEMORY
GOVERNMENT COLLEGE WOMEN UNIVERSITY
FAISALABAD
DMA Definition
 DMA stands for Direct memory access and is a
method of transferring data from the computers RAM
to another part of the computer without processing it
using the CPU.
 Direct memory access (DMA) is a feature of
computer systems that allows certain hardware
subsystems to access main system memory.
 DMA normally occur between an I/O device and
memory.
12/18/2017
2
Functions of DMA
 DMA read transfers data from the memory to the I/O
device.
 A DMA write transfers data from an I/O device to memory.
 Memory & I/O are controlled simultaneously.
 DMA can save processing time and it is a more efficient way
to move data from the computer's memory to other devices.
12/18/2017
3
WORKING OF DMA
 In order to transfer data ,each type of port on a
computer has a set of DMA channels that can be
assigned to each connected device.
 For example, a PCI controller and a hard drive
controller each have their own set of DMA
channels.
 PCI stands for Peripheral Component
Interconnect and is an industry standard bus for
attaching peripheral devices to a computer
4
I/O controller
 To provide control signals to the I/O device a I/O controller
is required.
 No I/O device is directly connected to the CPU.
 I/O controller is located between the CPU and the I/O
device.
 The keyboard is not directly connected to CPU rather
its connected to a keyboard controller and the
keyboard controller is connected to the CPU.
5
12/18/2017
6
The HOLD pin is an input used to request a DMA action.
The HLDA pin is an output that acknowledges the DMA action •
7 DMA controller send HOLD signal to microprocessor
 Microprocessor Send HLDA to DMA Controller& DMA
Takes charge of system bus.
 DMA give DMAACK(back) signal to I/O devices
 Now, DMA controller places memory address on address
bus and data bytes from memory transfer to I/O .
 DMA Controller updates memory address register and
word count register.
 When internal count = 0 then DMA Controller sets
HOLD=0
 Now DMA controller send HLDA message to CPU of
task completion.
 The DMA Controller has several options available for the
transfer of data.
1. Cycle steal.
2. Burst transfer Hidden.
Cycle Stealing
In this method, system allows DMA controller to
use system bus to transfer one word, after which it should
return back control of bus to CPU.
This method reduces maximum I/O transfer rates.
It also reduces interference of DMA controller in CPU
memory access.
8
Burst transfer
 The DMA controller keeps control of the bus until all the
data buffered by the requesting device has been
transferred to memory.
9
ADVANTAGES OF DMA
 DMA enables more efficient use of interrupts.
 High transfer rates.
 Increases data throughput
 DMA supports faster CPUs than those devices without DMA
support.
 DMA-capable device can communicate directly with memory.
10
DISADVANTAGES OF DMA
 DMA hardware is complicated.
 Memory conflict between CPU and DMA.
 DMA transfer require a DMA controller to carry out
operation hence cost of system increase.
12/18/2017
11

More Related Content

PPTX
Direct memory access (dma)
PPTX
DMA and DMA controller
PPTX
Direct memory access
PPTX
PPTX
Direct memory access
PPTX
Encapsulation C++
PPTX
COGNITIVE RADIO
Direct memory access (dma)
DMA and DMA controller
Direct memory access
Direct memory access
Encapsulation C++
COGNITIVE RADIO

What's hot (20)

PPTX
Direct Memory Access(DMA)
PPTX
Direct Memory Access
PPTX
Memory organization in computer architecture
PPTX
DMA operation
PDF
Computer organization memory
PPS
Cache memory
PPTX
Memory organization (Computer architecture)
PPTX
Pin Description and Register Organization of 8086 Microprocessor
PPTX
DATA TRANSMISSION, Synchronous & Asynchronous Data Transfer
PPTX
DMA presentation [By- Digvijay]
PPTX
Instruction set of 8086
PPTX
Cache memory ppt
PPTX
Minimum mode and Maximum mode Configuration in 8086
PPT
Microprocessor 80386
PDF
Direct Memory Access
PPTX
register
PPTX
8257 DMA Controller
PPT
8086 pin details
PPT
Unit 3 basic processing unit
PPT
Memory hierarchy
Direct Memory Access(DMA)
Direct Memory Access
Memory organization in computer architecture
DMA operation
Computer organization memory
Cache memory
Memory organization (Computer architecture)
Pin Description and Register Organization of 8086 Microprocessor
DATA TRANSMISSION, Synchronous & Asynchronous Data Transfer
DMA presentation [By- Digvijay]
Instruction set of 8086
Cache memory ppt
Minimum mode and Maximum mode Configuration in 8086
Microprocessor 80386
Direct Memory Access
register
8257 DMA Controller
8086 pin details
Unit 3 basic processing unit
Memory hierarchy
Ad

Similar to Direct access memory (20)

PPTX
Direct access memory
PDF
ppppptttt.pdf
PPTX
Direct memory access controller slide.pptx
PPTX
DMA airctecture.pptx
PPTX
Direct Memory Access (DMA).pptx
PPTX
Aryan_camemoryhierchyandmanagements.pptx
PPTX
4.programmable dma controller 8257
PPTX
3.Direct-Memory-Access-DMA-Overview.pptx
PDF
discuss the drawbacks of programmed and interrupt driven io and des.pdf
PPTX
Dma and dma controller 8237
PPTX
PDF
H n q & a
PPTX
Concept of dma
PPTX
A case study on Data Memory Access. - DMA - DMA Controller -Working Mechanism...
PPTX
Modes of data transfer
PPTX
8237 dma controller
PPTX
8237-DMA-Caontroller.pptx for unitiii in
PPTX
DMA information of microprocessor.Shows how it performs
DOCX
Cpi unit 01
Direct access memory
ppppptttt.pdf
Direct memory access controller slide.pptx
DMA airctecture.pptx
Direct Memory Access (DMA).pptx
Aryan_camemoryhierchyandmanagements.pptx
4.programmable dma controller 8257
3.Direct-Memory-Access-DMA-Overview.pptx
discuss the drawbacks of programmed and interrupt driven io and des.pdf
Dma and dma controller 8237
H n q & a
Concept of dma
A case study on Data Memory Access. - DMA - DMA Controller -Working Mechanism...
Modes of data transfer
8237 dma controller
8237-DMA-Caontroller.pptx for unitiii in
DMA information of microprocessor.Shows how it performs
Cpi unit 01
Ad

More from maliksiddique1 (12)

PPTX
Web application
PPTX
Interface specification
PPTX
Operating system
PPTX
what is computer
PPTX
Debagging
DOCX
Tcp protocols
PPTX
what is Font in multimedia
PPTX
Multimadia
PPTX
Alpha beta pruning
PPTX
Long Term Debt Instrument
PPTX
software requirement specification
PPTX
what is bond
Web application
Interface specification
Operating system
what is computer
Debagging
Tcp protocols
what is Font in multimedia
Multimadia
Alpha beta pruning
Long Term Debt Instrument
software requirement specification
what is bond

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
KodekX | Application Modernization Development
PDF
Encapsulation theory and applications.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Empathic Computing: Creating Shared Understanding
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Approach and Philosophy of On baking technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
DOCX
The AUB Centre for AI in Media Proposal.docx
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 3 Spatial Domain Image Processing.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
KodekX | Application Modernization Development
Encapsulation theory and applications.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Network Security Unit 5.pdf for BCA BBA.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
NewMind AI Weekly Chronicles - August'25 Week I
Empathic Computing: Creating Shared Understanding
Mobile App Security Testing_ A Comprehensive Guide.pdf
Programs and apps: productivity, graphics, security and other tools
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Approach and Philosophy of On baking technology
MIND Revenue Release Quarter 2 2025 Press Release
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
The AUB Centre for AI in Media Proposal.docx

Direct access memory

  • 1. TOPIC : DIRECT ACCESS MEMORY GOVERNMENT COLLEGE WOMEN UNIVERSITY FAISALABAD
  • 2. DMA Definition  DMA stands for Direct memory access and is a method of transferring data from the computers RAM to another part of the computer without processing it using the CPU.  Direct memory access (DMA) is a feature of computer systems that allows certain hardware subsystems to access main system memory.  DMA normally occur between an I/O device and memory. 12/18/2017 2
  • 3. Functions of DMA  DMA read transfers data from the memory to the I/O device.  A DMA write transfers data from an I/O device to memory.  Memory & I/O are controlled simultaneously.  DMA can save processing time and it is a more efficient way to move data from the computer's memory to other devices. 12/18/2017 3
  • 4. WORKING OF DMA  In order to transfer data ,each type of port on a computer has a set of DMA channels that can be assigned to each connected device.  For example, a PCI controller and a hard drive controller each have their own set of DMA channels.  PCI stands for Peripheral Component Interconnect and is an industry standard bus for attaching peripheral devices to a computer 4
  • 5. I/O controller  To provide control signals to the I/O device a I/O controller is required.  No I/O device is directly connected to the CPU.  I/O controller is located between the CPU and the I/O device.  The keyboard is not directly connected to CPU rather its connected to a keyboard controller and the keyboard controller is connected to the CPU. 5
  • 6. 12/18/2017 6 The HOLD pin is an input used to request a DMA action. The HLDA pin is an output that acknowledges the DMA action •
  • 7. 7 DMA controller send HOLD signal to microprocessor  Microprocessor Send HLDA to DMA Controller& DMA Takes charge of system bus.  DMA give DMAACK(back) signal to I/O devices  Now, DMA controller places memory address on address bus and data bytes from memory transfer to I/O .  DMA Controller updates memory address register and word count register.  When internal count = 0 then DMA Controller sets HOLD=0  Now DMA controller send HLDA message to CPU of task completion.
  • 8.  The DMA Controller has several options available for the transfer of data. 1. Cycle steal. 2. Burst transfer Hidden. Cycle Stealing In this method, system allows DMA controller to use system bus to transfer one word, after which it should return back control of bus to CPU. This method reduces maximum I/O transfer rates. It also reduces interference of DMA controller in CPU memory access. 8
  • 9. Burst transfer  The DMA controller keeps control of the bus until all the data buffered by the requesting device has been transferred to memory. 9
  • 10. ADVANTAGES OF DMA  DMA enables more efficient use of interrupts.  High transfer rates.  Increases data throughput  DMA supports faster CPUs than those devices without DMA support.  DMA-capable device can communicate directly with memory. 10
  • 11. DISADVANTAGES OF DMA  DMA hardware is complicated.  Memory conflict between CPU and DMA.  DMA transfer require a DMA controller to carry out operation hence cost of system increase. 12/18/2017 11