SlideShare a Scribd company logo
1 of 22
8237DMA CONTROLLER
Introduction:
 Direct Memory Access (DMA) is a method of
  allowing data to be moved from one location to
  another in a computer without intervention from
  the central processor (CPU).
 It is also a fast way of transferring data within
  (and sometimes between) computer.
 The DMA I/O technique provides direct access to
  the memory while the microprocessor is
  temporarily disabled.
 The DMA controller temporarily borrows the
  address bus, data bus and control bus from the
  microprocessor and transfers the data directly
  from the external devices to a series of memory
  locations (and vice versa).
Basic DMA Operation:
 Two control signals are used to request and
 acknowledge a direct memory access (DMA)
 transfer in the microprocessor-based system.
   The HOLD signal as an input(to the processor) is
    used to request a DMA action.
   The HLDA signal as an output that acknowledges
    the DMA action.
 When the processor recognizes the hold, it stops its
  execution and enters hold cycles.
Cont.,
 HOLD input has higher priority than INTR or NMI.
 The only microprocessor pin that has a higher
 priority than a HOLD is the RESET pin.
 HLDA  becomes active to indicate that the
 processor has placed its buses at high-
 impedance state.
Basic DMA Definitions:
 Direct memory accesses normally occur between
 an I/O device and memory without the use of the
 microprocessor.
  A DMA read transfers data from the memory
   to the I/O device.
  A DMA write transfers data from an I/O device
   to memory.
 The system contains separate memory and I/O
  control signals.
 Hence the Memory & the I/O are controlled
  simultaneously
 The DMA controller provides memory with its address,
    and the controller signal selects the I/O device during
    the transfer.
   Data transfer speed is determined by speed of the
    memory device or a DMA controller.
   In many cases, the DMA controller slows the speed of
    the system when transfers occur.
   The serial PCI (Peripheral Component Interface)
    Express bus transfers data at rates exceeding DMA
    transfers.
   This in modern systems has made DMA is less
    important.
6
The 8237 DMA Controller
 The 8237 supplies memory & I/O with control
  signals and memory address information during
  the DMA transfer.
 It is actually a special-purpose microprocessor
  whose job is high-speed data transfer between
  memory and I/O
CPU having the control over the bus:
When DMA operates:
 8237 is not a discrete component in modern
  microprocessor-based systems.
   It appears within many system controller chip
    sets
 8237 is a four-channel device compatible with
  8086/8088, adequate for small systems.
 Expandable to any number of DMA channel
     inputs
 8237 is capable of DMA transfers at rates up
     to 1.6MB per second.
 Each channel is capable of addressing a
10                          full
Programmable DMA controller. (a) Block diagram and (b) pin-out.




11
8237 Internal Registers
CAR
 The current address register holds a 16-bit
  memory address used for the DMA transfer.
 Each channel has its own current address
  register for this purpose.
 When a byte of data is transferred during a DMA
  operation, CAR is either incremented or
  decremented depending on how it is
  programmed.
CWCR
 The current word count register programs a
 channel for the number of bytes to transferred
 during a DMA action.
CR
 The command register programs the operation
  of the 8237 DMA controller.
 The register uses bit position 0 to select the
  memory-to-memory DMA transfer mode.
   Memory-to-memory       DMA transfers use DMA
    channel 0 to hold the source address
   DMA channel 1 holds the destination address
command register.




14
BA and BWC
 The base address (BA) and base word count
  (BWC) registers are used when auto-initialization
  is selected for a channel.
 In auto-initialization mode, these registers are
  used to reload the CAR and CWCR after the
  DMA action is completed.
MR
 The mode register
  programs the mode of
  operation for a
  channel.
 Each channel has its
  own mode register as
  selected by bit
  positions 1 and 0.
      Remaining bits of the
      mode register select
      operation, auto-
      initialization,
      increment/decrement,
16    and mode for the
BR
 The bus request register is used to request
     a DMA transfer via software.
      very useful in memory-to-memory transfers, where an
      external signal is not available to begin the DMA transfer




17
MRSR
 The mask register set/reset sets or clears the channel
     mask.
      if the mask is set, the channel is disabled
      the RESET signal sets all channel masks
      to disable them




18
MSR
 The mask register clears or sets all of
     the masks with one command instead of individual
     channels, as with the MRSR.




