Datasheet
2018 Microchip Technology Inc. Data Sheet Complete DS40002059A-page 41
ATxmega32E5/16E5/8E5
There are two differences between timer/counter type 4 and type 5. Timer/counter 4 has four CC channels, and timer/coun-
ter 5 has two CC channels. Both timer/counter 4 and 5 can be set in 8-bit mode, allowing the application to double the
number of compare and capture channels that then get 8-bit resolution.
Some timer/counters have extensions that enable more specialized waveform generation. The waveform extension (WeX)
is intended for motor control, ballast, LED, H-bridge, power converters, and other types of power control applications. It
enables more customized waveform output distribution, and low- and high-side channel output with optional dead-time
insertion. It can also generate a synchronized bit pattern across the port pins. The high-resolution (hi-res) extension can
increase the waveform resolution by four or eight times by using an internal clock source four times faster than the periph-
eral clock. The fault extension (FAULT) enables fault protection for safe and deterministic handling, disabling and/or shut
down of external drivers.
A block diagram of the 16-bit timer/counter with extensions and closely related peripheral modules (in grey) is shown in Fig-
ure 17-1.
Figure 17-1. 16-bit Timer/counter and Closely Related Peripherals
PORTC has one timer/counter 4 and one timer/counter 5. PORTD has one timer/counter 5. Notation of these are TCC4
(timer/counter C4), TCC5, and TCD5, respectively.
Compare/Capture Channel D
Compare/Capture Channel C
Compare/Capture Channel B
Compare/Capture Channel A
Waveform
Generation
Buffer
Comparator
Capture
Control
Base Counter
Counter
Control Logic
Timer Period
Prescaler
Event
System
Timer/Counter
clk
PER4
clk
PER
WeX