12.6.8 Write Protection Control
| Name: | WPCTRL |
| Offset: | 0x2C |
| Reset: | 0x00000000 |
| Property: | – |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| WPKEY[23:16] | |||||||||
| Access | W | W | W | W | W | W | W | W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| WPKEY[15:8] | |||||||||
| Access | W | W | W | W | W | W | W | W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| WPKEY[7:0] | |||||||||
| Access | W | W | W | W | W | W | W | W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| WPLCK | WPEN | ||||||||
| Access | R/W | R/W | |||||||
| Reset | 0 | 0 |
Bits 31:8 – WPKEY[23:0] Write Protection Key
When writing to the WPCTRL register, this bit field must contain the specific KEY value for the write operation to be successful.
| Value | Name | Description |
|---|---|---|
| 0x4F5343 | KEY | Allow writes to the WPCTRL register |
| Other | — | Reserved. The write operation to the WPCTRL register will be ignored, and a bus error will be generated. |
Bit 1 – WPLCK Write Protection Lock
| Value | Description |
|---|---|
| 0 | The WPCTRL register is not write-protected |
| 1 | The WPCTRL register is write-protected. Only a Reset can clear this bit. |
Bit 0 – WPEN Write Protection Enable
| Value | Description |
|---|---|
| 0 | OSCCTRL register write protection is disabled |
| 1 | Write protection is enabled on OSCCTRL registers with the Local Write-Protection property. Non-debugger writes to OSCCTRL registers with Local Write-Protection are ignored and will generate a bus error. |