19
SR
 The status register shows
  status of each DMA
  channel. The TC bits
  indicate if the channel has
  reached its terminal count
  (transferred all its bytes).
 When the terminal count is
  reached, the DMA transfer
  is terminated for most
  modes
  of operation.
 The request bits indicate
  whether
20
     the DREQ input for a given
Master clear
 Acts exactly the same as the RESET signal to the 8237.
   As with the RESET signal, this command disables all
    channels
Clear mask register
 Enables all four DMA channels.
Clear the first/last flip-flop
 Clears the first/last (F/L) flip-flop within 8237.
 The F/L flip-flop selects which byte (low or high order) is
  read/written in the current address and current count
  registers.
   if F/L = 0, the low-order byte is selected
   if F/L = 1, the high-order byte is selected
 Any read or write to the address or count register
 Memory-to-memory transfer is much more
  powerful than the automatically repeated
  MOVSB instruction.
   most modern chip sets do not support the
    memory-to-memory feature
 8237 requires only 2.0 µs per byte, which is
  over twice as fast the existing data transfer.


22

More Related Content

What's hot

Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1deval patel
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 completeShubham Singh
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMAAJAL A J
 
Demultiplexing of buses of 8085 microprocessor
Demultiplexing of buses of 8085 microprocessor Demultiplexing of buses of 8085 microprocessor
Demultiplexing of buses of 8085 microprocessor Rajal Patel
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)Zubair Khalid
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit DesignVinit Raut
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controllerabhikalmegh
 
Assembler directives and basic steps ALP of 8086
Assembler directives and basic steps ALP of 8086Assembler directives and basic steps ALP of 8086
Assembler directives and basic steps ALP of 8086Urvashi Singh
 
Accessing I/O Devices
Accessing I/O DevicesAccessing I/O Devices
Accessing I/O DevicesSlideshare
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitabdosaidgkv
 

What's hot (20)

Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMA
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
Demultiplexing of buses of 8085 microprocessor
Demultiplexing of buses of 8085 microprocessor Demultiplexing of buses of 8085 microprocessor
Demultiplexing of buses of 8085 microprocessor
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
DMA operation
DMA operationDMA operation
DMA operation
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
Assembler directives and basic steps ALP of 8086
Assembler directives and basic steps ALP of 8086Assembler directives and basic steps ALP of 8086
Assembler directives and basic steps ALP of 8086
 
Accessing I/O Devices
Accessing I/O DevicesAccessing I/O Devices
Accessing I/O Devices
 
8086 modes
8086 modes8086 modes
8086 modes
 
ADDRESSING MODES
ADDRESSING MODESADDRESSING MODES
ADDRESSING MODES
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
 
Arithmetic and logical instructions
Arithmetic and logical instructionsArithmetic and logical instructions
Arithmetic and logical instructions
 
Cpu organisation
Cpu organisationCpu organisation
Cpu organisation
 

Viewers also liked

8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijayVijay Kumar
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257Daniel Ilunga
 
Logic, shift and rotate instruction
Logic, shift and rotate instructionLogic, shift and rotate instruction
Logic, shift and rotate instructionkashif Shafqat
 
Booths algorithm for Multiplication
Booths algorithm for MultiplicationBooths algorithm for Multiplication
Booths algorithm for MultiplicationVikas Yadav
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithmknightnick
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijayVijay Kumar
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithmknightnick
 
8086 instruction set with types
8086 instruction set with types8086 instruction set with types
8086 instruction set with typesRavinder Rautela
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processingKamal Acharya
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)Page Maker
 

Viewers also liked (13)

8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
 
Lec14
Lec14Lec14
Lec14
 
Logic, shift and rotate instruction
Logic, shift and rotate instructionLogic, shift and rotate instruction
Logic, shift and rotate instruction
 
Booths algorithm for Multiplication
Booths algorithm for MultiplicationBooths algorithm for Multiplication
Booths algorithm for Multiplication
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
8086 instruction set with types
8086 instruction set with types8086 instruction set with types
8086 instruction set with types
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
 
Booth Multiplier
Booth MultiplierBooth Multiplier
Booth Multiplier
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)
 

Similar to 8237 dma controller

Similar to 8237 dma controller (20)

Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Direct Memory Access.pdf
Direct Memory Access.pdfDirect Memory Access.pdf
Direct Memory Access.pdf
 
Concept of dma
Concept of dmaConcept of dma
Concept of dma
 
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
 
