GD32W51x User Manual
246
8.5.7.
Port bit operate register (GPIOx_BOP, x=A..C)
Address offset: 0x18
Reset value: 0x0000 0000
This register has to be accessed by word(32-bit)/half-word(16-bit)/byte(8-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
CR15
CR14
CR13
CR12
CR11
CR10
CR9
CR8
CR7
CR6
CR5
CR4
CR3
CR2
CR1
CR0
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
BOP15
BOP14
BOP13
BOP12
BOP11
BOP10
BOP9
BOP8
BOP7
BOP6
BOP5
BOP4
BOP3
BOP2
BOP1
BOP0
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
w
Bits
Fields
Descriptions
31:16
CRy
Pin Clear bit y(y=0..15)
These bits are set and cleared by softw are.
0: No action on the corresponding OCTLy bit
1: Clear the corresponding OCTLy bit to 0
15:0
BOPy
Pin Set bit y(y=0..15)
These bits are set and cleared by softw are.
0: No action on the corresponding OCTLy bit
1: Set the corresponding OCTLy bit to 1
8.5.8.
Port configuration lock register (GPIOx_LOCK, x=A..C)
Address offset: 0x1C
Reset value: 0x0000 0000
This register has to be accessed by word(32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
LKK
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
LK15
LK14
LK13
LK12
LK11
LK10
LK9
LK8
LK7
LK6
LK5
LK4
LK3
LK2
LK1
LK0
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:17
Reserved
Must be kept at reset value.