SlideShare ist ein Scribd-Unternehmen logo
1 von 36
AJAL.A.J

Assistant Professor –Dept of ECE,
UNIVERSAL ENGINEERING COLLEGE
  
Mob: 8907305642   MAIL: ec2reach@gmail.com
•The DMA I/O technique
provides direct access to
the memory while the
microprocessor is
temporarily disabled.
Three ways to synchronize the
processor to data rate of
peripherals:
1- Polling: which provides a fast response but it the
processor recourses are dedicated to one peripheral.
2- Interrupt approach: is much more efficient. the
processor only services the peripheral when data is
required. requires high software overhead.
3-DMA is a third solution but it increases the
complexity of the hardware system.
DMA

• Direct Memory Access.

• In memory-memory or memory-peripherals communication, the
processor is a “middleman” which is not really needed.
• Used with HOLD HOLDA signals.
• DMA requires another processor - The DMA Controller or DMACto generate the memory and I/O addresses.
• 8237 is a DMAC.
• In IBM PC, 8237 was used to speed up the read or write
operation by the slow 8088 processor.

• Nowadays, It is usually used by sound cards and by
memory controllers to generate row address for
refreshing.
I/O Data Transfer
Basic DMA concept
Direct memory access (DMA) is a feature of modern computer
systems that allows certain hardware subsystems to read/write data
to/from memory without microprocessor intervention, allowing the
processor to do other work.

Used in disk controllers, video/sound cards etc, or
between memory locations
.

Typically, the CPU initiates DMA transfer, does other operations while
the transfer is in progress, and receives an interrupt from the DMA
controller once the operation is complete.
Can create cache coherency problems (the data in the
cache may be different from the data in the external memory after
DMA)
B
ASIC DM T RM
A E INOL
OGY
DMA channel: system pathway used by a
device to transfer information directly to and
from memory. There are usually 8 in a
computer system
DMA controller: dedicated hardware used
for controlling the DMA operation
Single-cycle mode: DMA data transfer is
done one byte at a time
Burst-mode: DMA transfer is finished when
all data has been moved
DMA pins and timing

• x86 Interrupt Pins

– HOLD: DMA request.
• Sampled in the middle of any clocking cycle
– HLDA: DMA acknowledge signal.
• The address, data and control buses are set to high-Z,
so the I/O devices can control the system bus

8
•
•
•

DMA on the 8086
Microprocessor

The CPU may have to wait (hold cycles).
The DMA will then let the device that requested the DMA transfer know
that the transfer is commencing by asserting the -DACK signal.
Once the data has been transferred, The DMA will de-assert the -DACK2
signal, so that the FDC knows it must stop placing data on the bus.

• The DMA will now check to see if any of the other DMA
channels have any work to do. If none of the channels have
their DRQ lines asserted, the DMA controller has completed
its work and will now tri-state the -MEMR, -MEMW, -IOR,
-IOW and address signals.
•

Finally, the DMA will de-assert the HOLD signal. The CPU sees this, and
de-asserts the HOLDA signal. Now the CPU resumes control of the buses
and address lines, and it resumes executing instructions and accessing
main memory and the peripherals.

9
8237 pins

• CLK: System clock
• CS΄: Chip select (decoder output)
8237
• RESET: Clears registers, sets mask register
• READY: 0 for inserting wait states
• HLDA: Signals that the μp has relinquished buses
• DREQ3 – DREQ0: DMA request input for each channel
• DB7-DB0: Data bus pins
• IOR΄: Bidirectional pin used during programming
and during a DMA write cycle
• IOW΄: Bidirectional pin used during programming
and during a DMA read cycle
• EOP΄: End of process is a bidirectional signal used as input to terminate a DMA process or as
output to signal the end of the DMA transfer
• A3-A0: Address pins for selecting internal registers
• A7-A4: Outputs that provide part of the DMA transfer address
• HRQ: DMA request output
• DACK3-DACK0: DMA acknowledge for each channel.
• AEN: Address enable signal
• ADSTB: Address strobe
• MEMR΄: Memory read output used in DMA read cycle
10
• MEMW΄: Memory write output used in DMA write cycle
8237/

