SlideShare a Scribd company logo
5
Most read
7
Most read
9
Most read
PROGRAMMABLE DMA
CONTROLLER 8257
Md. Fazle Rabbi
ID:16CSE057
CONTENTS
 Introduction
 How DMA Operations are Performed?
 Features of 8257
 8257 DMA Architecture
 8257 DMA pin Diagram
 Direct Memory Access Advantages and Disadvantages
INTRODUCTION
 DMA stands for Direct Memory Access.
 It is designed by Intel to transfer data at the fastest rate.
 It allows the device to transfer the data directly to/from memory
without any interference of the CPU.
 Using a DMA controller, the device requests the CPU to hold its
data, address and control bus, so the device is free to transfer data
directly to/from the memory.
HOW DMA OPERATIONS ARE PERFORMED?
Memory
DMA
Controller
CPU
Peripheral
Device
DRQ
HLQ HLDA
CPU SLAVE MOde
DMA Master mode
 Initially, when any device has to send data between the
device and the memory, the device has to send DMA
request (DRQ) to DMA controller.
 The DMA controller sends Hold request (HRQ) to the
CPU and waits for the CPU to assert the HLDA.
 Then the microprocessor tri-states all the data bus, address
bus, and control bus. The CPU leaves the control over bus
and acknowledges the HOLD request through HLDA
signal.
 Now the CPU is in HOLD state and the DMA controller
has to manage the operations over buses between the CPU,
memory, and I/O devices.
FEATURES OF 8257
Here is a list of some of the prominent features of 8257 −
 It has four channels which can be used over four I/O devices.
 Each channel has 16-bit address and 14-bit counter.
 Each channel can transfer data up to 64kb.
 Each channel can be programmed independently.
 Each channel can perform read transfer, write transfer and
verify transfer operations.
 It generates MARK signal to the peripheral device that 128
bytes have been transferred.
 It operates in 2 modes, i.e., Master mode and Slave mode.
8257 DMA ARCHITECTURE
8257 DMA PIN DIAGRAM
 DRQ0−DRQ3: These are the four individual channel DMA
request inputs, which are used by the peripheral devices for using
DMA services. When the fixed priority mode is selected, then
DRQ0 has the highest priority and DRQ3 has the lowest priority
among them.
 DACKo−DACK3: These are the active-low DMA acknowledge
lines, which updates the requesting peripheral about the status of
their request by the CPU. These lines can also act as strobe lines
for the requesting devices.
 Do − D7: These are bidirectional, data lines which are used to
interface the system bus with the internal data bus of DMA
controller. In the Slave mode, it carries command words to 8257
and status word from 8257. In the master mode, these lines are
used to send higher byte of the generated
 IOW: It is an active low bi-direction tri-state line, which is used
to load the contents of the data bus to the 8-bit mode register or
upper/lower byte of a 16-bit DMA address register or terminal
count register. In the master mode, it is used to load the data to the
peripheral devices during DMA memory read cycle.
 CLK: It is a clock frequency signal which is required for the
internal operation of 8257.
 RESET: This signal is used to RESET the DMA controller by
disabling all the DMA channels.
 Ao - A3: These are the four least significant address lines. In the
slave mode, they act as an input, which selects one of the registers
to be read or written. In the master mode, they are the four least
significant memory address output lines generated by 8257.
 CS: It is an active-low chip select line. In the Slave mode, it
enables the read/write operations to/from 8257. In the master
mode, it disables the read/write operations to/from 8257.
 A4 - A7: These are the higher nibble of the lower byte
address generated by DMA in the master mode.
 READY: It is an active-high asynchronous input signal,
which makes DMA ready by inserting wait states.
 HRQ: This signal is used to receive the hold request
signal from the output device. In the slave mode, it is
connected with a DRQ input line 8257. In Master mode,
it is connected with HOLD input of the CPU.
 HLDA: It is the hold acknowledgement signal which
indicates the DMA controller that the bus has been
granted to the requesting peripheral by the CPU when it
is set to 1.
 MEMR: It is the low memory read signal, which is used
to read the data from the addressed memory locations
during DMA read cycles.
 MEMW: It is the active-low three state signal which is
used to write the data to the addressed memory location
during DMA write operation.
 AEN: This signal is used to disable the address bus/data
