Atmel XMEGA Timer/Counter Training Application Note AVR1501

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.


Atmel XMEGA Timer/Counter Training Application Note AVR1501 - cover page
Brand
Atmel
Category
Other Electronics
Document type
User Manual
Language
English
Pages
15
File format
PDF
File size
426 KB
Published
27 March, 2012
Updated
30 September, 2023
MD5 checksum
2014942D5B2FD8334DABBD64C6706FE9

About this manual

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.

What's inside

  • Starting the Timer/Counter
  • Compare Match in Normal Mode
  • Waveform Generation Modes
  • AWeX and Pattern Generation

Specifications

Timer/Counter type16-bit Timer/Counter (TC)
Clock sourcesPeripheral Clock and Event System
Prescaler settingCLKSEL bits in CTRLA register
Period registerPER register

Frequently asked questions

Why is the LED having a different on and off time now?

The LED's on and off time changes because the compare value for the CC channel is increased, affecting the time between overflows.

Why is the LED not blinking as before after updating CCA directly?

The LED does not blink because the double buffering mechanism prevents direct register updates from taking effect immediately.

Download PDF (426 KB)

More Atmel Manuals


View all Atmel manuals →