
CH32V003
Reference Manual
V1.3
57
7.3.1.3 Port output register (GPIOx_OUTDR) (x=A/C/D)
Offset address: 0x0C
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
Reserved
ODR7
ODR6
ODR5
ODR4
ODR3
ODR2
ODR1
ODR0
Bit
Name
Access
Description
Reset value
[31:8] Reserved
RO Reserved
0
[7:0]
ODRy
RW
For output modes.
(y=0-7), the data output by the port. These data can
only be operated in 16-bit form. the I/O port
outputs the values of these registers externally.
For modes with drop-down inputs.
0: Drop-down input.
1: Pull-up input.
0
7.3.1.4 Port reset/set register (GPIOx_BSHR) (x=A/C/D)
Offset address: 0x10
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
BR7 BR6 BR5 BR4 BR3 BR2 BR1 BR0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
BS7 BS6 BS5 BS4 BS3 BS2 BS1 BS0
Bit
Name
Access
Description
Reset value
[31:24] Reserved
R0 Reserved
0
[23:16] BRy
WO
(y=0-7), the corresponding OUTDR bits are
cleared for these location bits, and writing 0 has
no effect. These bits can only be accessed in 16-bit
form. If both BR and BS bits are set, the BS bit
takes effect.
0
[15:8] Reserved
RO Reserved
0
[7:0]
BSy
WO
(y=0-7), for which the location bits will make the
corresponding OUTDR location bits, writing 0 has
no effect. These bits can only be accessed in 16-bit
form. If both BR and BS bits are set, the BS bit
takes effect.
0
7.3.1.5 Port reset register (GPIOx_BCR) (x=A/C/D)
Offset address: 0x14
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
Reserved
BR7 BR6 BR5 BR4 BR3 BR2 BR1 BR0
Bit
Name
Access
Description
Reset value
[31:8] Reserved
RO Reserved
0
[7:0]
BRy
WO
(y=0-7), the corresponding OUTDR bits are
cleared for these location bits, and writing 0 has
no effect. These bits can only be accessed in 16-bit
0