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

Understanding Mobile Device Forensics

Blog banner

CONCURRENCY: MUTUAL EXCLUSION AND SYNCHRONIZATION-het karia

Blog banner

The functions of operating system

Blog banner

Operating Systems

Blog banner

Modern Operating Systems

Blog banner

MY MOST THRILLED TREK ..... BHAIRAVGAD

Blog banner

Guidelines for a low sodium diet.

Blog banner

Platonic Solids

Blog banner

The New Classic: Indo Western Patola Outfits for Today’s Woman

Blog banner

 " Healing of Yoga "

Blog banner

Scheduling in Operating Systems

Blog banner

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

Blog banner

Computer Security

Blog banner

undefined

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

How the mobile IP is used in GSM architecture.

Blog banner

Cyber Security in Data Breaching

Blog banner

Digital marketing spotlight “Dove’s Real Beauty Campaign”

Blog banner

Man VS Nature

Blog banner

Types Of Interrupt

Blog banner

INTRANET

Blog banner

Virtual memory

Blog banner

Mobile Survey

Blog banner

Why Businesses Are Investing More in Automation than Advertising?

Blog banner

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

Blog banner

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

Blog banner

What are Tenders its various types

Blog banner

Cache Memory

Blog banner

Software Piracy & Online Data Protection in Digital World

Blog banner

IT GOVERNANCE

Blog banner

Raid

Blog banner

Deming’s Process

Blog banner

Direct Memory Access

Blog banner

Memory Management

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

What is Virtual Memory

Blog banner

Study on cyber and network forensic in computer security management

Blog banner

?Why Social and Emotional Skills Matter More Than ABCs in Early Years?

Blog banner

Landslide Hazard

Blog banner

Traditional UNIX Scheduling

Blog banner

Uniprocessor Scheduling

Blog banner

The Benefits of Mixed Learning Activities for Preschoolers

Blog banner