atxmega128a4-mu ATMEL Corporation, atxmega128a4-mu Datasheet - Page 26

no-image

atxmega128a4-mu

Manufacturer Part Number
atxmega128a4-mu
Description
Atxmega16a4 8/16-bit Avr Xmega Microcontroller
Manufacturer
ATMEL Corporation
Datasheet
15. T/C - 16-bits Timer/Counter with PWM
15.1
15.2
26
Features
Overview
ATxmega A4
XMEGA A4 has 5 Timer/Counters. 3 are of type Timer0 and 2 of type Timer1. The difference
between Timer0 and Timer1 type is that Timer0 has 4 Compare/Capture channels, and Timer1
only has 2. In addition, Timer0 may have an Advanced Waveform extension (AWEX), that is not
available in Timer1.
The Timer/Counters (T/C) are 16-bit wide and can count any clock, event or input signal in the
microcontroller. A programmable prescaler is available to get a useful T/C resolution. Updates of
Timer and Compare registers are double buffered to ensure glitch free operation. Using Com-
pare channels many different waveforms can be generated, single slope PWM, dual slope PWM
and frequency generation.
The Hi-Resolution Extension can be enabled to increase the waveform generation resolution by
2 bits (4x). This is available for all Timer/Counters.
The Input Capture has a noise canceller to avoid incorrect capture of the T/C. Any input pin or
event in the microcontroller can be used to trigger the capture.
A wide range of interrupt or event sources are available, including T/C overflow, Compare match
and Capture for each timer and CC channel.
PORTC and PORTD each has one Timer/Counter 0 and one Timer/Counter 1. PORTE has one
Timer/Counter 0. Notation of these timers are TCC0, TCC1, TCD0, TCD1, and TCE0.
3 Timer/Counter 0 (Timer0)
2 Timer/Counter 1 (Timer1)
True 16-bit Design
Double Buffered Timer Period Setting
Compare or Capture Channels are Double Buffered
4 Combined Compare or Capture (CC) Channels in Timer0
2 Combined Compare or Capture (CC) Channels in Timer1
Waveform Generation:
Input Capture:
Event Counter with Direction Control
Timer Overflow and Timer Error Interrupts and Events
One Compare Match or Capture Interrupt and Event per CC Channel
Supports DMA Operation
Hi-Resolution Extension (Hi-Res)
Advanced Waveform Extension (AWEX)
– Single Slope Pulse Width Modulation
– Dual Slope Pulse Width Modulation
– Frequency Generation
– Input Capture with Noise Cancelling
– Frequency Capture
– Pulse width capture
– 32-bit input capture
8069A–AVR–02/08

Related parts for atxmega128a4-mu