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

Should you be using a mouthwash? Know from the experts

Blog banner

WomenEmpowerment

Blog banner

WHAT IS SNAPCHAT AND HOW DOES IT WORK?

Blog banner

Deadlock and Starvation

Blog banner

A Short History of GIS

Blog banner

The Sunny Side of Instagram

Blog banner

Direct Memory Access

Blog banner

In the world of Technology...

Blog banner

GIS Mapping

Blog banner

APACHE KAFKA

Blog banner

From Canoeing to Camping: The Perfect Nature Escape Near Arcadia

Blog banner

Deadlock

Blog banner

The Power of Pretend Play: What Role-Playing Teaches Preschoolers

Blog banner

How to Run your First android App

Blog banner

Facebook Shut Down an AI Program!!! Facebook AI bots became Terminators???

Blog banner

File Allocation Methods

Blog banner

A Survey of Anti-Forensic Techniques: Methods, Challenges, and Countermeasures

Blog banner

How Preschool Annual Day Shapes Confidence, Emotions, and Growth

Blog banner

Scheduling in Operating Systems

Blog banner

differentiate thinking humanly and rationally

Blog banner

Apache Kafka

Blog banner

When Is the Right Time to Enrol My Toddler Into Preschool? NEP

Blog banner

Security and E-mail

Blog banner

"Audit" In Data Science

Blog banner

Windows Operating System

Blog banner

Benefits of Yoga

Blog banner

Southern Turkey Earthquake: Causes and Consequences of a Tragic Natural Disaster

Blog banner

"Geographic Information Systems (GIS) and its Applications in Urban Planning"

Blog banner

Digital Marketing - The new way to reach end consumer

Blog banner

Geographic Information Systems(By aditi Unnikrishnan)

Blog banner

Broken Authentication Attacks

Blog banner

IOT- Internet Of Things

Blog banner

Data Lake

Blog banner

Understanding Toddler Tantrums: What They Really Mean

Blog banner

Why Progressive Web Apps (PWAs) Are Replacing Traditional Websites

Blog banner

Modern operating system

Blog banner

Mumbai

Blog banner

Cyber Security Control

Blog banner

Starvation

Blog banner

Benefits and drawback of web security.

Blog banner

LINUX VSERVER VIRTUAL MACHINE ARCHITECTURE

Blog banner

Memory management

Blog banner