MPI UNIT 4 - (Introduction to DMA and ADC)
MPI UNIT 4 - (Introduction to DMA and ADC)MPI UNIT 4 - (Introduction to DMA and ADC)
MPI UNIT 4 - (Introduction to DMA and ADC)
 
DMA
DMADMA
DMA
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
DDR2 SDRAM
DDR2 SDRAMDDR2 SDRAM
DDR2 SDRAM
 
Direct Memory Access ppt
Direct Memory Access pptDirect Memory Access ppt
Direct Memory Access ppt
 
Programmable dma controller 8237
Programmable dma controller 8237Programmable dma controller 8237
Programmable dma controller 8237
 
COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5
 
UNIT 3.pptx
UNIT 3.pptxUNIT 3.pptx
UNIT 3.pptx
 
L010236974
L010236974L010236974
L010236974
 
Dma
DmaDma
Dma
 
DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]
 
ppppptttt.pdf
ppppptttt.pdfppppptttt.pdf
ppppptttt.pdf
 

More from Tech_MX

Virtual base class
Virtual base classVirtual base class
Virtual base classTech_MX
 
Theory of estimation
Theory of estimationTheory of estimation
Theory of estimationTech_MX
 
Templates in C++
Templates in C++Templates in C++
Templates in C++Tech_MX
 
String & its application
String & its applicationString & its application
String & its applicationTech_MX
 
Statistical quality__control_2
Statistical  quality__control_2Statistical  quality__control_2
Statistical quality__control_2Tech_MX
 
Stack data structure
Stack data structureStack data structure
Stack data structureTech_MX
 
Stack Data Structure & It's Application
Stack Data Structure & It's Application Stack Data Structure & It's Application
Stack Data Structure & It's Application Tech_MX
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applicationsTech_MX
 
Set data structure 2
Set data structure 2Set data structure 2
Set data structure 2Tech_MX
 
Set data structure
Set data structure Set data structure
Set data structure Tech_MX
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating SystemTech_MX
 
Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)Tech_MX
 
Motherboard of a pc
Motherboard of a pcMotherboard of a pc
Motherboard of a pcTech_MX
 
More on Lex
More on LexMore on Lex
More on LexTech_MX
 
MultiMedia dbms
MultiMedia dbmsMultiMedia dbms
MultiMedia dbmsTech_MX
 
Merging files (Data Structure)
Merging files (Data Structure)Merging files (Data Structure)
Merging files (Data Structure)Tech_MX
 
Memory dbms
Memory dbmsMemory dbms
Memory dbmsTech_MX
 

More from Tech_MX (20)

Virtual base class
Virtual base classVirtual base class
Virtual base class
 
Uid
UidUid
Uid
 
Theory of estimation
Theory of estimationTheory of estimation
Theory of estimation
 
Templates in C++
Templates in C++Templates in C++
Templates in C++
 
String & its application
String & its applicationString & its application
String & its application
 
Statistical quality__control_2
Statistical  quality__control_2Statistical  quality__control_2
Statistical quality__control_2
 
Stack data structure
Stack data structureStack data structure
Stack data structure
 
Stack Data Structure & It's Application
Stack Data Structure & It's Application Stack Data Structure & It's Application
Stack Data Structure & It's Application
 
Spss
SpssSpss
Spss
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applications
 
Set data structure 2
Set data structure 2Set data structure 2
Set data structure 2
 
Set data structure
Set data structure Set data structure
Set data structure
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
Parsing
ParsingParsing
Parsing
 
Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)
 
Motherboard of a pc
Motherboard of a pcMotherboard of a pc
Motherboard of a pc
 
More on Lex
More on LexMore on Lex
More on Lex
 
MultiMedia dbms
MultiMedia dbmsMultiMedia dbms
MultiMedia dbms
 
Merging files (Data Structure)
Merging files (Data Structure)Merging files (Data Structure)
Merging files (Data Structure)
 
Memory dbms
Memory dbmsMemory dbms
Memory dbms
 

Recently uploaded

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 

Recently uploaded (20)

"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

