68.7.35 PWM Write Protection Control Register

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

Name: PWM_WPCR
Offset: 0xE4
Reset: 
Property: Write-only

Bit 3130292827262524 
 WPKEY[23:16] 
Access WWWWWWWW 
Reset  
Bit 2322212019181716 
 WPKEY[15:8] 
Access WWWWWWWW 
Reset  
Bit 15141312111098 
 WPKEY[7:0] 
Access WWWWWWWW 
Reset  
Bit 76543210 
 WPRG5WPRG4WPRG3WPRG2WPRG1WPRG0WPCMD[1:0] 
Access WWWWWWWW 
Reset  

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

ValueNameDescription
0x50574D PASSWD

Writing any other value in this field aborts the write operation of the WPCMD field.

Always reads as 0

Bits 2, 3, 4, 5, 6, 7 – WPRGx Write Protection Register Group x

ValueDescription
0

The WPCMD command has no effect on the register group x.

1

The WPCMD command is applied to the register group x.

Bits 1:0 – WPCMD[1:0] Write Protection Command

This command is performed only if the WPKEY corresponds to 0x50574D (“PWM” in ASCII).

ValueNameDescription
0 DISABLE_SW_PROT

Disables the software write protection of the register groups of which the bit WPRGx is at ‘1’.

1 ENABLE_SW_PROT

Enables the software write protection of the register groups of which the bit WPRGx is at ‘1’.

2 ENABLE_HW_PROT

Enables the hardware write protection of the register groups of which the bit WPRGx is at ‘1’. Only a hardware reset of the PWM controller can disable the hardware write protection. Moreover, to meet security requirements, the PIO lines associated with the PWM can not be configured through the PIO interface.