bus.
 TC: It stands for ‘Terminal Count’, which indicates the
present DMA cycle to the present peripheral devices.
 MARK: The mark will be activated after each 128 cycles
or integral multiples of it from the beginning. It indicates
the current DMA cycle is the 128th cycle since the
previous MARK output to the selected peripheral device.
 Vcc: It is the power signal which is required for the
operation of the circuit.
DIRECT MEMORY ACCESS ADVANTAGES AND
DISADVANTAGES
Advantages:
 Transferring the data without the involvement of the
processor will speed up the read-write task.
 DMA reduces the clock cycle requires to read or write
a block of data.
 Implementing DMA also reduces the overhead of the
processor.
DIRECT MEMORY ACCESS ADVANTAGES AND
DISADVANTAGES
Disadvantages
 As it is a hardware unit, it would cost to implement a
DMA controller in the system.
 Key-clustering problem can occur while using DMA
controller.
THE END

More Related Content

What's hot (20)

PPT
8255 presentaion.ppt
kamlesh deshmukh
 
PPT
Memory & I/O interfacing
deval patel
 
PPT
Interfacing 8255
Anuja Bhakuni
 
PPTX
3.programmable interrupt controller 8259
MdFazleRabbi18
 
PDF
8086 modes
PDFSHARE
 
PPT
Architecture of 8086 Microprocessor
Mustapha Fatty
 
PDF
8155 PPI
ShivamSood22
 
PPTX
8251 USART
ShivamSood22
 
PPTX
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
PPTX
Addressing modes of 8086
Dr. AISHWARYA N
 
PDF
8051 Architecture and PIN Configuration.pdf
Srikrishna Thota
 
PPTX
Interrupts of microprocessor 8085
mujeebkhanelectronic
 
PDF
Memory interfacing of microprocessor 8085
Nilesh Bhaskarrao Bahadure
 
PPTX
8051 MICROCONTROLLER ARCHITECTURE.pptx
MemonaMemon1
 
PPTX
8086 in minimum mode
Sridari Iyer
 
PPTX
8255 PPI
deval patel
 
PPTX
Microprocessor 8086
Gopikrishna Madanan
 
PPT
Instruction set-of-8085
saleForce
 
PPTX
Interrupts on 8086 microprocessor by vijay kumar.k
Vijay Kumar
 
8255 presentaion.ppt
kamlesh deshmukh
 
Memory & I/O interfacing
deval patel
 
Interfacing 8255
Anuja Bhakuni
 
3.programmable interrupt controller 8259
MdFazleRabbi18
 
8086 modes
PDFSHARE
 
Architecture of 8086 Microprocessor
Mustapha Fatty
 
8155 PPI
ShivamSood22
 
8251 USART
ShivamSood22
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
Addressing modes of 8086
Dr. AISHWARYA N
 
8051 Architecture and PIN Configuration.pdf
Srikrishna Thota
 
Interrupts of microprocessor 8085
mujeebkhanelectronic
 
Memory interfacing of microprocessor 8085
Nilesh Bhaskarrao Bahadure
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
MemonaMemon1
 
8086 in minimum mode
Sridari Iyer
 
8255 PPI
deval patel
 
Microprocessor 8086
Gopikrishna Madanan
 
Instruction set-of-8085
saleForce
 
Interrupts on 8086 microprocessor by vijay kumar.k
Vijay Kumar
 

Similar to 4.programmable dma controller 8257 (20)

PPTX
Concept of dma
DrRanaMukherji
 
PPTX
8257 DMA Controller
ShivamSood22
 
PPTX
DMA
Sonali Soni
 
PDF
Intel 8257 programmable dma controller
abdulugc
 
PDF
Intel 8257 programmable dma controller
afzal ahmad
 
PPTX
8237-DMA-Caontroller.pptx for unitiii in
SureshbabuP10
 
PPT
8237 / 8257 DMA
AJAL A J
 
PPTX
Ppt micro fianle (1)
Pavni Gairola
 
PPTX
Direct memory access (dma) with 8257 DMA Controller
Muhammed Afsal Villan
 
PPTX
DMA controller intel 8257
Daniel Ilunga
 
PPTX
MPI UNIT 4 - (Introduction to DMA and ADC)
RaviKiranVarma4
 
PDF
Module 3 special purpose programmable devices and their interfacing
Deepak John
 
