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

Data Science & AI

Blog banner

Zero-Day Attack

Blog banner

10 Survival Tips that might save your life

Blog banner

Internet of Things and cyber security

Blog banner

File management

Blog banner

Kafka - A Framework

Blog banner

 " Healing of Yoga "

Blog banner

Operation system

Blog banner

Big Data

Blog banner

Vulnerabilities in OnePlus Devices

Blog banner

Cryptanalysis tool

Blog banner

Delhi city

Blog banner

How a Balanced Diet Supports Healthy Ageing and Overall Wellness

Blog banner

Life lesson

Blog banner

Mumbai

Blog banner

How Seasons affect online sales and how to overcome them

Blog banner

Healthy Indian Dinner Ideas for Better Digestion and Sleep

Blog banner

Scheduling

Blog banner

Fault Tolerance

Blog banner

Brain wash of social media

Blog banner

Pandas Matrix Applications

Blog banner

12 Principles of Animation

Blog banner

A Miracle Toothpaste for Cavity Reversal is a Total Scam

Blog banner

A True Friendship

Blog banner

How Preschools Help Children Make Their First Friends

Blog banner

SMARTSHEET MANAGEMENT SYSTEM

Blog banner

Is Your Password Complex Enough?

Blog banner

CSI and Organizational Change

Blog banner

OS- Assignnment 1

Blog banner

Artical on FreshBooks

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

semaphores in os

Blog banner

Mouth Ulcers: Why Do They Keep Popping Up and How Can You Actually Get Rid of Them?

Blog banner

SECURITY TOOLS

Blog banner

Memory Partitioning

Blog banner

Review on Cyber Forensics and its Analysis Tools

Blog banner

Super Garlicky Tomato Soup with Smashed White Beans

Blog banner

From Canoeing to Camping: The Perfect Nature Escape Near Arcadia

Blog banner

Uniprocessor scheduling

Blog banner

What is E-commerce

Blog banner

How to write a cover letter

Blog banner

Review on Recovering Deleted Files

Blog banner