SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
www.oeclib.in
Submitted By:
Odisha Electronics Control Library
Seminar On
Direct Memory Access
Content
 Introduction
 History
 What is DMA?
 What is actually DMA?
 Application
 DMA Channels
 Different Modes of DMA operation
 DMA Operational Modes and Settings
 Types
 DMA Signals
 Advantages
 Disadvantages
 Conclusion
 References
Introduction
 In many I/O interfacing applications and certainly in data
acquisition systems, it is often necessary to transfer data to or
from an interface at data rates higher than those possible using
simple programmed I/O loops.
 Microprocessor controlled data transfers within the PC (using
the IN (port) and OUT (port) instructions) require a significant
amount of CPU time and are performed at a significantly
reduced data rate.
 Further to this, the CPU cannot perform any other processing
during program controlled I/O operations.
History
 An IBM (International Business Machines)
compatible computer system includes two
Intel 8237 compatible DMA controllers.
 A complete description of the 8237 DMA
controller is found in the 8237A High
Performance Programmable DMA Controller
datasheet published by Intel Corporation, and
hereby incorporated by reference.
What is DMA?
 The transfer of data between a fast storage device
such as magnetic disk and memory is often limited
by the speed of the CPU.
 Removing the CPU from the path and letting the
peripheral device manage the memory buses
directly would improve the speed of transfer .this
transfer technique is called Direct memory
access(DMA).
What is actually DMA?
 When data is ready for transfer, the board directs the
system DMA controller to put it into in system memory as
soon as possible.
 As soon as the CPU is able (which is usually very quickly),
it stops interacting with the data acquisition hardware and
the DMA controller moves the data directly into memory.
 The DMA controller gets ready for the next sample by
pointing to the next open memory location.
 The previous steps are repeated indefinitely, with data
going to each open memory location in a continuously
circulating buffer. No interaction between the CPU and the
board is needed.
Application
 DMA has been a built-in feature of PC architecture
since the introduction of the original IBM PC.
 PC-based DMA was used for floppy disk I/O in
the original PC and for hard disk I/O in later
versions.
 PC-based DMA technology, along with high-
speed bus technology, is driven by data storage,
communications, and graphics needs–all of which
require the highest rates of data transfer between
system memory and I/O devices.
DMA Channels
 The 8237 DMA controller provided by IBM
(International Business Machines) is a
peripheral interface circuit for allowing peripheral
devices to directly transfer data to or from main
memory.
 It includes four independent channels and may
be expanded to any number of channels by
cascading additional controller chips.
 In the IBM architecture, two DMA controllers are
used. One DMA controller is used for byte
transfers, and the second DMA controller is user
for word (16-bit) transfers.
Different Modes of DMA operation
There are three different modes of DMA
operations:
 Continuous DMA
 Cycle stealing
 interleaved DMA
DMA Operational Modes and Settings
 Single
A single byte (or word) is transferred. The DMA must release
and re-acquire the bus for each additional byte. This is
commonly-used by devices that cannot transfer the entire block
of data immediately. The peripheral will request the DMA each
time it is ready for another transfer.
 Block/Demand
Once the DMA acquires the system bus, an entire block of data
is transferred, up to a maximum of 64K. If the peripheral needs
additional time, it can assert the READY signal to suspend the
transfer briefly.
Types
 Bus-Master DMA Devices
Bus-master DMA devices are by far the most common type of
DMA devices on Windows systems. A bus-master DMA device
contains all the electronics and logic necessary to take control of,
or “master,” the bus on which it is located and to autonomously
transfer data between the device’s buffer and the host’s system
memory.
 System DMA Devices
System DMA devices are vestiges of the original IBM PC design.
These devices rely on a DMA controller chip on the motherboard
to perform data transfers.
DMA Signals
 DREQ0-DREQ3-DMA Request: These are four independent,
