English
Language : 

ATXMEGA128A4U-AU Datasheet, PDF (33/121 Pages) ATMEL Corporation – 8/16-bit Atmel XMEGA A4U Microcontroller
XMEGA A4U
Figure 16-1. Overview of a Timer/Counter and closely related peripherals
Timer/Counter
Base Counter
Timer Period
Counter
Control Logic
Prescaler
Event
System
clkPER
Compare/Capture Channel D
Compare/Capture Channel C
Compare/Capture Channel B
Compare/Capture Channel A
Comparator
Buffer
Capture
Control
Waveform
Generation
AWeX
Dead-Time
Insertion
Pattern
Generation
Fault
Protection
clkPER4
The only difference between Timer/Counter type 0 and 1 is the number of CC Channels.
Timer/Counter 0 has four CC channels, and Timer/Counter 1 has two CC channels. All informa-
tion related to CC channel 3 and 4 is only valid for Timer/Counter 0.
Some Timer/Counters have extensions to enable more specialized waveform and frequency
generation. The Advanced Waveform Extension (AWeX) is intended for motor control and other
power control applications. It enables Low- and High Side output with Dead Time Insertion, and
fault protection for disabling and shutdown of drivers. It can also generate a synchronized bit
pattern across the port pins.See ”Hi-Res - High Resolution Extension” on page 35 for more
details.
The High Resolution (Hi-Res) extension can be used to increase the waveform output resolution
by up to eight times, by using internal clock source running up to four times faster than the
Peripheral Clock. See ”AWeX - Advanced Waveform Extension” on page 34 for more details.
PORTC and PORTD each has one Timer/Counter 0 and one Timer/Counter1. PORTE has one
Timer/Conter0. Notation of these are TCC0 (Time/Counter C0), TCC1, TCD0, TCD1 and TCE0,
respectively.
33
8387A–AVR–07/11