
CH32V003
Reference Manual
V1.3
67
Offset address: 0x04
+ (x-1)*0x400
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
CTEIF
7
CHTIF
7
CTCIF
7
CGIF
7
CTEIF
6
CHTIF
6
CTCIF
6
CGIF
6
CTEIF
5
CHTIF
5
CTCIF
5
CGIF
5
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CTEIF
4
CHTIF
4
CTCIF
4
CGIF
4
CTEIF
3
CHTIF
3
CTCIF
3
CGIF
3
CTEIF
2
CHTIF
2
CTCIF
2
CGIF
2
CTEIF
1
CHTIF
1
CTCIF
1
CGIF
1
Bit
Name
Access
Description
Reset
value
[31:28]
Reserved
RO Reserved
0
27/23/19/1
5/11/7/3
CTEIFx
WO
Clear the transmission error flag for channel x
(x=1/2/3/4/5/6/7).
1: Clear the TEIFx flag in the DMA_INTFR register.
0: No effect.
0
26/22/18/1
4/10/6/2
CHTIFx
WO
Clear the transmission halfway flag for channel x
(x=1/2/3/4/5/6/7).
1: Clear the HTIFx flag in the DMA_INTFR register.
0: No effect.
0
25/21/17/1
3/9/5/1
CTCIFx
WO
Clear the transmission completion flag for channel x
(x=1/2/3/4/5/6/7).
1: Clear the TCIFx flag in the DMA_INTFR
register.
0: No effect.
0
24/20/16/1
2/8/4/0
CGIFx
WO
Clear the global interrupt flag for channel x
(x=1/2/3/4/5/6/7).
1: Clear the TEIFx/HTIFx/TCIFx/ GIFx flags in the
DMA_INTFR register.
0: No effect.
0
8.3.3 DMA Channel x configuration register (DMA_CFGRx)(x=1/2/3/4/5/6/7)
Offset address: 0x08
+ (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
Reser
ved
MEM
2
MEM
PL[1:0]
MSIZE[1:0] PSIZE[1:0] MIN
C PINC CIRC DIR TEIE HTIE TCIE EN
Bit
Name
Access
Description
Reset
value
[31:15] Reserved
RO Reserved
0
14
MEM2MEM
RW
Memory-to-memory mode enable.
1: Enable memory-to-memory data transfer mode.
0: Disable memory-to-memory data transfer mode.
0
[13:12] PL
RW
Channel priority setting.
00: low; 01: medium.
10: High; 11:Very high.
0
[11:10] MSIZE
RW
Memory address data width setting.
00: 8 bits; 01: 16 bits.
10: 32 bits; 11: Reserved.
0
[9:8]
PSIZE
RW
Peripheral address data width setting.
00: 8 bits; 01: 16 bits.
10: 32 bits; 11: Reserved.
0