asynchronous input Signals to the DMA channels through
peripherals such as floppy disks and the hard disk.
 DACK0-DACK3-DMA Acknowledge: These are output lines to
inform the individual peripheral that a DMA is granted, DREQ
and DACK are equivalent to handshake signals in I/O devices.
 o AEN and ADSTB—Additives Enable and Address Length:
These are active high output signals that are used to latch a
high-order address byte to generate a 16-bit address.
Advantages
 DMA is fast because a dedicated piece of hardware transfers
data from one computer location to another and only one or two
bus read/write cycles are required per piece of data transferred.
 DMA is usually required to achieve maximum data transfer
speed, and thus is useful for high speed data acquisition devices.
 DMA also minimizes latency in servicing a data acquisition
device because the dedicated hardware responds more quickly
than interrupts, and transfer time is short.
Disadvantages
 Cost of DMA hardware
 DMA is useful only for DATA commands. All
non-data commands have to be executed by
CPU.
 Data has to be stored in continuous locations in
memory.
 CPU's intervention is required for initializing
DMA logic for every continuous data block
transfer. In other words, DATA CHAINING is not
possible.
Conclusion
 National Instruments uses DMA hardware and software
technology to achieve high throughput rates as well as to
increase system utilization.
 These achievements are accomplished by using a
background mechanism of data transfer that minimizes CPU
usage.
 Data acquisition users are highly aware of the advantages of
background data acquisition, and DMA solutions have been
very popular.
 Lab Driver double-buffered data acquisition features are
References
www.oeclib.in
www.google.com
www.wikipedia.com
THANKS

More Related Content

PPTX
Direct access memory
PPTX
Direct memory access
PPTX
Direct memory access
PPTX
Direct Memory Access(DMA)
PPTX
Direct memory access (dma)
PPTX
DMA and DMA controller
PPTX
Direct Memory Access
Direct access memory
Direct memory access
Direct memory access
Direct Memory Access(DMA)
Direct memory access (dma)
DMA and DMA controller
Direct Memory Access

What's hot (20)

PPTX
Memory organization (Computer architecture)
PPTX
Disk structure
PPTX
Asynchronous data transfer
PDF
Direct Memory Access
PPTX
memory hierarchy
DOCX
Control Units : Microprogrammed and Hardwired:control unit
PPTX
Interrupts
PDF
Semaphores
PPTX
Memory Reference Instructions
PPT
Memory management
PPTX
Memory management ppt
PPTX
Memory organization
PPS
Cache memory
PPTX
Computer organization
PPTX
Shared Memory Multi Processor
PDF
Computer organization memory
PPTX
System software - macro expansion,nested macro calls
PDF
Control Unit Design
PPTX
Uni Processor Architecture
Memory organization (Computer architecture)
Disk structure
Asynchronous data transfer
Direct Memory Access
memory hierarchy
Control Units : Microprogrammed and Hardwired:control unit
Interrupts
Semaphores
Memory Reference Instructions
Memory management
Memory management ppt
Memory organization
Cache memory
Computer organization
Shared Memory Multi Processor
Computer organization memory
System software - macro expansion,nested macro calls
Control Unit Design
Uni Processor Architecture
Ad

Similar to Direct Memory Access ppt (20)

