Docsity

Direct Memory Access Controller, Slides of Microprocessors

Partial preview of the text

Download Direct Memory Access Controller and more Slides Microprocessors in PDF only on Docsity!

DMA

Controller

Instructor:

Nafisa Tabassum,

Lecturer, Dept of Computer Science &

Engineering

Presented by,

  1. Abidul Islam

0692320005101002

  1. Koushiq Choudhury

0692320005101006

  1. Shantashre Bhattacherjee

0692320005101017

  1. Durjoy Das

What is DMA?

DMA is a hardware feature that allows certain system components

or peripherals (like disks, sound cards, network cards, sensors) to

transfer data directly to or from main memory without the

continuous involvement of the CPU. The CPU just sets up the

transfer, walks away, and the DMA controller finishes the job, then

signals the CPU when done.

Types of Direct Memory

Access (DMA)

There are four popular types of DMA.

Single-Ended DMA: In this type, the DMA controller is connected only

to one device (usually either the memory or the I/O device), and it

directly controls data transfer.

Dual-Ended DMA: The DMA controller is connected to both the source

and the destination, typically memory and an I/O device.

Arbitrated-Ended DMA: In systems with multiple DMA devices or

masters, arbitration is needed to decide which device gets control of the

bus. It is more advanced than Dual-Ended DMA.

Interleaved DMA: Interleaved DMA is a type of DMA that reads from

one memory address and writes from another memory address.

DMA Intel 8237

The Intel 8237 DMA controller is a 4-channel, 8-bit programmable

device that performs high-speed data transfers between memory and

I/O subsystems by directly controlling the system address and data

buses. During a DMA cycle, the 8237 asserts HOLD to acquire bus

control, generates memory addresses, manages read/write signals,

automatically increments/decrements addresses, and terminates upon

count completion or external request, thereby relieving the CPU from

repetitive data transfer operations.

Features of DMAC

  1. 8237 is a programmable DMA controller housed in a 40-

pin package.

  1. It has four independent channels, with each channel

capable of transferring 64K bytes.

  1. It must interface with two types of devices: MPU and

Peripherals

  1. It is an I/O to the microprocessor(Slave mode) and it is a

data transfer processor to peripherals(Master mode).

  1. It needs additional signal lines to communicate with the

addresses of 64K data types. And these signals must be

generated externally by using latches and buffers.

Pin Diagram of Intel

8237

Internal Register

Current Address Register

Holds the memory address where the next data transfer will occur. It updates

automatically after each byte/word transferred.

Current Word Count

Register

Stores how many bytes/words remain to be transferred. It decreases after

each transfer until the operation completes.

Command Register

Contains control bits that enable or disable the DMA controller and select

overall operating features such as priority or memory-to-memory

transfers.

Mode Register

Defines how a specific DMA channel will operate: transfer direction

(read/write), transfer type (single, block, demand), auto-initialization, and

addressing options.

Advantages

A DMA controller brings clear advantages to a computer system. Its main benefit is

reducing the workload on the CPU. Instead of forcing the processor to handle every byte

of data moving between memory and I/O devices, the DMA controller takes over and

performs transfers on its own. This allows the CPU to keep working on actual

computations while data quietly moves in the background. As a result, the overall speed

of the system improves, especially when dealing with large chunks of data or high-speed

peripherals like disk drives, sound cards, or network interfaces. In short, DMA keeps the

processor free for real work instead of turning it into a glorified data-delivery service.