Datasheet
– PWM Channel Mode Update Register
•
Register group 3:
– PWM Spread Spectrum Register
– PWM Spread Spectrum Update Register
– PWM Channel Period Register
– PWM Channel Period Update Register
• Register group 4:
– PWM Channel Dead Time Register
– PWM Channel Dead Time Update Register
• Register group 5:
– PWM Fault Mode Register
– PWM Fault Protection Value Register 1
There are two types of write protection:
• SW write protection—can be enabled or disabled by software
• HW write protection—can be enabled by software but only disabled by a hardware reset of the PWM controller
Both types of write protection can be applied independently to a particular register group by means of the WPCMD
and WPRGx fields in PWM_WPCR. If at least one type of write protection is active, the register group is write-
protected. The value of field WPCMD defines the action to be performed:
• 0: Disables SW write protection of the register groups of which the bit WPRGx is at ‘1’
• 1: Enables SW write protection of the register groups of which the bit WPRGx is at ‘1’
• 2: Enables HW write protection of the register groups of which the bit WPRGx is at ‘1’
At any time, the user can determine whether SW or HW write protection is active in a particular register group by the
fields WPSWS and WPHWS in the PWM Write Protection Status Register (PWM_WPSR).
If a write access to a write-protected register is detected, the WPVS flag in PWM_WPSR is set and the field
WPVSRC indicates the register in which the write access has been attempted.
The WPVS and WPVSRC fields are automatically cleared after reading PWM_WPSR.
SAM E70/S70/V70/V71 Family
Pulse W
idth Modulation Controller (PWM)
© 2019 Microchip T
echnology Inc.
Datasheet
DS60001527D-page 1588