PDF
ppppptttt.pdf
PPTX
Direct access memory
PPTX
3.Direct-Memory-Access-DMA-Overview.pptx
PPTX
Direct Memory Access (DMA).pptx
PPTX
30128-influencer-marketing-pitch-deck[1].pptx
PPTX
Computer Organization Video Presentation
PPTX
DMA airctecture.pptx
PPTX
Direct memory access controller slide.pptx
PPTX
DMA operation
PPTX
CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...
PPTX
Dma and dma controller 8237
PDF
CSN221_Lec_36 Computer Architecture and Microprocessor
PPTX
DMA information of microprocessor.Shows how it performs
PPTX
Direct Memory Aceess (1,21,27) coa .pptx
PPTX
Direct Memory Aceess (1,21,27) coa .pptx
PPTX
DMA presentation [By- Digvijay]
PDF
Direct Memory Access Controller 8257/8237.pdf
PPTX
IO methods
PPTX
A case study on Data Memory Access. - DMA - DMA Controller -Working Mechanism...
PPTX
Aryan_camemoryhierchyandmanagements.pptx
ppppptttt.pdf
Direct access memory
3.Direct-Memory-Access-DMA-Overview.pptx
Direct Memory Access (DMA).pptx
30128-influencer-marketing-pitch-deck[1].pptx
Computer Organization Video Presentation
DMA airctecture.pptx
Direct memory access controller slide.pptx
DMA operation
CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...
Dma and dma controller 8237
CSN221_Lec_36 Computer Architecture and Microprocessor
DMA information of microprocessor.Shows how it performs
Direct Memory Aceess (1,21,27) coa .pptx
Direct Memory Aceess (1,21,27) coa .pptx
DMA presentation [By- Digvijay]
Direct Memory Access Controller 8257/8237.pdf
IO methods
A case study on Data Memory Access. - DMA - DMA Controller -Working Mechanism...
Aryan_camemoryhierchyandmanagements.pptx
Ad

More from OECLIB Odisha Electronics Control Library (20)

PPTX
PPTX
PPTX
PPTX
Agent Oriented Programming PPT
PPTX
Wireless application protocol ppt
PPTX
Wireless Communication ppt
PPTX
PPTX
Sixth sense technology ppt
PPTX
Software developement life cycle ppt
PPTX
Voice-over-Internet Protocol (VoIP) ppt
PPTX
Virtual Private Networks (VPN) ppt

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Pre independence Education in Inndia.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Basic Mud Logging Guide for educational purpose
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Institutional Correction lecture only . . .
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cell Structure & Organelles in detailed.
O7-L3 Supply Chain Operations - ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pre independence Education in Inndia.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPH.pptx obstetrics and gynecology in nursing
human mycosis Human fungal infections are called human mycosis..pptx
Basic Mud Logging Guide for educational purpose
Insiders guide to clinical Medicine.pdf
Cell Types and Its function , kingdom of life
Institutional Correction lecture only . . .
Renaissance Architecture: A Journey from Faith to Humanism
Abdominal Access Techniques with Prof. Dr. R K Mishra
Microbial disease of the cardiovascular and lymphatic systems
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Sports Quiz easy sports quiz sports quiz
Microbial diseases, their pathogenesis and prophylaxis
Cell Structure & Organelles in detailed.

