








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









Instructor:
Nafisa Tabassum,
Lecturer, Dept of Computer Science &
Engineering
Presented by,
0692320005101002
0692320005101006
0692320005101017
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.
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.
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.
pin package.
capable of transferring 64K bytes.
Peripherals
data transfer processor to peripherals(Master mode).
addresses of 64K data types. And these signals must be
generated externally by using latches and buffers.
8237
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.
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.