Direct Memory Access (DMA)
Direct Memory Access (DMA)
Chapter Five
Direct Memory Access (DMA)
• Figure shows the block diagram of a typical DMA controller. The unit communicates
with the MP via the data bus and control lines.
• The registers in the DMA are selected by the MP through the address bus by enabling
the DS (DMA select) and RS (Register Select) inputs. The RD (read) and WR (write)
inputs are bidirectional.
• When the bus grant (BG) input is 0, the MP can communicate with the DMA registers
through the data bus to read from or write to the DMA registers. When BG=1, the
processor does not have control over the system buses and the DMA can communicate
directly with the memory by specifying an address in the address bus and activating the
RD or WR control.
• The DMA controller has three registers: an address register, a word count register and
a control register.
• The address register contains an address to specify the desired location in memory. The
address bits go though bus buffers into the address bus. The address register is
incremented after each word that is transferred to memory.
• The word count register holds the number of words to be transferred. The register is
decremented by one after each word transfer and internally tested for zero.
• The control register specifies the mode of transfer.