Port Output Register (Gpiox_Outdr) (X=A/C/D); Port Reset/Set Register (Gpiox_Bshr) (X=A/C/D); Port Reset Register (Gpiox_Bcr) (X=A/C/D) - WCH CH32V003 Series Reference Manual

Table of Contents

Advertisement

CH32V003 Reference Manual

7.3.1.3 Port output register (GPIOx_OUTDR) (x=A/C/D)

Offset address: 0x0C
31
30
29
28
15
14
13
12
Reserved
Bit
Name
[31:8]
Reserved
[7:0]
ODRy

7.3.1.4 Port reset/set register (GPIOx_BSHR) (x=A/C/D)

Offset address: 0x10
31
30
29
28
Reserved
15
14
13
12
Reserved
Bit
Name
[31:24]
Reserved
[23:16]
BRy
[15:8]
Reserved
[7:0]
BSy

7.3.1.5 Port reset register (GPIOx_BCR) (x=A/C/D)

Offset address: 0x14
31
30
29
28
15
14
13
12
Reserved
Bit
Name
[31:8]
Reserved
[7:0]
BRy
V1.3
27
26
25
24
Reserved
11
10
9
8
Access
RO
Reserved
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
RW
outputs the values of these registers externally.
For modes with drop-down inputs.
0: Drop-down input.
1: Pull-up input.
27
26
25
24
11
10
9
8
Access
R0
Reserved
(y=0-7), the corresponding OUTDR bits are
cleared for these location bits, and writing 0 has
WO
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.
RO
Reserved
(y=0-7), for which the location bits will make the
corresponding OUTDR location bits, writing 0 has
WO
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.
27
26
25
24
Reserved
11
10
9
8
Access
RO
Reserved
(y=0-7), the corresponding OUTDR bits are
WO
cleared for these location bits, and writing 0 has
no effect. These bits can only be accessed in 16-bit
23
22
21
7
6
5
ODR7 ODR6 ODR5 ODR4 ODR3 ODR2 ODR1 ODR0
Description
23
22
21
BR7 BR6 BR5 BR4 BR3 BR2 BR1 BR0
7
6
5
BS7
BS6
BS5
BS4
Description
23
22
21
7
6
5
BR7 BR6 BR5 BR4 BR3 BR2 BR1 BR0
Description
57
http://wch.cn
20
19
18
17
4
3
2
1
Reset value
0
0
20
19
18
17
4
3
2
1
BS3
BS2
BS1
Reset value
0
0
0
0
20
19
18
17
4
3
2
1
Reset value
0
0
16
0
16
0
BS0
16
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents