at32uc3b0512-z2ues ATMEL Corporation, at32uc3b0512-z2ues Datasheet - Page 534

no-image

at32uc3b0512-z2ues

Manufacturer Part Number
at32uc3b0512-z2ues
Description
32-bit Avr Microcontroller
Manufacturer
ATMEL Corporation
Datasheet
32059J–12/2010
Figure 24-6. Synchronized Period or Duty Cycle Update
To prevent overwriting the CUPDx by software, the user can use status events in order to syn-
chronize his software. Two methods are possible. In both, the user must enable the dedicated
interrupt in IER at PWM Controller level.
The first method (polling method) consists of reading the relevant status bit in ISR Register
according to the enabled channel(s). See
The second method uses an Interrupt Service Routine associated with the PWM channel.
Note:
Figure 24-7. Polling Method
Note:
Reading the ISR register automatically clears CHIDx flags.
Polarity and alignment can be modified only when the channel is disabled.
End of Cycle
Acknoledgement and clear previous register state
The last write has been taken into account
CPRDx
Update of the Period or Duty Cycle
Writing in CPD field
Writing in CUPDx
1
User’s Writing
CUPDx Value
CHIDx = 1
ISR Read
Figure
24-7.
0
CDTYx
CMRx.CPD
AT32UC3B
534

Related parts for at32uc3b0512-z2ues