8257
Minimal System with a
DMA Controller
CPU

Interrupt

Bus
Arbiter

Memory

On-Chip-Bus

Request
DMA
Controller

Acknowledge

Peripheral
Device
8237 DMA controller
Description of pin
diagram

 D0-D7:

 it is a bidirectional ,tri state ,Buffered

,Multiplexed data (D0-D7)and (A8-A15).
 In the slave mode it is a bidirectional (Data is
moving).
 In the Master mode it is a unidirectional
(Address is moving).
IOR:

 It is active low ,tristate ,buffered ,Bidirectional

lines.
 In the slave mode it function as a input line. IOR
signal is generated by microprocessor to read the
contents 8257 registers.
 In the master mode it function as a output line.
IOR signal is generated by 8257 during write cycle
IOW:
 It is active low ,tristate ,buffered ,Bidirectional

control lines.

 In the slave mode it function as a

input line. IOR signal is generated by

microprocessor to write the contents 8257
registers.
 In the master mode it function as a output line.
IOR signal is generated by 8257 during read cycle
CLK:
 It is the input line ,connected with TTL clock generator.
 This signal is ignored in slave mode.

RESET:
 Used to clear mode set registers and status registers

A0-A3:
These are the tristate, buffer, bidirectional address lines.

In slave mode ,these lines are used as address

inputs lines and internally decoded to access the internal
registers.

In master mode, these lines are used as address

outputs lines,A0-A3 bits of memory address on the lines.
CS:
 It is active low, Chip select input line.

 In the slave mode, it is used to select the chip.
 In the master mode, it is ignored.

A4-A7:
These are the tristate, buffer, output address lines.
In slave mode ,these lines are used as address
input lines.
In master mode, these lines are used as address
outputs lines,A0-A3 bits of memory address on
the lines.
READY:
 It is a asynchronous input line.

 In master mode,
When ready is high it receives the signal.
When ready is low, it adds wait state between S1
and S3
 In slave mode ,
this signal is ignored.

HRQ:
 It is used to receiving the hold request signal from

the output device.
HLDA:
 It is acknowledgment signal from microprocessor.

MEMR:
 It is active low ,tristate ,Buffered control output line.
 In slave mode, it is tristated.
 In master mode ,it activated during DMA read cycle.

MEMW:
 It is active low ,tristate ,Buffered control input line.
 In slave mode, it is tristated.
 In master mode ,it activated during DMA write cycle.
AEN (Address enable):





It is a control output line.
In master mode ,it is high
In slave mode ,it is low
Used it isolate the system address ,data ,and
control lines.

ADSTB: (Address Strobe)





It is a control output line.
Used to split data and address line.
It is working in master mode only.
In slave mode it is ignore.
TC (Terminal Count):
 It is a status of output line.
 It is activated in master mode only.
 It is high ,it selected the peripheral.
 It is low ,it free and looking for a new peripheral.
MARK:
 It is a modulo 128 MARK output line.
 It is activated in master mode only.
 It goes high ,after transferring every 128 bytes of
data block.
DRQ0-DRQ3 (DMA Request):
 These are the asynchronous peripheral request

input signal.
 The request signals is generated by external
peripheral device.

DACK0-DACK3:
 These are the active low DMA acknowledge

output lines.
 Low level indicate that ,peripheral is selected for
giving the information (DMA cycle).
 In master mode it is used for chip select.
 HLDA becomes active to indicate the processor

has placed its buses at high-impedance state.
 as can be seen in the timing diagram, there are

a few clock cycles between the time that HOLD
changes and until HLDA changes

 HLDA output is a signal to the requesting device

that the processor has relinquished control of its
memory and I/O space.
 one could call HOLD input a DMA request
input and HLDA output a DMA grant signal
8237 block diagram

25
Description
 It containing Five main Blocks.
1. Data bus buffer
2. Read/Control logic
3. Control logic block
4. Priority resolver
5. DMA channels.
DATA BUS BUFFER:
 It contain tristate ,8 bit bi-directional buffer.
 Slave mode ,it transfer data between
