BAT32G1x9 user manual | Chapter 24 Enhanced DMA
1016 / 1149
Rev.1.02
24.3.3
Vector table
Once the DMA is started, the control data is determined by reading the data from the vector table allocated
by each boot source, and the control data is read to be allocated in the DMA control data area.
The DMA boot source and vector addresses are shown in Table 24-5. The vector table of each startup source
has 1 byte, saves the data from "00H" to "27H", and selects 1 from 40 sets of control data Group data. The high 22
bits of the vector address are set by the DMABAR register, and the lower 10 bits are assigned "00H" to "27H"
corresponding to the startup source.
Note that the DMAENi0~DMAENi7
bits of the
corresponding
DMAENi
(i=0~
4) register
must be
"0" (Disable Startup)
when changing the start address of the
DMA
control data area set in the vector table
.
Figure 24-4
control the start address and vector table of the data
The case where the DMABAR register is set to "2000000H" (example).
control data 39
control data 3
control data 20
control data 2
control data 1
control data 0
20000040H
20000050H
20000060H
20000070H
20000180H
200002B0H
27H
03H
14H
02H
01H
00H
20000000H
20000001H
20000002H
20000003H
20000014H
20000027H
reserved
INTP0
INTP1
INTP2
comparator
detection 1
Channel 1 of Timer 4
counting ends
DMA control data region
20000040H~200002BFH
(scenario when DMABAR
is
20000000H
)
DMA control data region
20000040H~200002BFH
(scenario when DMABAR is
H
example) if channel 1 of
timer 4 count completion
DMA start source activated,
then read control data from
vector table value(14H)
corresponding control data
region 200000180H and
start transmitting.