GPIO Registers
1226
SLAU723A – October 2017 – Revised October 2018
Copyright © 2017–2018, Texas Instruments Incorporated
General-Purpose Input/Outputs (GPIOs)
17.5.19 GPIOLOCK Register (Offset = 0x520) [reset = 0x1]
GPIO Lock (GPIOLOCK)
The GPIOLOCK register enables write access to the GPIOCR register (see
). Writing
0x4C4F434B to the GPIOLOCK register unlocks the GPIOCR register. Writing any other value to the
GPIOLOCK register re-enables the locked state. Reading the GPIOLOCK register returns the lock status
rather than the 32-bit value that was previously written. Therefore, when write accesses are disabled, or
locked, reading the GPIOLOCK register returns 0x00000001. When write accesses are enabled, or
unlocked, reading the GPIOLOCK register returns 0x00000000.
GPIOLOCK is shown in
and described in
Return to
Figure 17-23. GPIOLOCK Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
LOCK
R/W-0x1
Table 17-29. GPIOLOCK Register Field Descriptions
Bit
Field
Type
Reset
Description
31-0
LOCK
R/W
0x1
GPIO Lock.
A write of the value 0x4C4F434B unlocks the GPIO Commit
(GPIOCR) register for write access.A write of any other value or a
write to the GPIOCR register reapplies the lock, preventing any
register updates.
A read of this register returns the following values:
0x0 = The GPIOCR register is unlocked and may be modified.
0x1 = The GPIOCR register is locked and may not be modified.