Data Sheet
660
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
Figure 30-6. Normal Frequency Operation
Match Frequency Generation
For match frequency generation, the period time is controlled by CC0 instead of PER. WO[0] toggles on each update
condition.
Figure 30-7. Match Frequency Operation
Single-Slope PWM Generation
For single-slope PWM generation, the period time is controlled by PER, while CCx control the duty cycle of the generated
waveform output. When up-counting, WO[x] is set at start or compare match between the COUNT and TOP values, and
cleared on compare match between COUNT and CCx register values.
When down-counting, WO[x] is cleared at start or compare match between the COUNT and TOP values, and set on
compare match between COUNT and CCx register values.
Figure 30-8. Single-Slope PWM Operation
COUNT
MAX
TOP
ZERO
CCx
WO[x]
Direction ChangePeriod (T) COUNT Written
"reload" update
"clear" update
"match"
COUNT
MAX
CC0
COUNT WrittenDirection Change
Period (T)
ZERO
WO[0]
"reload" update
"clear" update
COUNT
MAX
TOP
Period (T)
"match"
ZERO
CCx=ZERO
CCx
CCx=TOP
"clear" update
WO[x]