microprocessor and internal data bus.
 Master mode ,the outputs A8-A15 bits of

memory address on data lines
(Unidirectional).

READ/CONTROL LOGIC:
 It control all internal Read/Write operation.
 Slave mode ,it accepts address bits and control
signal from microprocessor.
 Master mode ,it generate address bits and control
signal.
Control logic block:
It contains ,
1. Control logic
2. Mode set register and
3. Status Register.


CONTROL LOGIC:






Master mode ,It control the sequence of DMA
operation during all DMA cycles.
It generates address and control signals.
It increments 16 bit address and decrement 14 bit
counter registers.
It activate a HRQ signal on DMA channel Request.
Slave ,mode it is disabled.
FIGURE A DMA controller allows the peripheral to
interface directly with memory without processor
intervention. This allows the data transfer rate to approach
the access time of memory.

Types:
Sequential DMA
Simultaneous DMA
FIGURE Three methods (MODES) of DMA
operation: (a) byte; (b) burst; (c) block.
DMA is implemented using a
DMA controller
– DMA controller
• Acts as slave to processor
• Receives instructions from processor
• Example: Reading from an I/O device
– Processor gives details to the DMA controller
» I/O device number
» Main memory buffer address
» Number of bytes to transfer
» Direction of transfer (memory → I/O device, or
vice versa)
Steps in a DMA operation
 Processor initiates the DMA controller
 Gives device number, memory buffer pointer, …
 Called channel

initialization

 Once initialized, it is ready for data transfer



When ready, I/O device informs the DMA
controller
 DMA controller starts the data transfer process






Obtains bus by going through bus arbitration
Places memory address and appropriate control signals
Completes transfer and releases the bus
Updates memory address and count value
If more to read, loops back to repeat the process

 Notify the processor when done
 Typically uses an interrupt
DMA controller details
Modes of Operation
 Rotating priority Mode:
 The priority of the channels has a circular

sequence.

 Fixed Priority Rotating Mode:





The priority is fixed.
TC Stop Mode
Auto Load mode
Extended Write mode
DMA Cycles
1. DMA read
2. DMA write
3. DMA Verify
8237 / 8257 DMA

Weitere ähnliche Inhalte

Was ist angesagt?

8086 in minimum mode
8086 in minimum mode8086 in minimum mode
8086 in minimum modeSridari Iyer
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257MdFazleRabbi18
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)Page Maker
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257Daniel Ilunga
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 
Direct Memory Access & Interrrupts
Direct Memory Access & InterrruptsDirect Memory Access & Interrrupts
Direct Memory Access & InterrruptsSharmilaChidaravalli
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-pptjemimajerome
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259MdFazleRabbi18
 
System bus timing 8086
System bus timing 8086System bus timing 8086
System bus timing 8086mpsrekha83
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessorAvin Mathew
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 

Was ist angesagt? (20)

8086 in minimum mode
8086 in minimum mode8086 in minimum mode
8086 in minimum mode
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
8259 updated
8259 updated 8259 updated
8259 updated
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
Direct Memory Access & Interrrupts
Direct Memory Access & InterrruptsDirect Memory Access & Interrrupts
Direct Memory Access & Interrrupts
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-ppt
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
 
System bus timing 8086
System bus timing 8086System bus timing 8086
System bus timing 8086
 
8251 USART
8251 USART8251 USART
8251 USART
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessor
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 

Andere mochten auch

Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory AccessSanjay Saluth
 
8279 in microprocessor
8279 in microprocessor8279 in microprocessor
8279 in microprocessorAisu
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085yedles
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithmknightnick
 
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
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processingKamal Acharya
 

Andere mochten auch (9)

Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
8279 in microprocessor
8279 in microprocessor8279 in microprocessor
8279 in microprocessor
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
 
Booths algorithm for Multiplication
Booths algorithm for MultiplicationBooths algorithm for Multiplication
Booths algorithm for Multiplication
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
 
