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

Mutual exclusion

Blog banner

Decoding the Weave — How to Identify Original Patola Art on a Fabric

Blog banner

Traditional UNIX Scheduling

Blog banner

SECURITY RISKS OF REMOTE WORKING

Blog banner

Deadlock

Blog banner

Festive Ethnic Wear Guide: Patola-Inspired Looks for Every Celebration

Blog banner

Safeguarding Your Data: The Importance of Wireless Encryption

Blog banner

You'll get to know about Pankaj Negi

Blog banner

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

Blog banner

Big Data

Blog banner

Cherish the Craft — Essential Tips to Maintain Your Patola Collection

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

Why Should You Schedule Tweets on Twitter?

Blog banner

Harsh Rathod

Blog banner

The khan mehtab transforming the modular switches company

Blog banner

Memory Management

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

Discover The Top 3 Places To Stay in London

Blog banner

Virtual Memory - Explaination, Working, Steps

Blog banner

Asana

Blog banner

Multiprocessor and Multicore Organization

Blog banner

Career v/s Job : Choose your passion

Blog banner

E-learning

Blog banner

What is Brute Force Attack? How to defend against it?

Blog banner

Predictive Analysis - Ek Overview

Blog banner

Capacity management in ITSM

Blog banner

Data Acquisition in Cyber Forensics

Blog banner

Virtual Memory

Blog banner

Article on different management system

Blog banner

Trends that began during the pandemic

Blog banner

Swiggi

Blog banner

ARTICAL ON MANAGEMENT SYSTEM

Blog banner

Some facts about Technology

Blog banner

What is M-commerce and how it's work

Blog banner

10 Interesting facts you should know!!!

Blog banner

S-Tool : Steganography

Blog banner

Why we fail after giving 100% ?

Blog banner

Blog on Smartsheet.

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

Python as a tool for Data science task & project

Blog banner

CyberSecurity Color Wheel

Blog banner

The Sunny Side of Instagram

Blog banner