In this article we will try to understand the details associated with the DMA (Direct Memory Access) like what exactly DMA is or how it works and also further we will see various modes of DMA Transfer (like Burst mode and other modes). Before directly jumping into the details associated with the modes of DMA transfer let us first try to understand what exactly DMA is and how does this DMA actually work.
Direct Memory Access (DMA):
DMA basically stands for Direct Memory Access. It is a process which enables data transfer between the Memory and the IO (Input/ Output) device without the need of or you can say without the involvement of CPU during data transfer.

Working of DMA:
Following list of points will describe briefly about DMA and its working as follows.
- For DMA, you basically need a hardware called DMAC (Direct Memory Access Controller) which will help in the throughout process of data transfer between the Memory and IO device directly.
- First what happens is IO device sends the DMA request to DMA Controller, then further DMAC device sends HOLD signal to CPU by which it asks CPU for several information which are needed while transferring data.
- CPU then shares two basic information with DMAC before the Data transfer which are: Starting address (memory address starting from where data transfer should be performed) and Data Count (no of bytes or words to be transferred).
- CPU then sends HLDACK (Hold Acknowledgement) back to DMAC illustrating that now DMAC can successfully pass on the information.
- Then further DMAC shares the DMA ACK (DMA Acknowledgement) to the IO device which would eventually let IO device to access or transfer the data from memory in a direct and efficient manner.
Modes of DMA Transfer:
Now after getting some brief idea about DMA and its working it’s the time to analyze Modes of DMA Transfer.
- During the DMA Transfer CPU can perform only those operation in which it doesn’t require the access of System Bus which means mostly CPU will be in blocked state.
- For how much time CPU remains in the blocked state or we can say for how much time CPU will give the control of DMAC of system buses will actually depend upon the following modes of DMA Transfer and after that CPU will take back control of system buses from DMAC.
Mode-1:
Burst Mode –
- In this mode Burst of data (entire data or burst of block containing data) is transferred before CPU takes control of the buses back from DMAC.
- This is the quickest mode of DMA Transfer since at once a huge amount of data is being transferred.
- Since at once only the huge amount of data is being transferred so time will be saved in huge amount.
Pros:
- Fastest mode of DMA Transfer
Cons:
- Less user friendly because during the DMA transfer CPU will be blocked.
Percentage of Time CPU remains blocked:
Let time taken to prepare the data be Tx and time taken to transfer the data be Ty. Then percentage of time CPU remains blocked due to DMA is as follows.
Percentage of time CPU remains in blocked state = Ty * 100% / Tx + Ty
Mode-2:
Cycle Stealing Mode –
- Slow IO device will take some time to prepare data (or word) and within that time CPU keeps the control of the buses.
- Once the data or the word is ready CPU give back control of system buses to DMAC for 1-cycle in which the prepared word is transferred to memory.
- As compared to Burst mode this mode is little bit slowest since it requires little bit of time which is actually consumed by IO device while preparing the data.
Pros:
- Most Efficient way for DMA Transfer.
- CPU won’t be blocked entire time.
Cons:
- Rate of DMA Transfer will be less.
Percentage of Time CPU remains blocked:
Let time taken to prepare data be Tx and time taken to transfer the data be Ty. Then percentage of time CPU remains blocked due to DMA is as follows.
Percentage of time CPU remains in blocked state = Ty * 100% / Tx
Mode-3:
Interleaving Mode –
- Whenever CPU does not require the system buses then only control of buses will be given to DMAC.
- In this mode, CPU will not be blocked due to DMA at all.
- This is the slowest mode of DMA Transfer since DMAC has to wait might be for so long time to just even get the access of system buses from the CPU itself.
- Hence due to which less amount of data will be transferred.
Pros:
- CPU will not be blocked at all.
Cons:
- Slowest DMA transfer rate.
Since, DMA will use System Bus only when CPU is not using it So,
Percentage of time CPU remains in blocked state = 0%
Example:
Explanation –
Internal data preparation speed given = 2 MBPs.
So for preparing 2 MB it takes ------> 1 second
For preparing 1B it takes -------> 1 second / 2MB
So now for 16B data preparation it takes ------->1 second * 16B / 2MB
(after reciprocating Mega will be become micro
(that is 10^6 will become 10^-6 after reciprocating))
therefore for preparation 16B it takes -------> 8 microseconds
Therefore percentage of time CPU remains blocked in case of
Cycle Stealing mode = 2 * 100% / 8 = 25%
Similar Reads
Modes of DMA Transfer
In this article we will try to understand the details associated with the DMA (Direct Memory Access) like what exactly DMA is or how it works and also further we will see various modes of DMA Transfer (like Burst mode and other modes). Before directly jumping into the details associated with the mod
5 min read
I/O Program Controlled Transfer vs DMA Transfer
In this article, we will discuss the overview of Modes of transfer and mainly our focus will be on the difference between I/O Program Controlled Transfer vs DMA Transfer. Let's discuss it one by one. Prerequisite â Modes of Transfer in detail Modes of TransferThe CPU executes the I/O instructions
3 min read
Types of Transmission Media
Transmission media refers to the physical medium through which data is transmitted from one device to another within a network. These media can be wired or wireless. The choice of medium depends on factors like distance, speed, and interference. In this article, we will discuss the transmission medi
9 min read
Internal Registers of DMA Controller
There are various types of controller 1. Base Address Register (16 bit)2. Base Word Count Register (16 bit)3. Current Address Register (16 bit)4. Current Word Count Register (16 bit)5. Temporary Address Register (16 bit)6. Temporary Word Count Register (16 bit)7. Status Register (8 bit)8. Command Re
3 min read
Phase Modulation
Phase modulation (PM) is one of the modulation techniques that involves the use of a phase angle to modulate a carrier signal. While in AM, the carrier signal is varied in terms of its strength, the phase angle of the carrier signal is varied in PM depending on the input signal. This modulation tech
7 min read
Ultra Direct Memory Access
Ultra Direct Memory Access (UDMA) is a protocol used as part of high-speed technology for data transfer from a computer's memory to the hard drive, SSD, or other storage media. In this way, data rates and system performance are greatly maximized by using a direct channel between storage and main mem
6 min read
8255 microprocessor operating modes
Introduction: The 8255 microprocessor is an input/output (I/O) device that can be used to interface with various peripheral devices. It has three operating modes: mode 0, mode 1, and mode 2. Mode 0 is the basic input/output mode. In this mode, the 8255 can be used as an 8-bit input or output device,
6 min read
Synchronous Data Transfer in Computer Organization
In Synchronous Data Transfer, the sending and receiving units are enabled with the same clock signal. It is possible between two units when each of them knows the behaviour of the other. The master performs a sequence of instructions for data transfer in a predefined order. All these actions are syn
4 min read
Design Issues in Data Link Layer
Prerequisite - Layers of OSI Model Data-link layer is the second layer after the physical layer. The data link layer is responsible for maintaining the data link between two hosts or nodes. Before going through the design issues in the data link layer. Some of its sub-layers and their functions are
3 min read
Physical Layer in OSI Model
The physical Layer is the bottom-most layer in the Open System Interconnection (OSI) Model which is a physical and electrical representation of the system. It consists of various network components such as power plugs, connectors, receivers, cable types, etc. The physical layer sends data bits from
4 min read