Professional Documents
Culture Documents
Access
– DMA stands for "Direct Memory Access" and is a method of transferring data from
the computer's RAM to another part of the computer without processing it using
the CPU. While most data that is input or output from your computer is processed
by the CPU, some data does not require processing, or can be processed by
another device.
– In these situations, DMA can save processing time and is a more efficient way to
move data from the computer's memory to other devices. In order for devices to
use direct memory access, they must be assigned to a DMA channel. Each type of
port on a computer has a set of DMA channels that can be assigned to each
connected device. For example, a PCI controller and a hard drive controller each
have their own set of DMA channels.
– For example, a sound card may need to access data stored in the computer's
RAM, but since it can process the data itself, it may use DMA to bypass the CPU.
Video cards that support DMA can also access the system memory and process
graphics without needing the CPU. Ultra DMA hard drives use DMA to transfer
data faster than previous hard drives that required the data to first be run
through the CPU.
DMAController
– To speed up the transfer of data between I/O devices and memory, DMA
controller acts as station master. DMA controller transfers data with minimal
intervention of the processor.
– The term DMA stands for direct memory access. The hardware device used for
direct memory access is called the DMA controller. DMA
controller is a control unit, part of I/O device’s interface circuit, which can
transfer blocks of data between I/O devices and main memory with minimal
intervention from the processor.
– DMA controller provides an interface between the
bus and the input-output devices. Although it
transfers data without intervention of processor, it is
controlled by the processor. The processor initiates
the DMA controller by sending the starting address,
Number of words in the data block and direction of
transfer of data .i.e. from I/O devices to the memory
or from main memory to I/O devices. More than one
external device can be connected to the DMA
controller.
DMA Controller Type
– Source address the address from which the data is transferred, in main memory or
the peripheral address space
– Destination address the address to which the data is transferred, in main memory
or the peripheral address space
– Transfer length the overall length of the transfer, specified in terms of bytes or
words
– Transfer type usually memory-to-peripheral or peripheral-to-device but may also
include memory-to-memory and peripheral-to-peripheral
– Block size when performing burst transfers, the amount of data to transfer before
yielding bus access and requesting it again
Transfer Type
– Memory to memory