wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Direct memory access (DMA)

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

Blog banner

Big Data Architecture

Blog banner

BrainGate Technology

Blog banner

Functions Of Operating Systems

Blog banner

SQL Injection

Blog banner

Maharashtrian culture: Tradition, Art, Food

Blog banner

A-B-C of Networking: Part-3 (Topology [Bus & Star])

Blog banner

Scheduling

Blog banner

Privacy LAWs in IT

Blog banner

How to use GIT & GITHUB

Blog banner

Big O Notation

Blog banner

Security Issues

Blog banner

The Role of Data Provenance and Lineage in Modern Data Science

Blog banner

Vulnerability Assessment (Vulnerability Analysis)

Blog banner

21ST CENTURY PATRIARCHY

Blog banner

ART AND CULTURE OF VRINDAVAN

Blog banner

BITCOIN WALLET

Blog banner

File management

Blog banner

Deadlock and starvation

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

Man In The Middle Attack

Blog banner

Modern Operating System

Blog banner

Game Theory in Blockchain

Blog banner

Fitness regime by Deepesh

Blog banner

MySQL

Blog banner

S-Tool : Steganography

Blog banner

Data Visualization- Importance and tools (Tableau,Power BI, Matplotlib)

Blog banner

A Short History of GIS

Blog banner

Sage business cloud accounting

Blog banner

Synchronization

Blog banner

operating system

Blog banner

SECURITY TOOLS

Blog banner

K-means use cases

Blog banner

NIKE

Blog banner

Photography

Blog banner

Linux Threads:

Blog banner

Creating Digitally Signed Document

Blog banner

The Right way of cooking

Blog banner

Top 3 Places To Stay In Vienna

Blog banner

10 Reasons Why Guy BestFriends are the Must in Every Girl's Life

Blog banner

Memory Management

Blog banner

Distributed Denial of Service (DDoS) attack

Blog banner