Atmel Xplained Pro Evaluation Kit ATSAMD20-XPRO ATSAMD20-XPRO Data Sheet

Product codes
ATSAMD20-XPRO
Page of 660
441
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
Figure 27-4. Normal Frequency Operation
When MFRQ is used, the value in CC0 will be used as the top value and WO[0] will toggle on every overflow/underflow.
Figure 27-5. Match Frequency Operation
PWM Operation
In PWM operation, the CCx registers control the duty cycle of the waveform generator output.
 shows how in 
count-up the WO[x] output is set at a start or compare match between the COUNT value and the top value and cleared 
on the compare match between the COUNT value and CCx register value.
In count-down the WO[x] output is cleared at start or compare match between the COUNT value and the top value and 
set on the compare match between the COUNT value and CCx register value. 
COUNT
Zero
"wraparound "
TOP
CNT written
CCx
WO[x]
COUNT
" wraparound "
TOP
COUNT written
Direction Change
Period (T)
Zero
WO[0]