8237 dma controller

  • 2. Introduction:  Direct Memory Access (DMA) is a method of allowing data to be moved from one location to another in a computer without intervention from the central processor (CPU).  It is also a fast way of transferring data within (and sometimes between) computer.  The DMA I/O technique provides direct access to the memory while the microprocessor is temporarily disabled.  The DMA controller temporarily borrows the address bus, data bus and control bus from the microprocessor and transfers the data directly from the external devices to a series of memory locations (and vice versa).
  • 3. Basic DMA Operation:  Two control signals are used to request and acknowledge a direct memory access (DMA) transfer in the microprocessor-based system.  The HOLD signal as an input(to the processor) is used to request a DMA action.  The HLDA signal as an output that acknowledges the DMA action.  When the processor recognizes the hold, it stops its execution and enters hold cycles.
  • 4. Cont.,  HOLD input has higher priority than INTR or NMI.  The only microprocessor pin that has a higher priority than a HOLD is the RESET pin.  HLDA becomes active to indicate that the processor has placed its buses at high- impedance state.
  • 5. Basic DMA Definitions:  Direct memory accesses normally occur between an I/O device and memory without the use of the microprocessor.  A DMA read transfers data from the memory to the I/O device.  A DMA write transfers data from an I/O device to memory.  The system contains separate memory and I/O control signals.  Hence the Memory & the I/O are controlled simultaneously
  • 6.  The DMA controller provides memory with its address, and the controller signal selects the I/O device during the transfer.  Data transfer speed is determined by speed of the memory device or a DMA controller.  In many cases, the DMA controller slows the speed of the system when transfers occur.  The serial PCI (Peripheral Component Interface) Express bus transfers data at rates exceeding DMA transfers.  This in modern systems has made DMA is less important. 6
  • 7. The 8237 DMA Controller  The 8237 supplies memory & I/O with control signals and memory address information during the DMA transfer.  It is actually a special-purpose microprocessor whose job is high-speed data transfer between memory and I/O
  • 8. CPU having the control over the bus:
  • 10.  8237 is not a discrete component in modern microprocessor-based systems.  It appears within many system controller chip sets  8237 is a four-channel device compatible with 8086/8088, adequate for small systems.  Expandable to any number of DMA channel inputs  8237 is capable of DMA transfers at rates up to 1.6MB per second.  Each channel is capable of addressing a 10 full
  • 11. Programmable DMA controller. (a) Block diagram and (b) pin-out. 11
  • 12. 8237 Internal Registers CAR  The current address register holds a 16-bit memory address used for the DMA transfer.  Each channel has its own current address register for this purpose.  When a byte of data is transferred during a DMA operation, CAR is either incremented or decremented depending on how it is programmed.
  • 13. CWCR  The current word count register programs a channel for the number of bytes to transferred during a DMA action. CR  The command register programs the operation of the 8237 DMA controller.  The register uses bit position 0 to select the memory-to-memory DMA transfer mode.  Memory-to-memory DMA transfers use DMA channel 0 to hold the source address  DMA channel 1 holds the destination address
  • 15. BA and BWC  The base address (BA) and base word count (BWC) registers are used when auto-initialization is selected for a channel.  In auto-initialization mode, these registers are used to reload the CAR and CWCR after the DMA action is completed.
  • 16. MR  The mode register programs the mode of operation for a channel.  Each channel has its own mode register as selected by bit positions 1 and 0.  Remaining bits of the mode register select operation, auto- initialization, increment/decrement, 16 and mode for the
  • 17. BR  The bus request register is used to request a DMA transfer via software.  very useful in memory-to-memory transfers, where an external signal is not available to begin the DMA transfer 17
  • 18. MRSR  The mask register set/reset sets or clears the channel mask.  if the mask is set, the channel is disabled  the RESET signal sets all channel masks to disable them 18
  • 19. MSR  The mask register clears or sets all of the masks with one command instead of individual channels, as with the MRSR. 19
  • 20. SR  The status register shows status of each DMA channel. The TC bits indicate if the channel has reached its terminal count (transferred all its bytes).  When the terminal count is reached, the DMA transfer is terminated for most modes of operation.  The request bits indicate whether 20 the DREQ input for a given
  • 21. Master clear  Acts exactly the same as the RESET signal to the 8237.  As with the RESET signal, this command disables all channels Clear mask register  Enables all four DMA channels. Clear the first/last flip-flop  Clears the first/last (F/L) flip-flop within 8237.  The F/L flip-flop selects which byte (low or high order) is read/written in the current address and current count registers.  if F/L = 0, the low-order byte is selected  if F/L = 1, the high-order byte is selected  Any read or write to the address or count register
  • 22.  Memory-to-memory transfer is much more powerful than the automatically repeated MOVSB instruction.  most modern chip sets do not support the memory-to-memory feature  8237 requires only 2.0 µs per byte, which is over twice as fast the existing data transfer. 22