BAT32G1x9 user manual | Chapter 24 Enhanced DMA
1029 / 1149
Rev.1.02
24.4.2
Normal mode
In 8-bit transmission, the transmission data of one boot is 1 to 65535 bytes; In 16-bit transmission, the
transmission data initiated once is 2~131070 bytes; In 32-bit transfers, the transmission data for one boot is 4
to 262140 bytes. The number of transmissions is 1 to 65535 times. If you do a data transfer where the DMATj
(j=0~39) register becomes "0", it is in the DMA During operation, an interrupt request corresponding to the
startup source is generated to the interrupt controller, and the DMAENi0~DMAENi7 of the corresponding
DMAENi (i=0~4) register is generated Position "0" (disable startup).
The register function and data transfer in normal mode are shown in Table 24-7and Figure 24-17.
Table 24-7
Register functions in normal mode
Register name
symbol
function
DMA block size register
j
DMBLSj
The size of the data block to be transferred by 1
boot
DMA transmit times register
j
DMACTj
The number of times the data was transferred
The number of DMA transfers reloads register
j
DMRLDj
is not used
Note
DMA source address register
j
DMSARj
The address of the source from which the data is
transmitted
DMA destination address register
j
DMDARj
The address to which the data is transmitted
Note Initialization (
00H) must be performed when
parity error reset (
RPERDIS=0
) is allowed by
the RAM
parity
error detection function. Note
j = 0
~
39
Figure 24-17
Normal mode of data transfer
FFFFFFFH
1The second boot is to be transmitted
Block size (N bytes).
DMBLSj register =N
DMSARj register =
SRC
DMDARj register =
DST
j=
0̚39
00000000H
Settings of the
DMACR
registers
Control of the
source address
Control of the
destination
address
The source
address after
transmission
The destination
address after
transmission
DAMOD
SAMOD
RPTSEL
MODE
0
0
X
0
fixed
fixed
SRC
Dst
0
1
X
0
Increasing
fixed
SRC+N
Dst
1
0
X
0
fixed
Increasing
SRC
DST+N
1
1
X
0
Increasing
Increasing
SRC+N
DST+N
X:
"0"
or
"1"