Direct Memory Access ppt

  • 1. www.oeclib.in Submitted By: Odisha Electronics Control Library Seminar On Direct Memory Access
  • 2. Content  Introduction  History  What is DMA?  What is actually DMA?  Application  DMA Channels  Different Modes of DMA operation  DMA Operational Modes and Settings  Types  DMA Signals  Advantages  Disadvantages  Conclusion  References
  • 3. Introduction  In many I/O interfacing applications and certainly in data acquisition systems, it is often necessary to transfer data to or from an interface at data rates higher than those possible using simple programmed I/O loops.  Microprocessor controlled data transfers within the PC (using the IN (port) and OUT (port) instructions) require a significant amount of CPU time and are performed at a significantly reduced data rate.  Further to this, the CPU cannot perform any other processing during program controlled I/O operations.
  • 4. History  An IBM (International Business Machines) compatible computer system includes two Intel 8237 compatible DMA controllers.  A complete description of the 8237 DMA controller is found in the 8237A High Performance Programmable DMA Controller datasheet published by Intel Corporation, and hereby incorporated by reference.
  • 5. What is DMA?  The transfer of data between a fast storage device such as magnetic disk and memory is often limited by the speed of the CPU.  Removing the CPU from the path and letting the peripheral device manage the memory buses directly would improve the speed of transfer .this transfer technique is called Direct memory access(DMA).
  • 6. What is actually DMA?  When data is ready for transfer, the board directs the system DMA controller to put it into in system memory as soon as possible.  As soon as the CPU is able (which is usually very quickly), it stops interacting with the data acquisition hardware and the DMA controller moves the data directly into memory.  The DMA controller gets ready for the next sample by pointing to the next open memory location.  The previous steps are repeated indefinitely, with data going to each open memory location in a continuously circulating buffer. No interaction between the CPU and the board is needed.
  • 7. Application  DMA has been a built-in feature of PC architecture since the introduction of the original IBM PC.  PC-based DMA was used for floppy disk I/O in the original PC and for hard disk I/O in later versions.  PC-based DMA technology, along with high- speed bus technology, is driven by data storage, communications, and graphics needs–all of which require the highest rates of data transfer between system memory and I/O devices.
  • 8. DMA Channels  The 8237 DMA controller provided by IBM (International Business Machines) is a peripheral interface circuit for allowing peripheral devices to directly transfer data to or from main memory.  It includes four independent channels and may be expanded to any number of channels by cascading additional controller chips.  In the IBM architecture, two DMA controllers are used. One DMA controller is used for byte transfers, and the second DMA controller is user for word (16-bit) transfers.
  • 9. Different Modes of DMA operation There are three different modes of DMA operations:  Continuous DMA  Cycle stealing  interleaved DMA
  • 10. DMA Operational Modes and Settings  Single A single byte (or word) is transferred. The DMA must release and re-acquire the bus for each additional byte. This is commonly-used by devices that cannot transfer the entire block of data immediately. The peripheral will request the DMA each time it is ready for another transfer.  Block/Demand Once the DMA acquires the system bus, an entire block of data is transferred, up to a maximum of 64K. If the peripheral needs additional time, it can assert the READY signal to suspend the transfer briefly.
  • 11. Types  Bus-Master DMA Devices Bus-master DMA devices are by far the most common type of DMA devices on Windows systems. A bus-master DMA device contains all the electronics and logic necessary to take control of, or “master,” the bus on which it is located and to autonomously transfer data between the device’s buffer and the host’s system memory.  System DMA Devices System DMA devices are vestiges of the original IBM PC design. These devices rely on a DMA controller chip on the motherboard to perform data transfers.
  • 12. DMA Signals  DREQ0-DREQ3-DMA Request: These are four independent, asynchronous input Signals to the DMA channels through peripherals such as floppy disks and the hard disk.  DACK0-DACK3-DMA Acknowledge: These are output lines to inform the individual peripheral that a DMA is granted, DREQ and DACK are equivalent to handshake signals in I/O devices.  o AEN and ADSTB—Additives Enable and Address Length: These are active high output signals that are used to latch a high-order address byte to generate a 16-bit address.
  • 13. Advantages  DMA is fast because a dedicated piece of hardware transfers data from one computer location to another and only one or two bus read/write cycles are required per piece of data transferred.  DMA is usually required to achieve maximum data transfer speed, and thus is useful for high speed data acquisition devices.  DMA also minimizes latency in servicing a data acquisition device because the dedicated hardware responds more quickly than interrupts, and transfer time is short.
  • 14. Disadvantages  Cost of DMA hardware  DMA is useful only for DATA commands. All non-data commands have to be executed by CPU.  Data has to be stored in continuous locations in memory.  CPU's intervention is required for initializing DMA logic for every continuous data block transfer. In other words, DATA CHAINING is not possible.
  • 15. Conclusion  National Instruments uses DMA hardware and software technology to achieve high throughput rates as well as to increase system utilization.  These achievements are accomplished by using a background mechanism of data transfer that minimizes CPU usage.  Data acquisition users are highly aware of the advantages of background data acquisition, and DMA solutions have been very popular.  Lab Driver double-buffered data acquisition features are

Editor's Notes