GD32A50x User Manual
191
Reset value: 0x0000 0000
This register can be accessed by byte(8-bit), half-word(16-bit) and word(32-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
Port clear bit y(y=0..15)
These bits are set and cleared by software.
0: No action on the corresponding OCTLy bit
1: Clear the corresponding OCTLy bit
15:0
BOPy
Port set bit y(y=0..15)
These bits are set and cleared by software.
0: No action on the corresponding OCTLy bit
1: Set the corresponding OCTLy bit
8.4.8.
Port configuration lock register (GPIOx_LOCK, x=A..F)
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
16
LKK
Lock key
It can only be set by using the lock key writing sequence. And is always readable.
0: GPIOx_LOCK register and the port configuration are not locked
1: GPIOx_LOCK register is locked until an MCU reset
LOCK key writing sequence:
Write 1→Write 0→Write 1→ Read 0→ Read 1
Note:
The value of LKy(y=0..15) must be held during the LOCK Key writing