Datasheet
Figure 31-4. Normal Frequency Operation
COUNT
MAX
TOP
ZERO
CCx
WO[x]
Direction Change COUNT Written
"reload" update
"clear" update
"match"
Period (T)
31.6.2.5.3 Match Frequency (MFRQ)
For Match Frequency generation, the period time (T) is controlled by CC0 register instead of PER. WO[0]
toggles on each update condition.
Figure 31-5. Match Frequency Operation
COUNT
MAX
CC0
COUNT WrittenDirection Change
ZERO
WO[0]
"reload" update
"clear" update
31.6.2.5.4 Normal Pulse-Width Modulation (NPWM)
NPWM uses single-slope PWM generation.
31.6.2.5.5 Single-Slope PWM Operation
For single-slope PWM generation, the period time (T) is controlled by Top value, and CCx controls the
duty cycle of the generated waveform output. When up-counting, the 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, the WO[x] is cleared at start or compare match between the
COUNT and ZERO values, and set on compare match between COUNT and CCx register values.
Figure 31-6. Single-Slope PWM Operation
COUNT
MAX
TOP
"match"
ZERO
CCx=ZERO
CCx
CCx=TOP
"clear" update
WO[x]
SAM D21 Family
TCC – Timer/Counter for Control Applications
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40001882D-page 715