PDF
3 ijcmes dec-2015-27-simulation of 8257 direct memory access controller (dma)...
INFOGAIN PUBLICATION
 
PPTX
24. direct memory access
sandip das
 
PDF
Direct Memory Access
Tuqa Rmahi
 
PPTX
8237 dma controller
Tech_MX
 
PDF
Direct Memory Access.pdf
A. S. M. Badrudduza
 
PPTX
Dma and dma controller 8237
Ashwini Awatare
 
PPTX
Direct Memory Access
Hetauda City College
 
PPTX
DMA information of microprocessor.Shows how it performs
emonhassan6464
 
Concept of dma
DrRanaMukherji
 
8257 DMA Controller
ShivamSood22
 
Intel 8257 programmable dma controller
abdulugc
 
Intel 8257 programmable dma controller
afzal ahmad
 
8237-DMA-Caontroller.pptx for unitiii in
SureshbabuP10
 
8237 / 8257 DMA
AJAL A J
 
Ppt micro fianle (1)
Pavni Gairola
 
Direct memory access (dma) with 8257 DMA Controller
Muhammed Afsal Villan
 
DMA controller intel 8257
Daniel Ilunga
 
MPI UNIT 4 - (Introduction to DMA and ADC)
RaviKiranVarma4
 
Module 3 special purpose programmable devices and their interfacing
Deepak John
 
3 ijcmes dec-2015-27-simulation of 8257 direct memory access controller (dma)...
INFOGAIN PUBLICATION
 
24. direct memory access
sandip das
 
Direct Memory Access
Tuqa Rmahi
 
8237 dma controller
Tech_MX
 
Direct Memory Access.pdf
A. S. M. Badrudduza
 
Dma and dma controller 8237
Ashwini Awatare
 
Direct Memory Access
Hetauda City College
 
DMA information of microprocessor.Shows how it performs
emonhassan6464
 
Ad

More from MdFazleRabbi18 (20)

PPTX
1.ppi 8255
MdFazleRabbi18
 
PPTX
Topic4 data encryption standard(des)
MdFazleRabbi18
 
PPTX
Topic3 playfain
MdFazleRabbi18
 
PPTX
Topic2 caser hill_cripto
MdFazleRabbi18
 
PPTX
Topic5 advanced encryption standard (aes)
MdFazleRabbi18
 
PPTX
Topic1 substitution transposition-techniques
MdFazleRabbi18
 
PPTX
11. lzw coding
MdFazleRabbi18
 
PPTX
9. hofman coding in DIP
MdFazleRabbi18
 
PPTX
7. image enhancement using spatial filtering
MdFazleRabbi18
 
PPTX
5. gray level transformation
MdFazleRabbi18
 
PPTX
1. steps in image processing
MdFazleRabbi18
 
PPTX
5. convolution and correlation of discrete time signals
MdFazleRabbi18
 
PPTX
4. operations of signals
MdFazleRabbi18
 
PPTX
3. systems
MdFazleRabbi18
 
PPTX
2. classification of signals
MdFazleRabbi18
 
PPTX
1. elementary signals
MdFazleRabbi18
 
PPTX
4. random number and it's generating techniques
MdFazleRabbi18
 
PPTX
3. different types of simulations for appropriate systems
MdFazleRabbi18
 
PPTX
2. steps in a simulation study
MdFazleRabbi18
 
