8.9.6.11 TRNG Write Protection Mode Register

Name: TRNG_WPMR
Offset: 0xE4
Reset: 0x00000000
Property: Read/Write

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 
 LCKCRENLCKITENLCKWPENFIRSTE WPCRENWPITENWPEN 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 

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

ValueNameDescription
0x524E47 PASSWD Writing any other value in this field aborts the write operation of bits WPEN, WPITEN and WPCREN. Always reads as 0.

Bit 7 – LCKCREN Write Protection Lock Enable for Control Register

ValueDescription
0 No effect.
1 Locks the write access to the WPCREN bit until the next system reset. WPCREN must be set to perform the action.

Bit 6 – LCKITEN Write Protection Lock Enable for Interrupt Register

ValueDescription
0 No effect.
1 Locks the write access to the WPITEN bit until the next system reset. WPITEN must be set to perform the action.

Bit 5 – LCKWPEN Write Protection Lock Enable for Configuration Register

ValueDescription
0 No effect.
1 Locks the write access to the WPEN bit until the next system reset. WPEN must be set to perform the action.

Bit 4 – FIRSTE First Error Report Enable

ValueDescription
0 The last write protection violation source is reported in TRNG_WPSR.WPVSRC and the last software control error type is reported in TRNG_WPSR.SWETYP. The TRNG_ISR.SECE flag is set at the first error occurrence within a series.
1 Only the first write protection violation source is reported in TRNG_WPSR.WPVSRC and only the first software control error type is reported in TRNG_WPSR.SWETYP. The TRNG_ISR.SECE flag is set at the first error occurrence within a series.

Bit 2 – WPCREN Write Protection Control Enable

ValueDescription
0 Disables the write protection on control register if WPKEY corresponds to 0x524E47 (“RNG” in ASCII).
1 Enables the write protection on control register if WPKEY corresponds to 0x524E47 (“RNG” in ASCII).

Bit 1 – WPITEN Write Protection Interrupt Enable

ValueDescription
0 Disables the write protection on interrupt registers if WPKEY corresponds to 0x524E47 (“RNG” in ASCII).
1 Enables the write protection on interrupt registers if WPKEY corresponds to 0x524E47 (“RNG” in ASCII).

Bit 0 – WPEN Write Protection Enable

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

ValueDescription
0 Disables the write protection if WPKEY corresponds to 0x524E47 (“RNG” in ASCII).
1 Enables the write protection if WPKEY corresponds to 0x524E47 (“RNG” in ASCII).