Booth Multiplier
Booth MultiplierBooth Multiplier
Booth Multiplier
 

Ähnlich wie 8237 / 8257 DMA

Module 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingModule 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingDeepak John
 
Ppt micro fianle (1)
Ppt micro fianle (1)Ppt micro fianle (1)
Ppt micro fianle (1)Pavni Gairola
 
Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237Ashwini Awatare
 
Direct Memory Access_Unit 5.pptx
Direct Memory Access_Unit 5.pptxDirect Memory Access_Unit 5.pptx
Direct Memory Access_Unit 5.pptxGovindJha93
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controllerabdulugc
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controllerafzal ahmad
 
3 L pin diagram.pptx
3 L pin diagram.pptx3 L pin diagram.pptx
3 L pin diagram.pptxPoonamarora73
 
8086 Programing.ppt
8086 Programing.ppt8086 Programing.ppt
8086 Programing.pptDrRRAMAN
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
architecture of 8086 new Lecture 4new.pptx
architecture of 8086 new Lecture 4new.pptxarchitecture of 8086 new Lecture 4new.pptx
architecture of 8086 new Lecture 4new.pptxDrVikasMahor
 
mic_unit1.pdf msbte unit 1 note pdf in ppt
mic_unit1.pdf msbte unit 1 note pdf in pptmic_unit1.pdf msbte unit 1 note pdf in ppt
mic_unit1.pdf msbte unit 1 note pdf in pptxboyxman1000
 
8251 -USART.pptx
8251 -USART.pptx8251 -USART.pptx
8251 -USART.pptxVikasMahor3
 
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)RaviKiranVarma4
 
8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish NagarNitish Nagar
 

Ähnlich wie 8237 / 8257 DMA (20)

Module 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingModule 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacing
 
Ppt micro fianle (1)
Ppt micro fianle (1)Ppt micro fianle (1)
Ppt micro fianle (1)
 
DMA
DMADMA
DMA
 
Direct Memory Access.pdf
Direct Memory Access.pdfDirect Memory Access.pdf
Direct Memory Access.pdf
 
Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237
 
Direct Memory Access_Unit 5.pptx
Direct Memory Access_Unit 5.pptxDirect Memory Access_Unit 5.pptx
Direct Memory Access_Unit 5.pptx
 
Programmable dma controller 8237
Programmable dma controller 8237Programmable dma controller 8237
Programmable dma controller 8237
 
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
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
3 L pin diagram.pptx
3 L pin diagram.pptx3 L pin diagram.pptx
3 L pin diagram.pptx
 
8086 Programing.ppt
8086 Programing.ppt8086 Programing.ppt
8086 Programing.ppt
 
Concept of dma
Concept of dmaConcept of dma
Concept of dma
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
architecture of 8086 new Lecture 4new.pptx
architecture of 8086 new Lecture 4new.pptxarchitecture of 8086 new Lecture 4new.pptx
architecture of 8086 new Lecture 4new.pptx
 
mic_unit1.pdf msbte unit 1 note pdf in ppt
mic_unit1.pdf msbte unit 1 note pdf in pptmic_unit1.pdf msbte unit 1 note pdf in ppt
mic_unit1.pdf msbte unit 1 note pdf in ppt
 
8251 -USART.pptx
8251 -USART.pptx8251 -USART.pptx
8251 -USART.pptx
 
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)
 
8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar
 
UNIT 2.pptx
UNIT 2.pptxUNIT 2.pptx
UNIT 2.pptx
 

Mehr von AJAL A J

KEAM KERALA ENTRANCE EXAM
KEAM KERALA ENTRANCE EXAMKEAM KERALA ENTRANCE EXAM
KEAM KERALA ENTRANCE EXAMAJAL A J
 
Paleontology Career
Paleontology  CareerPaleontology  Career
Paleontology CareerAJAL A J
 
CHEMISTRY basic concepts of chemistry
CHEMISTRY  basic concepts of chemistryCHEMISTRY  basic concepts of chemistry
CHEMISTRY basic concepts of chemistryAJAL A J
 
