14.5.2 H2PB Write Protect Control Register

Table 14-3. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: WPCTRL
Offset: 0x4
Reset: 0x00000000
Property: R/W

Bit 3130292827262524 
 WPKEY[23:16] 
Access WWWWWWWW 
Reset 00000000 
Bit 2322212019181716 
 WPKEY[15:8] 
Access WWWWWWWW 
Reset 00000000 
Bit 15141312111098 
 WPKEY[7:0] 
Access WWWWWWWW 
Reset 00000000 
Bit 76543210 
       WPLCKWPEN 
Access R/WR/W 
Reset 00 

Bits 31:8 – WPKEY[23:0] Write protect command key. The desired value of WPKEY[23:0] is given by the parameter H2PB_WPCTRL_KEY. Writing a value other than H2PB_WPCTRL_KEY to this bit-field cancels the write operation to this register and generates a slave bus error. This bit-field always returns 0 on read.

Bit 1 – WPLCK 1 = WPCTRL register is write-protected (i.e. read-only) for non-debugger accesses. Non-debugger writes to this register are canceled and generate a slave bus error. This bit can only be cleared by a system hardware reset. 0 = WPCTRL register is not write protected. Once set, this bit will make WPCTRL write-protected (i.e. read-only), all the way until the next system hardware reset.

Bit 0 – WPEN Once set, this bit will make write-protected (i.e. read-only) all the SFRs in this macro which are marked by the property "Write-Protected" (like CTRLA, for example). WPCTRL itself is NOT affected by this bit because otherwise WPLCK would be totally redundant.