ATxmega128D4-AU ATMEL [ATMEL Corporation], ATxmega128D4-AU Datasheet - Page 34

no-image

ATxmega128D4-AU

Manufacturer Part Number
ATxmega128D4-AU
Description
8/16-bit Atmel XMEGA D4 Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATXMEGA128D4-AU
Manufacturer:
Atmel
Quantity:
10 000
15. TC0/1 – 16-bit Timer/Counter Type 0 and 1
15.1
15.2
8135L–AVR–06/12
Features
Overview
Atmel AVR XMEGA devices have a set of four flexible 16-bit Timer/Counters (TC). Their capabil-
ities include accurate program execution timing, frequency and waveform generation, and input
capture with time and frequency measurement of digital signals. Two timer/counters can be cas-
caded to create a 32-bit timer/counter with optional 32-bit capture.
A timer/counter consists of a base counter and a set of compare or capture (CC) channels. The
base counter can be used to count clock cycles or events. It has direction control and period set-
ting that can be used for timing. The CC channels can be used together with the base counter to
do compare match control, frequency generation, and pulse width waveform modulation, as well
as various input capture operations. A timer/counter can be configured for either capture or com-
pare functions, but cannot perform both at the same time.
A timer/counter can be clocked and timed from the peripheral clock with optional prescaling or
from the event system. The event system can also be used for direction control and capture trig-
ger or to synchronize operations.
There are two differences between timer/counter type 0 and type 1. Timer/counter 0 has four CC
channels, and timer/counter 1 has two CC channels. All information related to CC channels 3
Four 16-bit timer/counters
32-bit timer/counter support by cascading two timer/counters
Up to four compare or capture (CC) channels
Double buffered timer period setting
Double buffered capture or compare channels
Waveform generation:
Input capture:
Timer overflow and error interrupts/events
One compare match or input capture interrupt/event per CC channel
Can be used with event system for:
High-resolution extension
Advanced waveform extension:
Event controlled fault protection for safe disabling of drivers
– Three timer/counters of type 0
– One timer/counter of type 1
– Split-mode enabling two 8-bit timer/counter from each timer/counter type 0
– Four CC channels for timer/counters of type 0
– Two CC channels for timer/counters of type 1
– Frequency generation
– Single-slope pulse width modulation
– Dual-slope pulse width modulation
– Input capture with noise cancelling
– Frequency capture
– Pulse width capture
– 32-bit input capture
– Quadrature decoding
– Count and direction control
– Capture
– Increases frequency and waveform resolution by 4x (2-bit) or 8x (3-bit)
– Low- and high-side output with programmable dead-time insertion (DTI)
XMEGA D4
34

Related parts for ATxmega128D4-AU