Datasheet

SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
1084
40.7.34 PWM Write Protection Control Register
Name: PWM_WPCR
Address: 0x400000E4
Access: Write-only
Reset: See Table 40-7
See Section 40.6.6 “Register Write Protection” for the list of registers that can be write-protected.
WPCMD: Write Protection Command
This command is performed only if the WPKEY corresponds to 0x50574D (“PWM” in ASCII).
WPRGx: Write Protection Register Group x
0: The WPCMD command has no effect on the register group x.
1: The WPCMD command is applied to the register group x.
WPKEY: Write Protection Key
31 30 29 28 27 26 25 24
WPKEY
23 22 21 20 19 18 17 16
WPKEY
15 14 13 12 11 10 9 8
WPKEY
76543210
WPRG5WPRG4WPRG3WPRG2WPRG1WPRG0 WPCMD
Value Name Description
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.
Value Name Description
0x50574D PASSWD
Writing any other value in this field aborts the write operation of the WPCMD field.
Always reads as 0