24.8.1 Quick Start Guide for TC - Basic
In this use case, the TC will be used to generate a PWM signal. Here the pulse width is set to one quarter of the period. 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
Capture compare channel 0 set to 0xFFFF/4