8.2.7 Protection Region n Lock Control Register(1)

Legend: R = Readable bit; W = Writable bit

Note:
  1. 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’.
  2. The LOCK field does not apply to OTP and IRT region descriptors that cannot be modified by firmware.
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

Key value must be 0xB737 with 32-bit writes to this register; otherwise the write is ignored. This bitfield is 0x0000 on reads.

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

ValueDescription
3 Region descriptor is unlocked (can be modified in SFRs).
2 Reserved
1 Region descriptor is locked and cannot be unlocked until after the next Reset.
0 Region descriptor is locked.