Datasheet

Figure 51-36. Synchronized Update of Comparison Values and Configurations
PWM_CMPVUPDx Value
Comparison value
for comparison x
User's
Writing
PWM_CMPVx
End of channel0 PWM period and
end of comparison update period
PWM_CMPMUPDx Value
Comparison configuration
for comparison x
PWM_CMPMx
User's
Writing
End of channel0 PWM period and
end of comparison update period and
and PWM_CMPMx written
51.6.6.6 Interrupt Sources
Depending on the interrupt mask in PWM_IMR1 and PWM_IMR2, an interrupt can be generated at the end of the
corresponding channel period (CHIDx in the PWM Interrupt Status Register 1 (PWM_ISR1)), after a fault event
(FCHIDx in PWM_ISR1), after a comparison match (CMPMx in PWM_ISR2), after a comparison update (CMPUx in
PWM_ISR2) or according to the T
ransfer mode of the synchronous channels (WRDY and UNRE in PWM_ISR2).
If the interrupt is generated by the flags CHIDx or FCHIDx, the interrupt remains active until a read operation in
PWM_ISR1 occurs.
If the interrupt is generated by the flags WRDY or UNRE or CMPMx or CMPUx, the interrupt remains active until a
read operation in PWM_ISR2 occurs.
A channel interrupt is enabled by setting the corresponding bit in PWM_IER1 and PWM_IER2. A channel interrupt is
disabled by setting the corresponding bit in PWM_IDR1 and PWM_IDR2.
51.6.7 Register Write Protection
To prevent any single software error that may corrupt PWM behavior, the registers listed below can be write-protected
by writing the field WPCMD in the PWM W
rite Protection Control Register (PWM_WPCR). They are divided into six
groups:
Register group 0:
PWM Clock Register
Register group 1:
PWM Disable Register
PWM Interrupt Enable Register 1
PWM Interrupt Disable Register 1
PWM Interrupt Enable Register 2
PWM Interrupt Disable Register 2
Register group 2:
PWM Sync Channels Mode Register
PWM Channel Mode Register
PWM Stepper Motor Mode Register
PWM Fault Protection Value Register 2
PWM Leading-Edge Blanking Register
SAM E70/S70/V70/V71 Family
Pulse W
idth Modulation Controller (PWM)
© 2019 Microchip T
echnology Inc.
Datasheet
DS60001527D-page 1587