164
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Bit field
Name
Description
31:16
Reserved
Reserved, the reset value must be maintained.
15:0
PBCy
Clear bit y of port GPIOx (y = 0...15)
These bits can only be written and operated as words (16 bits).
0: does not affect the corresponding PODy bit
1: Clear the corresponding PODy bit to 0
7.3.8
GPIO port lock configuration register (GPIOx_PLOCK_CFG )
Address offset: 0x18
Reset value: 0x0000 0000
Bit field
Name
Description
31:17
Reserved
Reserved, the reset value must be maintained.
16
PLOCKK_CFG
Lock key. This bit can be read at any time, and it can only be modified by the key
lock write sequence.
0: Port configuration lock key is activated
1: The port configuration lock key is activated, and the GPIOx_PLOCK_CFG register
is locked before the next system reset. The write sequence of the lock key:
Write 1 -> write 0 -> write 1 -> read 0 -> read 1
The last reading can be omitted, but it can be used to confirm that the lock key has
been activated.
Note: the value of PLOCK_CFG[15:0] cannot be changed when the writing sequence
of lock key is operated. Any error in the operation key writing sequence will not
activate the key.
15:0
PLOCK_CFGy
Configuration lock bit y of port GPIOx (y = 0…15)
These bits are readable and writable but can only be written when the PLOCKK_CFG
bit is 0.
0: Do not lock the configuration of the port
1: Lock the configuration of the port