11.2.7 Protection Region n Lock Control Register

Note:
  1. The LOCK field does not apply to OTP and IRT region descriptors that cannot be modified by firmware.
Table 11-7. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Gray cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
CWrite to clearSSoftware settable bitxChannel number
Name: PRnLOCK
Offset: 0x30C, 0x31C, 0x32C, 0x33C, 0x34C, 0x35C, 0x36C, 0x37C

Bit 3130292827262524 
 KEY[15:8] 
Access WWWWWWWW 
Reset 00000000 
Bit 2322212019181716 
 KEY[7:0] 
Access WWWWWWWW 
Reset 00000000 
Bit 15141312111098 
          
Access  
Reset  
Bit 76543210 
       LOCK[1:0] 
Access R/WR/W 
Reset 00 

Bits 31:16 – KEY[15:0] Write Key bits

Register is read-only if LOCK[1:0] bits are set to ‘01’. Writes to the PRxLOCK registers must be 32 bits with the 0xB737 key field value; otherwise, the write is ignored. The region descriptors are locked (read-only) on Reset to prevent inadvertent writes from corrupting a descriptor. The region descriptor registers are unlocked (writes enabled) by setting LOCK[1:0] bits to ‘11’.

Bits 1:0 – LOCK[1:0]  Protection Region Lock Option bits

Register is read-only if LOCK[1:0] bits are set to ‘01’. Writes to the PRxLOCK registers must be 32 bits with the 0xB737 key field value; otherwise, the write is ignored. The region descriptors are locked (read-only) on Reset to prevent inadvertent writes from corrupting a descriptor. The region descriptor registers are unlocked (writes enabled) by setting LOCK[1:0] bits to ‘11’.

ValueDescription
1Region descriptor is unlocked (can be modified in SFRs)
10Reserved
01Region descriptor is locked, cannot be unlocked until after the next reset
00Region descriptor is locked