
DMA Controller
9-3
9.3
PROGRAMMABLE DMA REGISTERS
The following sections describe the control registers that are used to configure and operate
the two DMA channels.
9.3.1
DMA Control Registers
(D0CON, Offset CAh, D1CON, Offset DAh)
The DMA control registers (see Figure 9-2) determine the mode of operation for the DMA
channels. These registers specify the following options:
n
Whether the destination address is memory or I/O space
n
Whether the destination address is incremented, decremented, or maintained constant
after each transfer
n
Whether the source address is memory or I/O space
n
Whether the source address is incremented, decremented, or maintained constant after
each transfer
n
If DMA activity ceases after a programmed number of DMA cycles
n
If an interrupt is generated with the last transfer
n
The mode of synchronization
n
The relative priority of the DMA channel with respect to the other DMA channel
n
Whether timer 2 DMA requests are enabled or disabled
n
Whether bytes or words are transferred (on the Am186 microcontroller only)
n
Whether the DRQ pin is used for external interrupts
The DMA channel control registers can be changed while the channel is operating. Any
changes made during DMA operations affect the current DMA transfer.
Figure 9-2
DMA Control Registers
The value of D0CON and D1CON at reset is undefined except ST is set to 0.
Bit 15: Destination Address Space Select (DM/IO)—Selects memory or I/O space for
the destination address. When DM/IO is set to 1, the destination address is in memory
space. When set to 0, the destination address is in I/O space.
Bit 14: Destination Decrement (DDEC)—When DDEC is set to 1, the destination address
is automatically decremented after each transfer. The address decrements by 1 or 2
depending on the byte/word bit
(
B/W, bit 0). The address remains constant if the increment
and decrement bits are set to the same value (00b or 11b).
15
7
0
DM/IO
DINC
DDEC
SM/IO
SINC
SDEC
B/W
ST
CHG
EXT
TC
INT
SYN1/SYN0
P
TDRQ
Содержание Am186 ES
Страница 1: ...Am186 ES and Am188 ES User s Manual...
Страница 4: ...iv...
Страница 12: ...Table of Contents xii...
Страница 22: ...Features and Performance 1 8...
Страница 60: ...System Overview 3 28...
Страница 84: ...Chip Select Unit 5 14...
Страница 132: ...Timer Control Unit 8 8...
Страница 166: ...Programmable I O Pins 11 6...
Страница 184: ...Register Summary A 18...