Datasheet

1028
32117D–AVR-01/12
AT32UC3C
33.7.30 Write Protect Control Register
Name:
WPCR
Access Type: Write-only
Offset: 0x0E4
Reset Value: -
WPKEY: Write Protect Key
Should be written at value 0x50574D (“PWM” in ASCII). Writing any other value in this field aborts the write operation of the
WPCMD field. Always reads as 0.
WPRGx: Write Protect Register Group x
Writing a zero to this bit has no effect.
Writing a one to this bit will allow to set the WPCMD command to the register group x.
WPCMD: Write Protect Command
This command is performed only if the WPKEY value is correct.
0: Disable the Write Protect SW of the register groups of which the WPRGx bit is set to 1.
1: Enable the Write Protect SW of the register groups of which the WPRGx bit is set to 1.
2: Enable the Write Protect HW of the register groups of which the WPRGx bit is set to 1.
3: No effect.
Note: Only a hardware reset of the PWM controller can disable the Write Protect HW.
List of register groups:
Register group 0:
”Clock Register” on page 997
Register group 1:
”Disable Register” on page 1000
Register group 2:
”Sync Channels Mode Register” on page 1006
”Channel Mode Register” on page 1036
”Stepper Motor Mode Register” on page 1027
Register group 3:
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