
CH32V003
Reference Manual
V1.3
68
7
MINC
RW
Memory address incremental incremental mode enable.
1: Enable incremental memory address increment
operation.
0: Memory address remains unchanged operation.
0
6
PINC
RW
Peripheral address incremental incremental mode enable.
1: Enable incremental incremental operation of the
peripheral address.
0: Peripheral address remains unchanged operation.
0
5
CIRC
RW
DMA channel cyclic mode enable.
1: Enables cyclic operation.
0: Perform a single operation.
0
4
DIR
RW
Data transfer direction.
1: Read from memory.
0: Read from peripheral.
0
3
TEIE
RW
Transmission error interrupt enable control.
1: Enable transmission error interrupts.
0: Disable transmission error interrupt.
0
2
HTIE
RW
Transmission over half interrupt enable
control.
1: Enable the transmission over half interrupt.
0: Disable the transmission over half interrupt.
0
1
TCIE
RW
Transmission completion interrupt enable control.
1: Enable the transmission completion interrupt.
0: Disable the transmission completion interrupt.
0
0
EN
RW
Channel enable control.
1: Channel on; 0: Channel off.
When a DMA transfer error occurs, the hardware
automatically clears this bit to 0 and shuts down the
channel.
0
8.3.4 DMA Channel x number of data register (DMA_CNTRx)(x=1/2/3/4/5/6/7 )
Offset address: 0x0C
+ (x-1)*20 + (y-1)*0x400
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
NDT[15:0]
Bit
Name
Access
Description
Reset
value
[31:16] Reserved
RO Reserved
0
[15:0] NDT
RW
Number of data transfers, range 0-65535.
This register can only be written when the channel is not
operating (EN=0 for DMA_CFGRx). After the channel is
turned on this register becomes read-only and indicates the
number of remaining pending transfers (the register
content is decremented after each DMA transfer).
When the channel is in cyclic mode, the contents of the
register will be automatically reloaded to the previously
configured value.
0
Note: This register can only be changed when EN=0; when EN=1, it is a read-only register, indicating the
current number of pending transfers. When the register content is 0, no data transmission will occur regardless
of whether the channel is on or off.