This application note provides an overview of the Atmel XMEGA Timer/Counter (TC) peripheral. The TC is a high-end, flexible 16-bit peripheral that can be used for a variety of applications, including accurate program execution timing, frequency and waveform generation, event management, and time measurement of digital signals.
The training application note AVR1501 guides users through hands-on exercises for configuring Atmel XMEGA 16-bit Timer/Counters. It covers starting the timer with prescaler settings, using compare match registers for event detection, enabling waveform generation modes on I/O pins, and utilizing Advanced Waveform Extension for motor control patterns.
| Timer/Counter type | 16-bit Timer/Counter (TC) |
|---|---|
| Clock sources | Peripheral Clock and Event System |
| Prescaler setting | CLKSEL bits in CTRLA register |
| Period register | PER register |
The LED's on and off time changes because the compare value for the CC channel is increased, affecting the time between overflows.
The LED does not blink because the double buffering mechanism prevents direct register updates from taking effect immediately.