Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
24 views14 pages

8237 DMA Controller: Microprocessor & Interfacing

The document discusses the 8237 DMA controller. It provides a high-level overview of DMA operation and how the 8237 controller works. The 8237 controller has 4 independent channels that can be expanded. It interfaces with peripherals to arbitrate and manage DMA requests from devices like hard drives to transfer data directly to memory without CPU involvement. The controller contains internal registers and control logic to generate timing signals and control DMA data transfers.

Uploaded by

bharti.sukhija21
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views14 pages

8237 DMA Controller: Microprocessor & Interfacing

The document discusses the 8237 DMA controller. It provides a high-level overview of DMA operation and how the 8237 controller works. The 8237 controller has 4 independent channels that can be expanded. It interfaces with peripherals to arbitrate and manage DMA requests from devices like hard drives to transfer data directly to memory without CPU involvement. The controller contains internal registers and control logic to generate timing signals and control DMA data transfers.

Uploaded by

bharti.sukhija21
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Microprocessor & Interfacing

8237 DMA Controller


Contents

Introduction
DMA operation
Basic Process of DMA
Minimum Mode
8237 DMA Controller
Block Diagram
Control Logic
Introduction

Direct memory access (DMA) is a process in which an


external device takes over the control of system bus from
the CPU.
DMA used for high-speed data transfer from/to mass
storage peripherals, e.g.
 Hard disk drive,
 Magnetic tape,
 CD-ROM, and sometimes video controllers.
DMA Operation

.
DMA Operation

Whenever an I/O device needs to transfer the data to the memory, then it
initially sends a request to DMA controller.
On receiving data transfer request the controller sends HOLD request to
the CPU and waits for HLDA which is nothing but hold acknowledge by the
CPU.
So, on getting HOLD request by the controller, the CPU leaves the control
over all the buses (i.e., data, control and address bus) and sends HLDA to
the controller.
Hence now the processor gets free from any data transfer operation until
an interrupt is generated by the DMA controller about the completion of the
transfer.
Features of DMA

1. It provides various modes of DMA.


2. It provides on chip 4 independent channel. The no of
channel can be increased by cascading.
3. Each channel can be used in auto initialize mode.
4. It can transfer data from memory to memory.
5. In memory to memory transfer single word can be written
in all location of memory block.
6. Address of memory is either increment or decrement.
7. Clock frequency 3Mhz.
8. Data transfer rate 1.6 Mbps/sec.
Cont..

9. Directly expendable to any no of channel by cascading.


10. It provides EOP line that is used for terminate DMA
operation. This signal can be generated by external h/w.
11. DMA can be requested by setting an appropriate bit of
request register.
12. Independent control for DREQ and DACK. These signal
can be initialized by active high or low.
13.It provides compressed timing to improve throughput. It
can compress the transfer time to 2s.
Basic Process of DMA

For 8086 in maximum mode:


 The RQ/GT1 and RQ/GT0 pins are used to issue DMA request and
receive acknowledge signals.
Sequence of events of a typical DMA process
1) Peripheral asserts one of the request pins, e.g. RQ/GT1 or RQ/GT0
(RQ/GT0 has higher priority)
2) 8086 completes its current bus cycle and enters into a HOLD state
3) 8086 grants the right of bus control by asserting a grant signal via
the same pin as the request signal.
4) DMA operation starts.
5) Upon completion of the DMA operation, the peripheral asserts the
request/grant pin again to relinquish bus control.
Minimum Mode

For 8086 in minimum mode:


 The HOLD and HLDA pins are used instead to receive and
acknowledge the hold request respectively.
 Normally the CPU has full control of the system bus.
 In a DMA operation, the peripheral takes over bus control
temporarily.
DMA Controller

A DMA controller interfaces with several peripherals that may


request DMA.
The controller decides the priority of simultaneous DMA
requests communicates with the peripheral and the CPU, and
provides memory addresses for data transfer.
DMA controller commonly used with 8088 is the 8237
programmable device.
The 8237 is in fact a special-purpose microprocessor.
Normally it appears as part of the system controller chip-sets.
The 8237 is a 4-channel device.
Each channel is dedicated to a specific peripheral device and
capable of addressing 64 K bytes section of memory.
8237 DMA Controller
Block Diagram
Figure shows internal block diagram of 8237A it
consists block of:
Control register and
Internal register
Control Logic

8237A contain three basic block of control logic.


i. Timing and control Block: It generates internal timing and
external control signal to the 8237A.
ii. Program command control Block: It decodes various
command given to the 8237 by the microprocessor before
servicing a DMA request. It also decodes the mode
control word, which is used to select the type of DMA
during the servicing.
iii. Internal registers: 8237 contain 344 bits of internal
memory in the form of register.

You might also like