Biogeochemical cycles
Biogeochemical cyclesBiogeochemical cycles
Biogeochemical cyclesAJAL A J
 
ac dc bridges
ac dc bridgesac dc bridges
ac dc bridgesAJAL A J
 
Hays bridge schering bridge wien bridge
Hays bridge  schering bridge  wien bridgeHays bridge  schering bridge  wien bridge
Hays bridge schering bridge wien bridgeAJAL A J
 
App Naming Tip
App Naming TipApp Naming Tip
App Naming Tip AJAL A J
 
flora and fauna of himachal pradesh and kerala
flora and fauna of himachal pradesh and keralaflora and fauna of himachal pradesh and kerala
flora and fauna of himachal pradesh and keralaAJAL A J
 
B.Sc Cardiovascular Technology(CVT)
 B.Sc Cardiovascular Technology(CVT)  B.Sc Cardiovascular Technology(CVT)
B.Sc Cardiovascular Technology(CVT) AJAL A J
 
11 business strategies to make profit
11 business strategies to make profit 11 business strategies to make profit
11 business strategies to make profit AJAL A J
 
PCOS Polycystic Ovary Syndrome
PCOS  Polycystic Ovary SyndromePCOS  Polycystic Ovary Syndrome
PCOS Polycystic Ovary SyndromeAJAL A J
 
Courses and Career Options after Class 12 in Humanities
Courses and Career Options after Class 12 in HumanitiesCourses and Career Options after Class 12 in Humanities
Courses and Career Options after Class 12 in HumanitiesAJAL A J
 
MANAGEMENT Stories
 MANAGEMENT Stories MANAGEMENT Stories
MANAGEMENT StoriesAJAL A J
 
NEET PREPRATION TIPS AND STRATEGY
NEET PREPRATION TIPS AND STRATEGYNEET PREPRATION TIPS AND STRATEGY
NEET PREPRATION TIPS AND STRATEGYAJAL A J
 
REVOLUTIONS IN AGRICULTURE
REVOLUTIONS IN AGRICULTUREREVOLUTIONS IN AGRICULTURE
REVOLUTIONS IN AGRICULTUREAJAL A J
 
NRI QUOTA IN NIT'S
NRI QUOTA IN NIT'S NRI QUOTA IN NIT'S
NRI QUOTA IN NIT'S AJAL A J
 
Subjects to study if you want to work for a charity
Subjects to study if you want to work for a charitySubjects to study if you want to work for a charity
Subjects to study if you want to work for a charityAJAL A J
 
IIT JEE A KERALA PERSPECTIVE
IIT JEE A KERALA PERSPECTIVE IIT JEE A KERALA PERSPECTIVE
IIT JEE A KERALA PERSPECTIVE AJAL A J
 
Clat 2020 exam COMPLETE DETAILS
Clat 2020 exam COMPLETE DETAILSClat 2020 exam COMPLETE DETAILS
Clat 2020 exam COMPLETE DETAILSAJAL A J
 

Mehr von AJAL A J (20)

KEAM KERALA ENTRANCE EXAM
KEAM KERALA ENTRANCE EXAMKEAM KERALA ENTRANCE EXAM
KEAM KERALA ENTRANCE EXAM
 
Paleontology Career
Paleontology  CareerPaleontology  Career
Paleontology Career
 
CHEMISTRY basic concepts of chemistry
CHEMISTRY  basic concepts of chemistryCHEMISTRY  basic concepts of chemistry
CHEMISTRY basic concepts of chemistry
 
Ecology
EcologyEcology
Ecology
 
Biogeochemical cycles
Biogeochemical cyclesBiogeochemical cycles
Biogeochemical cycles
 
ac dc bridges
ac dc bridgesac dc bridges
ac dc bridges
 
Hays bridge schering bridge wien bridge
Hays bridge  schering bridge  wien bridgeHays bridge  schering bridge  wien bridge
Hays bridge schering bridge wien bridge
 
App Naming Tip
App Naming TipApp Naming Tip
App Naming Tip
 
