SlideShare a Scribd company logo
1 of 17
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

What's hot

Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)Sandesh Jonchhe
 
Asynchronous data transfer
Asynchronous data transferAsynchronous data transfer
Asynchronous data transferpriya Nithya
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memoryDeepak John
 
Modes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationModes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationMOHIT AGARWAL
 
Timing and control
Timing and controlTiming and control
Timing and controlchauhankapil
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architectureFaisal Hussain
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory AccessTuqa Rmahi
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stackAsif Iqbal
 
Memory organization
Memory organizationMemory organization
Memory organizationishapadhy
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086saurav kumar
 

What's hot (20)

Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Memory management
Memory managementMemory management
Memory management
 
Asynchronous data transfer
Asynchronous data transferAsynchronous data transfer
Asynchronous data transfer
 
Dma
DmaDma
Dma
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 
Modes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationModes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output Organization
 
Timing and control
Timing and controlTiming and control
Timing and control
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Cache memory
Cache memoryCache memory
Cache memory
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Computer system bus
Computer system busComputer system bus
Computer system bus
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Interrupt
InterruptInterrupt
Interrupt
 

Similar to Direct Memory Access ppt

4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257MdFazleRabbi18
 
Direct Memory Access (DMA)-Working and Implementation
Direct Memory Access (DMA)-Working and ImplementationDirect Memory Access (DMA)-Working and Implementation
Direct Memory Access (DMA)-Working and ImplementationShubham Kumar
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfinfo998421
 
Direct Memory Access (DMA).pptx
Direct Memory Access (DMA).pptxDirect Memory Access (DMA).pptx
Direct Memory Access (DMA).pptxAbidShahriar3
 
DMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/ODMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/Osathish sak
 
DMA_document__1696148675.pdf
DMA_document__1696148675.pdfDMA_document__1696148675.pdf
DMA_document__1696148675.pdfmadhav590273
 
DMA airctecture.pptx
DMA airctecture.pptxDMA airctecture.pptx
DMA airctecture.pptxsuryansh85
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA ControllerShivamSood22
 
ARM architcture
ARM architcture ARM architcture
ARM architcture Hossam Adel
 

Similar to Direct Memory Access ppt (20)

ppppptttt.pdf
ppppptttt.pdfppppptttt.pdf
ppppptttt.pdf
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
H n q & a
H n q & aH n q & a
H n q & a
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]
 
Direct Memory Access (DMA)-Working and Implementation
Direct Memory Access (DMA)-Working and ImplementationDirect Memory Access (DMA)-Working and Implementation
Direct Memory Access (DMA)-Working and Implementation
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
 
Dma
DmaDma
Dma
 
Direct Memory Access (DMA).pptx
Direct Memory Access (DMA).pptxDirect Memory Access (DMA).pptx
Direct Memory Access (DMA).pptx
 
DMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/ODMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/O
 
DMA
DMADMA
DMA
 
07 Input Output
07  Input  Output07  Input  Output
07 Input Output
 
Cpi unit 01
Cpi unit 01Cpi unit 01
Cpi unit 01
 
DMA_document__1696148675.pdf
DMA_document__1696148675.pdfDMA_document__1696148675.pdf
DMA_document__1696148675.pdf
 
DMA airctecture.pptx
DMA airctecture.pptxDMA airctecture.pptx
DMA airctecture.pptx
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
ARM architcture
ARM architcture ARM architcture
ARM architcture
 
Modes of data transfer
Modes of data transferModes of data transfer
Modes of data transfer
 
Concept of dma
Concept of dmaConcept of dma
Concept of dma
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 

More from OECLIB Odisha Electronics Control Library

More from OECLIB Odisha Electronics Control Library (20)

5G technology-ppt
5G technology-ppt5G technology-ppt
5G technology-ppt
 
Futex ppt
Futex  pptFutex  ppt
Futex ppt
 
Distributed Computing ppt
Distributed Computing pptDistributed Computing ppt
Distributed Computing ppt
 
Autonomic Computing PPT
Autonomic Computing PPTAutonomic Computing PPT
Autonomic Computing PPT
 
Asynchronous Chips ppt
Asynchronous Chips pptAsynchronous Chips ppt
Asynchronous Chips ppt
 
Artificial Eye PPT
Artificial Eye PPTArtificial Eye PPT
Artificial Eye PPT
 
Agent Oriented Programming PPT
Agent Oriented Programming PPTAgent Oriented Programming PPT
Agent Oriented Programming PPT
 
Wireless application protocol ppt
Wireless application protocol  pptWireless application protocol  ppt
Wireless application protocol ppt
 
Wireless Communication ppt
Wireless Communication pptWireless Communication ppt
Wireless Communication ppt
 
4G Wireless Systems ppt
4G Wireless Systems ppt4G Wireless Systems ppt
4G Wireless Systems ppt
 
Steganography ppt
Steganography pptSteganography ppt
Steganography ppt
 
Sixth sense technology ppt
Sixth sense technology pptSixth sense technology ppt
Sixth sense technology ppt
 
Soa ppt
Soa pptSoa ppt
Soa ppt
 
Software developement life cycle ppt
Software developement life cycle pptSoftware developement life cycle ppt
Software developement life cycle ppt
 
Voice-over-Internet Protocol (VoIP) ppt
Voice-over-Internet Protocol (VoIP) pptVoice-over-Internet Protocol (VoIP) ppt
Voice-over-Internet Protocol (VoIP) ppt
 
ZIGBEE TECHNOLOGY ppt
ZIGBEE TECHNOLOGY pptZIGBEE TECHNOLOGY ppt
ZIGBEE TECHNOLOGY ppt
 
Wimax ppt
Wimax pptWimax ppt
Wimax ppt
 
Wibree ppt
Wibree pptWibree ppt
Wibree ppt
 
Wearable Computing
Wearable ComputingWearable Computing
Wearable Computing
 
Virtual Private Networks (VPN) ppt
Virtual Private Networks (VPN) pptVirtual Private Networks (VPN) ppt
Virtual Private Networks (VPN) ppt
 

Recently uploaded

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 

Recently uploaded (20)

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 

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

  1. 1