PPTX
1. the main idea of simulation and it’s appropriateness in real world (when a...
MdFazleRabbi18
 
1.ppi 8255
MdFazleRabbi18
 
Topic4 data encryption standard(des)
MdFazleRabbi18
 
Topic3 playfain
MdFazleRabbi18
 
Topic2 caser hill_cripto
MdFazleRabbi18
 
Topic5 advanced encryption standard (aes)
MdFazleRabbi18
 
Topic1 substitution transposition-techniques
MdFazleRabbi18
 
11. lzw coding
MdFazleRabbi18
 
9. hofman coding in DIP
MdFazleRabbi18
 
7. image enhancement using spatial filtering
MdFazleRabbi18
 
5. gray level transformation
MdFazleRabbi18
 
1. steps in image processing
MdFazleRabbi18
 
5. convolution and correlation of discrete time signals
MdFazleRabbi18
 
4. operations of signals
MdFazleRabbi18
 
3. systems
MdFazleRabbi18
 
2. classification of signals
MdFazleRabbi18
 
1. elementary signals
MdFazleRabbi18
 
4. random number and it's generating techniques
MdFazleRabbi18
 
3. different types of simulations for appropriate systems
MdFazleRabbi18
 
2. steps in a simulation study
MdFazleRabbi18
 
1. the main idea of simulation and it’s appropriateness in real world (when a...
MdFazleRabbi18
 
Ad

Recently uploaded (20)

PPTX
HIRSCHSPRUNG'S DISEASE(MEGACOLON): NURSING MANAGMENT.pptx
PRADEEP ABOTHU
 
PPTX
How to Consolidate Subscription Billing in Odoo 18 Sales
Celine George
 
PPTX
Maternal and Child Tracking system & RCH portal
Ms Usha Vadhel
 
PPTX
Gall bladder, Small intestine and Large intestine.pptx
rekhapositivity
 
PPTX
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
PPTX
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
PDF
Right to Information.pdf by Sapna Maurya XI D
Directorate of Education Delhi
 
PPT
digestive system for Pharm d I year HAP
rekhapositivity
 
PDF
water conservation .pdf by Nandni Kumari XI C
Directorate of Education Delhi
 
PPTX
Mrs Mhondiwa Introduction to Algebra class
sabinaschimanga
 
PPTX
national medicinal plants board mpharm.pptx
SHAHEEN SHABBIR
 
PDF
FULL DOCUMENT: Read the full Deloitte and Touche audit report on the National...
Kweku Zurek
 
PDF
Federal dollars withheld by district, charter, grant recipient
Mebane Rash
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PDF
Tips for Writing the Research Title with Examples
Thelma Villaflores
 
PDF
07.15.2025 - Managing Your Members Using a Membership Portal.pdf
TechSoup
 
PPTX
Latest Features in Odoo 18 - Odoo slides
Celine George
 
PPTX
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
PPTX
ENGLISH LEARNING ACTIVITY SHE W5Q1.pptxY
CHERIEANNAPRILSULIT1
 
PPTX
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
HIRSCHSPRUNG'S DISEASE(MEGACOLON): NURSING MANAGMENT.pptx
PRADEEP ABOTHU
 
How to Consolidate Subscription Billing in Odoo 18 Sales
Celine George
 
Maternal and Child Tracking system & RCH portal
Ms Usha Vadhel
 
Gall bladder, Small intestine and Large intestine.pptx
rekhapositivity
 
Views on Education of Indian Thinkers J.Krishnamurthy..pptx
ShrutiMahanta1
 
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
Right to Information.pdf by Sapna Maurya XI D
Directorate of Education Delhi
 
digestive system for Pharm d I year HAP
rekhapositivity
 
water conservation .pdf by Nandni Kumari XI C
Directorate of Education Delhi
 
Mrs Mhondiwa Introduction to Algebra class
sabinaschimanga
 
national medicinal plants board mpharm.pptx
SHAHEEN SHABBIR
 
FULL DOCUMENT: Read the full Deloitte and Touche audit report on the National...
Kweku Zurek
 
Federal dollars withheld by district, charter, grant recipient
Mebane Rash
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
Tips for Writing the Research Title with Examples
Thelma Villaflores
 
07.15.2025 - Managing Your Members Using a Membership Portal.pdf
TechSoup
 
Latest Features in Odoo 18 - Odoo slides
Celine George
 
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
ENGLISH LEARNING ACTIVITY SHE W5Q1.pptxY
CHERIEANNAPRILSULIT1
 
ANORECTAL MALFORMATIONS: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 

4.programmable dma controller 8257

  • 1. PROGRAMMABLE DMA CONTROLLER 8257 Md. Fazle Rabbi ID:16CSE057
  • 2. CONTENTS  Introduction  How DMA Operations are Performed?  Features of 8257  8257 DMA Architecture  8257 DMA pin Diagram  Direct Memory Access Advantages and Disadvantages
  • 3. INTRODUCTION  DMA stands for Direct Memory Access.  It is designed by Intel to transfer data at the fastest rate.  It allows the device to transfer the data directly to/from memory without any interference of the CPU.  Using a DMA controller, the device requests the CPU to hold its data, address and control bus, so the device is free to transfer data directly to/from the memory.
  • 4. HOW DMA OPERATIONS ARE PERFORMED? Memory DMA Controller CPU Peripheral Device DRQ HLQ HLDA CPU SLAVE MOde DMA Master mode
  • 5.  Initially, when any device has to send data between the device and the memory, the device has to send DMA request (DRQ) to DMA controller.  The DMA controller sends Hold request (HRQ) to the CPU and waits for the CPU to assert the HLDA.  Then the microprocessor tri-states all the data bus, address bus, and control bus. The CPU leaves the control over bus and acknowledges the HOLD request through HLDA signal.  Now the CPU is in HOLD state and the DMA controller has to manage the operations over buses between the CPU, memory, and I/O devices.
  • 6. FEATURES OF 8257 Here is a list of some of the prominent features of 8257 −  It has four channels which can be used over four I/O devices.  Each channel has 16-bit address and 14-bit counter.  Each channel can transfer data up to 64kb.  Each channel can be programmed independently.  Each channel can perform read transfer, write transfer and verify transfer operations.  It generates MARK signal to the peripheral device that 128 bytes have been transferred.  It operates in 2 modes, i.e., Master mode and Slave mode.
  • 8. 8257 DMA PIN DIAGRAM
  • 9.  DRQ0−DRQ3: These are the four individual channel DMA request inputs, which are used by the peripheral devices for using DMA services. When the fixed priority mode is selected, then DRQ0 has the highest priority and DRQ3 has the lowest priority among them.  DACKo−DACK3: These are the active-low DMA acknowledge lines, which updates the requesting peripheral about the status of their request by the CPU. These lines can also act as strobe lines for the requesting devices.  Do − D7: These are bidirectional, data lines which are used to interface the system bus with the internal data bus of DMA controller. In the Slave mode, it carries command words to 8257 and status word from 8257. In the master mode, these lines are used to send higher byte of the generated
  • 10.  IOW: It is an active low bi-direction tri-state line, which is used to load the contents of the data bus to the 8-bit mode register or upper/lower byte of a 16-bit DMA address register or terminal count register. In the master mode, it is used to load the data to the peripheral devices during DMA memory read cycle.  CLK: It is a clock frequency signal which is required for the internal operation of 8257.  RESET: This signal is used to RESET the DMA controller by disabling all the DMA channels.  Ao - A3: These are the four least significant address lines. In the slave mode, they act as an input, which selects one of the registers to be read or written. In the master mode, they are the four least significant memory address output lines generated by 8257.  CS: It is an active-low chip select line. In the Slave mode, it enables the read/write operations to/from 8257. In the master mode, it disables the read/write operations to/from 8257.
  • 11.  A4 - A7: These are the higher nibble of the lower byte address generated by DMA in the master mode.  READY: It is an active-high asynchronous input signal, which makes DMA ready by inserting wait states.  HRQ: This signal is used to receive the hold request signal from the output device. In the slave mode, it is connected with a DRQ input line 8257. In Master mode, it is connected with HOLD input of the CPU.  HLDA: It is the hold acknowledgement signal which indicates the DMA controller that the bus has been granted to the requesting peripheral by the CPU when it is set to 1.
  • 12.  MEMR: It is the low memory read signal, which is used to read the data from the addressed memory locations during DMA read cycles.  MEMW: It is the active-low three state signal which is used to write the data to the addressed memory location during DMA write operation.  AEN: This signal is used to disable the address bus/data bus.  TC: It stands for ‘Terminal Count’, which indicates the present DMA cycle to the present peripheral devices.  MARK: The mark will be activated after each 128 cycles or integral multiples of it from the beginning. It indicates the current DMA cycle is the 128th cycle since the previous MARK output to the selected peripheral device.  Vcc: It is the power signal which is required for the operation of the circuit.
  • 13. DIRECT MEMORY ACCESS ADVANTAGES AND DISADVANTAGES Advantages:  Transferring the data without the involvement of the processor will speed up the read-write task.  DMA reduces the clock cycle requires to read or write a block of data.  Implementing DMA also reduces the overhead of the processor.
  • 14. DIRECT MEMORY ACCESS ADVANTAGES AND DISADVANTAGES Disadvantages  As it is a hardware unit, it would cost to implement a DMA controller in the system.  Key-clustering problem can occur while using DMA controller.