flora and fauna of himachal pradesh and kerala
flora and fauna of himachal pradesh and keralaflora and fauna of himachal pradesh and kerala
flora and fauna of himachal pradesh and kerala
 
B.Sc Cardiovascular Technology(CVT)
 B.Sc Cardiovascular Technology(CVT)  B.Sc Cardiovascular Technology(CVT)
B.Sc Cardiovascular Technology(CVT)
 
11 business strategies to make profit
11 business strategies to make profit 11 business strategies to make profit
11 business strategies to make profit
 
PCOS Polycystic Ovary Syndrome
PCOS  Polycystic Ovary SyndromePCOS  Polycystic Ovary Syndrome
PCOS Polycystic Ovary Syndrome
 
Courses and Career Options after Class 12 in Humanities
Courses and Career Options after Class 12 in HumanitiesCourses and Career Options after Class 12 in Humanities
Courses and Career Options after Class 12 in Humanities
 
MANAGEMENT Stories
 MANAGEMENT Stories MANAGEMENT Stories
MANAGEMENT Stories
 
NEET PREPRATION TIPS AND STRATEGY
NEET PREPRATION TIPS AND STRATEGYNEET PREPRATION TIPS AND STRATEGY
NEET PREPRATION TIPS AND STRATEGY
 
REVOLUTIONS IN AGRICULTURE
REVOLUTIONS IN AGRICULTUREREVOLUTIONS IN AGRICULTURE
REVOLUTIONS IN AGRICULTURE
 
NRI QUOTA IN NIT'S
NRI QUOTA IN NIT'S NRI QUOTA IN NIT'S
NRI QUOTA IN NIT'S
 
Subjects to study if you want to work for a charity
Subjects to study if you want to work for a charitySubjects to study if you want to work for a charity
Subjects to study if you want to work for a charity
 
IIT JEE A KERALA PERSPECTIVE
IIT JEE A KERALA PERSPECTIVE IIT JEE A KERALA PERSPECTIVE
IIT JEE A KERALA PERSPECTIVE
 
Clat 2020 exam COMPLETE DETAILS
Clat 2020 exam COMPLETE DETAILSClat 2020 exam COMPLETE DETAILS
Clat 2020 exam COMPLETE DETAILS
 

Kürzlich hochgeladen

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 

