wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Direct memory access (DMA)

profile
Dev Sheta
Aug 13, 2024
0 Likes
0 Discussions
131 Reads

DMA permits data transfer directly between I/O device and main memory,

without involvement by the CPU.

• The transfer of data is first initiated by the CPU.

• During the data transfer, the CPU performs other tasks. When the data

transfer is completed, the CPU receives an interrupt request from the DMA

controller.

• The operating system can use only DMA if the hardware has a DMA

controller.

• Consider a data transferred from disk drive to main memory with DMA as

shown in fig. 

Steps-

1. CPU initiates data transfer by programming DMA controller’s registers.

Control- transfer data from disk to main memory

Count- n Number of bytes to transfer

Address- Starting address location in main memory

2. DMA controller then requests disk controller to add data byte to be

transferred from the disk to its buffer.

3. The disk controller then sends the 1 data byte from buffer to the specified

memory location in main memory.

4. When the write is complete, the disk controller sends an acknowledgement

signal to the DMA controller. DMA controller then increments the address

value by 1 (next empty location to write the data) and decrements the byte

count value by one (1 byte is sent out of n bytes). Then steps 2,3,4 are

repeated till the count reaches 0.

5. When count=0, the DMA controller interrupts the CPU to let it know that

the transfer is now complete.


Comments ()


Sign in

Read Next

Memory Management

Blog banner

From Classic to Flavoured: Exploring Different Types of Khari

Blog banner

Virtual memory

Blog banner

Traditional Unix System

Blog banner

SQL Injection Techniques

Blog banner

Uniprocessor and Types

Blog banner

Vulnerabilities in OnePlus Devices

Blog banner

Google App Engine

Blog banner

Process State

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Travel Geek ‘The last $50k in Switzerland’

Blog banner

Process Creation

Blog banner

What is Email? Uses of Emails

Blog banner

URL vs Domain

Blog banner

How to Conquer Depression ?

Blog banner

DATA BREACH CAUSES CHALLENGES PREVENTION AND FUTURE DIRECTIONS

Blog banner

GIS in Disaster Management

Blog banner

NIKE

Blog banner

Spitting Pink in the Sink: Why Your Gums Randomly Bleed

Blog banner

What Your Child Learns During Free Play (That You Might Not Notice)

Blog banner

child Labour

Blog banner

PHONE TECHNOLOGY

Blog banner

Importance Of Time

Blog banner

Recipe of Paneer Butter Masala

Blog banner

Why Progressive Web Apps (PWAs) Are Replacing Traditional Websites

Blog banner

Buffers in Operating Systems

Blog banner

Operating Systems

Blog banner

Business Intelligence v/s Big Data

Blog banner

VIRTUAL MACHINES

Blog banner

Precision-Recall in Data Science

Blog banner

Why we should do reading

Blog banner

Embedded Operating System

Blog banner

SPAM

Blog banner

CSI and Organizational Change

Blog banner

The Khan mehtab transforming the modular switches

Blog banner

Webmail

Blog banner

Starvation

Blog banner

The New Role of Social Media Managers: Beyond Posting Content

Blog banner

Short note on expert system

Blog banner

Memory Management

Blog banner

Types of Viruses

Blog banner

Deadlock and Starvation

Blog banner