24.8.4 Quick Start Guide for TC - Callback
In this use case, the TC will be used to generate a PWM signal, with a varying duty cycle. Here the pulse width is increased each time the timer count matches the set compare value. The TC module will be set up as follows:
GCLK generator 0 (GCLK main) clock source
16-bit resolution on the counter
No prescaler
Normal PWM wave generation
GCLK reload action
Don't run in standby
No inversion of waveform output
No capture enabled
Count upward
Don't perform one-shot operations
No event input enabled
No event action
No event generation enabled
Counter starts on 0