www.atmel.com
Timer/Counters
All AVR XMEGA Timer/Counter modules are 16-bit with input
Capture and Pulse Width Modulation (PWM) functionality. Up
to 128 MHz PWM is possible from internal PLL by using the Hi-
Res extension. Using the Event System and Advanced Waveform
Extension (AWeX) and high resolution extention, implementation of
advanced motor control (AC, BLDC, SR, and Stepper) and power
control applications is made easy.
interfaces
AVR XMEGA comes with various interfaces that combined with DMA or Event System creates a powerful and
fast communication platform.
USART
Full asynchronous and clocked synchronous
operation.
• Fractional BAUD Rate Generator
• Master SPi mode
• iRCOM module for irDA Compliance
• Up to 4 Mbps communication
SPI
Fast full duplex synchronous serial communication
• Master and Slave Operation
• Up to 16 Mbps communication
EBI
External Bus interface, for easy access to
• SRAM
• SDRAM
• External peripherals (e.g. LCDs)
• Memory mapped devices
TWI (The Two Wire Interface)
Bi-directional 2-wire bus communication,
• i
2
C and SMBus compliant
• Slave operates in all Sleep Modes
• Full 100 kHz and 400 kHz support
• Master and Slave operation
Normal mode of operation, counting up or down
CNT
BOT
MAX
"update"
PER
CNT written
DIRECTION
CNT
MAX
New Period written to
PERBUF that is higher
than current CNT
New Period written to
PERBUF that is lower
than current CNT
"update"
"write"
New PER is updated
with PERBUF value.
BOT
AWeX Dead Time Insertion (DTI) with separate high side and
low side period
DTI CNT
T/C output
high side output
low side output
t
low side
t
high side
T
events
CNT
PER
BOT
Capture 0
Capture 1
Capture 2
Capture 3
"capture"
Period (T)
external signal
events
CNT
MAX
BOT
"capture"
Changing the period with buffering in dual slope mode
Input capture of pin change using the Event System
Frequency capture of an external signal
Timer/Counter
Base Counter
Timer Period(PER)
Counter(CNT)
Logic Control
Compare/Capture Channel n
Capture Control
Waveform
Generation
Comparator
Buffer
AWeX
Dead-Time
Insertion
Pattern Generator
Fault Protection
clk
PER4
H
i-R
es
Por
ts
clk
PER
Prescaler
Event System