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

A Brief Review on Cyber Forensics and its Analysis Tool

Blog banner

Kernel in Operating System

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner

Security issues

Blog banner

Life of an army person

Blog banner

Fossil Hunting 101 at the Peace River, Arcadia, Florida, USA

Blog banner

Different types of scam frauds

Blog banner

The Role of Cyber Forensics in Addressing Cyber security Challenges in Smart Cities

Blog banner

Why Skipping Afternoon Meals Affects More Than Just Your Hunger?

Blog banner

Article on different management system

Blog banner

Old age lifestyle

Blog banner

The Importance of Eating on Time: How Meal Timing Affects Your Health

Blog banner

Fashion design

Blog banner

Navigation With Indian Constellation(NavIC) by ISRO in Geographic Information Systems

Blog banner

Memory Management

Blog banner

Spyware

Blog banner

Memory hierarchy

Blog banner

SQL Injection

Blog banner

Socket Programming in Java

Blog banner

Honeypot in cyber security

Blog banner

Supervised and unsupervised learning

Blog banner

Anomaly Detection in Behavioral Data Using Machine Learning

Blog banner

Python as a tool for Data science task & project

Blog banner

Security issues in Sensor Networks and gathering admissible evidence in Network Forensics

Blog banner

Yahoo! mail

Blog banner

Virtual memory

Blog banner

Music helps reduce stress

Blog banner

Hacking of web server and application

Blog banner

Why Consistency in Eating Habits Matters and How Meal Maharaj Makes It Easy

Blog banner

New Ransomware Encrypts Your Android And Then Changes PIN Lock

Blog banner

Why You Need 2FA (Two-Factor Authentication) On Your Email And Other Online Accounts

Blog banner

Bharat Maps

Blog banner

R Programming

Blog banner

Modern Operating System

Blog banner

How To Secure Operating Systems ?

Blog banner

Atlantis - The Lost Island.........

Blog banner

Direct Memory Access

Blog banner

Data Science in Everyday Life (like a phone, shopping cart, or social media icons)

Blog banner

Vulnerability Assessment

Blog banner

Rain bow

Blog banner

Why Every Preschooler Learns at Their Own Pace?

Blog banner

EFT

Blog banner