Kürzlich hochgeladen (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

8237 / 8257 DMA

  • 1. AJAL.A.J Assistant Professor –Dept of ECE, UNIVERSAL ENGINEERING COLLEGE    Mob: 8907305642   MAIL: ec2reach@gmail.com
  • 2. •The DMA I/O technique provides direct access to the memory while the microprocessor is temporarily disabled.
  • 3. Three ways to synchronize the processor to data rate of peripherals: 1- Polling: which provides a fast response but it the processor recourses are dedicated to one peripheral. 2- Interrupt approach: is much more efficient. the processor only services the peripheral when data is required. requires high software overhead. 3-DMA is a third solution but it increases the complexity of the hardware system.
  • 4. DMA • Direct Memory Access. • In memory-memory or memory-peripherals communication, the processor is a “middleman” which is not really needed. • Used with HOLD HOLDA signals. • DMA requires another processor - The DMA Controller or DMACto generate the memory and I/O addresses. • 8237 is a DMAC. • In IBM PC, 8237 was used to speed up the read or write operation by the slow 8088 processor. • Nowadays, It is usually used by sound cards and by memory controllers to generate row address for refreshing.
  • 6. Basic DMA concept Direct memory access (DMA) is a feature of modern computer systems that allows certain hardware subsystems to read/write data to/from memory without microprocessor intervention, allowing the processor to do other work. Used in disk controllers, video/sound cards etc, or between memory locations . Typically, the CPU initiates DMA transfer, does other operations while the transfer is in progress, and receives an interrupt from the DMA controller once the operation is complete. Can create cache coherency problems (the data in the cache may be different from the data in the external memory after DMA)
  • 7. B ASIC DM T RM A E INOL OGY DMA channel: system pathway used by a device to transfer information directly to and from memory. There are usually 8 in a computer system DMA controller: dedicated hardware used for controlling the DMA operation Single-cycle mode: DMA data transfer is done one byte at a time Burst-mode: DMA transfer is finished when all data has been moved
  • 8. DMA pins and timing • x86 Interrupt Pins – HOLD: DMA request. • Sampled in the middle of any clocking cycle – HLDA: DMA acknowledge signal. • The address, data and control buses are set to high-Z, so the I/O devices can control the system bus 8
  • 9. • • • DMA on the 8086 Microprocessor The CPU may have to wait (hold cycles). The DMA will then let the device that requested the DMA transfer know that the transfer is commencing by asserting the -DACK signal. Once the data has been transferred, The DMA will de-assert the -DACK2 signal, so that the FDC knows it must stop placing data on the bus. • The DMA will now check to see if any of the other DMA channels have any work to do. If none of the channels have their DRQ lines asserted, the DMA controller has completed its work and will now tri-state the -MEMR, -MEMW, -IOR, -IOW and address signals. • Finally, the DMA will de-assert the HOLD signal. The CPU sees this, and de-asserts the HOLDA signal. Now the CPU resumes control of the buses and address lines, and it resumes executing instructions and accessing main memory and the peripherals. 9
  • 10. 8237 pins • CLK: System clock • CS΄: Chip select (decoder output) 8237 • RESET: Clears registers, sets mask register • READY: 0 for inserting wait states • HLDA: Signals that the μp has relinquished buses • DREQ3 – DREQ0: DMA request input for each channel • DB7-DB0: Data bus pins • IOR΄: Bidirectional pin used during programming and during a DMA write cycle • IOW΄: Bidirectional pin used during programming and during a DMA read cycle • EOP΄: End of process is a bidirectional signal used as input to terminate a DMA process or as output to signal the end of the DMA transfer • A3-A0: Address pins for selecting internal registers • A7-A4: Outputs that provide part of the DMA transfer address • HRQ: DMA request output • DACK3-DACK0: DMA acknowledge for each channel. • AEN: Address enable signal • ADSTB: Address strobe • MEMR΄: Memory read output used in DMA read cycle 10 • MEMW΄: Memory write output used in DMA write cycle
  • 12. Minimal System with a DMA Controller CPU Interrupt Bus Arbiter Memory On-Chip-Bus Request DMA Controller Acknowledge Peripheral Device
  • 14. Description of pin diagram  D0-D7:  it is a bidirectional ,tri state ,Buffered ,Multiplexed data (D0-D7)and (A8-A15).  In the slave mode it is a bidirectional (Data is moving).  In the Master mode it is a unidirectional (Address is moving).
  • 15. IOR:  It is active low ,tristate ,buffered ,Bidirectional lines.  In the slave mode it function as a input line. IOR signal is generated by microprocessor to read the contents 8257 registers.  In the master mode it function as a output line. IOR signal is generated by 8257 during write cycle
  • 16. IOW:  It is active low ,tristate ,buffered ,Bidirectional control lines.  In the slave mode it function as a input line. IOR signal is generated by microprocessor to write the contents 8257 registers.  In the master mode it function as a output line. IOR signal is generated by 8257 during read cycle
  • 17. CLK:  It is the input line ,connected with TTL clock generator.  This signal is ignored in slave mode. RESET:  Used to clear mode set registers and status registers A0-A3: These are the tristate, buffer, bidirectional address lines. In slave mode ,these lines are used as address inputs lines and internally decoded to access the internal registers. In master mode, these lines are used as address outputs lines,A0-A3 bits of memory address on the lines.
  • 18. CS:  It is active low, Chip select input line.  In the slave mode, it is used to select the chip.  In the master mode, it is ignored. A4-A7: These are the tristate, buffer, output address lines. In slave mode ,these lines are used as address input lines. In master mode, these lines are used as address outputs lines,A0-A3 bits of memory address on the lines.
  • 19. READY:  It is a asynchronous input line.  In master mode, When ready is high it receives the signal. When ready is low, it adds wait state between S1 and S3  In slave mode , this signal is ignored. HRQ:  It is used to receiving the hold request signal from the output device.
  • 20. HLDA:  It is acknowledgment signal from microprocessor. MEMR:  It is active low ,tristate ,Buffered control output line.  In slave mode, it is tristated.  In master mode ,it activated during DMA read cycle. MEMW:  It is active low ,tristate ,Buffered control input line.  In slave mode, it is tristated.  In master mode ,it activated during DMA write cycle.
  • 21. AEN (Address enable):     It is a control output line. In master mode ,it is high In slave mode ,it is low Used it isolate the system address ,data ,and control lines. ADSTB: (Address Strobe)     It is a control output line. Used to split data and address line. It is working in master mode only. In slave mode it is ignore.
  • 22. TC (Terminal Count):  It is a status of output line.  It is activated in master mode only.  It is high ,it selected the peripheral.  It is low ,it free and looking for a new peripheral. MARK:  It is a modulo 128 MARK output line.  It is activated in master mode only.  It goes high ,after transferring every 128 bytes of data block.
  • 23. DRQ0-DRQ3 (DMA Request):  These are the asynchronous peripheral request input signal.  The request signals is generated by external peripheral device. DACK0-DACK3:  These are the active low DMA acknowledge output lines.  Low level indicate that ,peripheral is selected for giving the information (DMA cycle).  In master mode it is used for chip select.
  • 24.  HLDA becomes active to indicate the processor has placed its buses at high-impedance state.  as can be seen in the timing diagram, there are a few clock cycles between the time that HOLD changes and until HLDA changes  HLDA output is a signal to the requesting device that the processor has relinquished control of its memory and I/O space.  one could call HOLD input a DMA request input and HLDA output a DMA grant signal
  • 26. Description  It containing Five main Blocks. 1. Data bus buffer 2. Read/Control logic 3. Control logic block 4. Priority resolver 5. DMA channels.
  • 27. DATA BUS BUFFER:  It contain tristate ,8 bit bi-directional buffer.  Slave mode ,it transfer data between microprocessor and internal data bus.  Master mode ,the outputs A8-A15 bits of memory address on data lines (Unidirectional). READ/CONTROL LOGIC:  It control all internal Read/Write operation.  Slave mode ,it accepts address bits and control signal from microprocessor.  Master mode ,it generate address bits and control signal.
  • 28. Control logic block: It contains , 1. Control logic 2. Mode set register and 3. Status Register.  CONTROL LOGIC:      Master mode ,It control the sequence of DMA operation during all DMA cycles. It generates address and control signals. It increments 16 bit address and decrement 14 bit counter registers. It activate a HRQ signal on DMA channel Request. Slave ,mode it is disabled.
  • 29. FIGURE A DMA controller allows the peripheral to interface directly with memory without processor intervention. This allows the data transfer rate to approach the access time of memory. Types: Sequential DMA Simultaneous DMA
  • 30. FIGURE Three methods (MODES) of DMA operation: (a) byte; (b) burst; (c) block.
  • 31. DMA is implemented using a DMA controller – DMA controller • Acts as slave to processor • Receives instructions from processor • Example: Reading from an I/O device – Processor gives details to the DMA controller » I/O device number » Main memory buffer address » Number of bytes to transfer » Direction of transfer (memory → I/O device, or vice versa)
  • 32. Steps in a DMA operation  Processor initiates the DMA controller  Gives device number, memory buffer pointer, …  Called channel initialization  Once initialized, it is ready for data transfer  When ready, I/O device informs the DMA controller  DMA controller starts the data transfer process      Obtains bus by going through bus arbitration Places memory address and appropriate control signals Completes transfer and releases the bus Updates memory address and count value If more to read, loops back to repeat the process  Notify the processor when done  Typically uses an interrupt
  • 34. Modes of Operation  Rotating priority Mode:  The priority of the channels has a circular sequence.  Fixed Priority Rotating Mode:     The priority is fixed. TC Stop Mode Auto Load mode Extended Write mode
  • 35. DMA Cycles 1. DMA read 2. DMA write 3. DMA Verify