32.5.11 Write Protection Mode Register

See Register Write Protection for the list of registers that can be write-protected.

Name: PERIPH_PWPMR
Offset: 0x28
Reset: 0x00000000
Property: Read/Write

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

Bits 31:8 – WPKEY[23:0] Write Protection Key

ValueNameDescription
0x504443 PASSWD

Writing any other value in this field aborts the write operation. Always reads as 0.

Bit 2 – WPCREN Write Protection Control Register Enable

ValueDescription
0

Disables the write protection if WPKEY corresponds to 0x504443 (“PDC” in ASCII).

1

Enables the write protection if WPKEY corresponds to 0x504443 (“PDC” in ASCII).

Bit 1 – WPCTREN Write Protection Counter Registers Enable

ValueDescription
0

Disables the write protection if WPKEY corresponds to 0x504443 (“PDC” in ASCII).

1

Enables the write protection if WPKEY corresponds to 0x504443 (“PDC” in ASCII).

Bit 0 – WPPTREN Write Protection Pointer Registers Enable

ValueDescription
0

Disables the write protection if WPKEY corresponds to 0x504443 (“PDC” in ASCII).

1

Enables the write protection if WPKEY corresponds to 0x504443 (“PDC” in ASCII).