wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Direct memory access (DMA)

profile
Dev Sheta
Aug 13, 2024
0 Likes
0 Discussions
127 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

Mumbai

Blog banner

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

Blog banner

Starvation

Blog banner

Cloud Security: Trends and Innovations

Blog banner

SmartData Collective: Data Science aur Analytics ki Duniya

Blog banner

How to Plan a Week of Healthy Meals Without Stress

Blog banner

Importance of business process documentation

Blog banner

Python as a tool for data analysis

Blog banner

Data Structures

Blog banner

Concurrency management in operating systems

Blog banner

Virtual memory

Blog banner

EFT

Blog banner

Teenagers of Today

Blog banner

Deadlock and Starvation

Blog banner

Women empowerment

Blog banner

Memory managment

Blog banner

Data Science in Predictive Analytics: Transforming Business Decision-Making

Blog banner

About myself

Blog banner

american greatines

Blog banner

MEMORY FORENSIC ACQUISITION AND ANALYSISOF MEMORY AND ITS TOOLS COMPARISON

Blog banner

Love is in air.....

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

Business Intelligence v/s Big Data

Blog banner

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

Blog banner

Layers Of Blockchain

Blog banner

Image Steganalysis in Digital Forensics

Blog banner

Memory Management of Operating System(OS)

Blog banner

Save Environment

Blog banner

INTERNET

Blog banner

Digital Balance: Keeping Children Mindful in the Screen Age

Blog banner

Craziness of dream 11 and how it impacts on our life

Blog banner

Reconnaissance

Blog banner

How India made the GIS its Own, and its Use in Infrastructural Developments

Blog banner

The Khan mehtab transforming the modular switches

Blog banner

Cyber Bullying - Neeta Vonkamuti

Blog banner

Multithreading in Operating System

Blog banner

DATA SCIENCE IN BUSINESS AND MARKETING

Blog banner

Financial Fraud Detection

Blog banner

Royal enfield

Blog banner

LiquidPlanner

Blog banner

Boxing

Blog banner

Steganography

Blog banner