8/16-bit Atmel AVR XMEGA Microcontrollers
ATxmega32E5 / ATxmega16E5 / ATxmega8E5
Preliminary
Features
High-performance, low-power Atmel® AVR® XMEGA® 8/16-bit Microcontroller
Nonvolatile program and data memories
8K –32KBytes of in-system self-programmable flash
2K – 4KBytes boot section
512Bytes – 1KBytes EEPROM
1K – 4KBytes internal SRAM
Peripheral features
Four-channel enhanced DMA controller with 8/16-bit address match
Eight-channel event system
Asynchronous and synchronous signal routing
Quadrature encoder with rotary filter
Three 16-bit timer/counters
One timer/counter with 4 output compare or input capture channels
Two timer/counter with 2 output compare or input capture channels
High resolution extension enabling down to 4ns PWM resolution
Waveform extension for control of motor, LED, lighting, H-bridge, high drives and more
Fault extension for safe and deterministic handling and/or shut-down of external driver
CRC-16 (CRC-CCITT) and CRC-32 (IEEE 802.3) generator
XMEGA Custom Logic (XCL) module with timer, counter and logic functions
Two 8-bit timer/counters with capture/compare and 16-bit cascade mode
Connected to one USART to support custom data frame length
Connected to I/O pins and event system to do programmable logic functions
MUX, AND, NAND, OR, NOR, XOR, XNOR, NOT, D-Flip-Flop, D Latch, RS Latch
Two USARTs with full-duplex and single wire half-duplex configuration
Master SPI mode
Support custom protocols with configurable data frame length up to 256-bit
System wake-up from deep sleep modes when used with internal 8MHz oscillator
One two-wire interface with dual address match (I
2
C and SMBus compatible)
Bridge configuration for simultaneous master and slave operation
Up to 1MHz bus speed support
One serial peripheral interface (SPI)
16-bit real time counter with separate oscillator and digital correction
One sixteen-channel, 12-bit, 300ksps Analog to Digital Converter with:
Offset and gain correction
Averaging
Over-sampling and decimation
One two-channel, 12-bit, 1Msps Digital to Analog Converter
Two Analog Comparators with window compare function and current sources
External interrupts on all general purpose I/O pins
Programmable watchdog timer with separate on-chip ultra low power oscillator
QTouch® library support
Capacitive touch buttons, sliders and wheels
Special microcontroller features
Power-on reset and programmable brown-out detection
Internal and external clock options with PLL
Programmable multilevel interrupt controller
Five sleep modes
Programming and debug interface
PDI (Program and Debug Interface)
I/O and Packages
26 programmable I/O pins
7x7mm 32-lead TQFP
5x5mm 32-lead VQFN
4x4mm 32-lead UQFN
Operating Voltage
1.6 – 3.6V
Operating frequency
0 – 12MHz from 1.6V
0 – 32MHz from 2.7V
8153G–AVR–10/2013
1.
Ordering Information
Package
(1)(2)(3)
32A
(7x7mm TQFP)
32Z
(5x5mm VQFN)
32MA
(4x4mm UQFN)
32A
(7x7mm TQFP)
32Z
(5x5mm VQFN)
32MA
(4x4mm UQFN)
32A
(7x7mm TQFP)
32Z
(5x5mm VQFN)
32MA
(4x4mm UQFN)
Flash
(Bytes)
EEPROM
(Bytes)
SRAM
(Bytes)
Speed
(MHz)
Power supply
Temp.
Ordering Code
ATxmega8E5-AU
ATxmega8E5-AUR
(4)
ATxmega8E5-MU
ATxmega8E5-MUR
(4)
ATxmega8E5-M4U
ATxmega8E5-M4UR
(4)
ATxmega16E5-AU
ATxmega16E5-AUR
(4)
ATxmega16E5-MU
ATxmega16E5-MUR
(4)
ATxmega16E5-M4U
ATxmega16E5-M4UR
(4)
ATxmega32E5-AU
ATxmega32E5AUR
(4)
ATxmega32E5-MU
ATxmega32E5-MUR
(4)
ATxmega32E5-M4U
ATxmega32E5-M4UR
(4)
Notes:
1.
2.
3.
4.
8K + 2K
512B
1K
32
1.6 – 3.6V
-40°C – 85°C
16K + 4K
512B
2K
32
1.6 – 3.6V
-40°C – 85°C
32K + 4K
1K
4K
32
1.6 – 3.6V
-40°C – 85°C
This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information.
Pb-free packaging, complies to the European Directive for Restriction of Hazardous Substances (RoHS directive). Also Halide free and fully Green.
For packaging information, see
“Packaging information” on page 68.
Tape and Reel
Package Type
32A
32Z
32MA
32-lead, 7x7mm body size, 1.0mm body thickness, 0.8mm lead pitch, thin profile plastic quad flat package (TQFP)
32-lead, 0.5mm pitch, 5x5mm Very Thin quad Flat No Lead Package (VQFN) Sawn
32-lead, 0.4mm pitch, 4x4x0.60mm Ultra Thin Quad No Lead (UQFN) Package
2.
Typical Applications
Sensor control
Industrial control
Battery charger
Motor control
Ballast control, Inverters
Utility metering
Board controller
User interface
Communication bridges
Appliances
XMEGA E5 [DATASHEET]
8153G–AVR–10/2013
2
3.
Pinout and Block Diagram
Power
Ground
Digital function
Analog function / Oscillators
Programming, debug, test
External clock / Crystal pins
General Purpose I/O
AVCC
PD0
PD1
PD2
32
31
30
29
28
27
26
Port D
USART0
25
PD3
PA5
PA6
PA7
GND
1
AREF
ADC
TC5
24
XCL
PD4
PA4
2
EVENT ROUTING NETWORK
23
PD5
DATA BUS
Power
Supervision
AREF
Port A
PA3
3
TEMPREF
Watchdog
Oscillator
Sleep
Controller
OCD
Reset
Controller
OSC/CLK
Control
Prog/Debug
Interface
EDMA
Controller
22
PD6
Real Time
Counter
Event System
Controller
Watchdog
Timer
CRC
VREF
Interrupt
Controller
ADC
DAC
AC0:1
PA2
4
21
PD7
PA1
5
20
Port R
PR0
CPU
BUS
Controller
PA0
6
EEPROM
FLASH
SRAM
19
PR1
DATA BUS
PDI
7
USART0
IRCOM
TC4:5
TWI
SPI
18
GND
PDI / RESET
8
Port C
17
10
11
12
13
14
15
9
16
VCC
PC7
PC6
PC5
PC4
PC3
PC2
PC1
Note:
1.
For full details on pinout and alternate pin functions refer to
“Pinout and Pin Functions” on page 57.
XMEGA E5 [DATASHEET]
8153G–AVR–10/2013
PC0
3
4.
Overview
The Atmel AVR XMEGA is a family of low power, high performance, and peripheral rich 8/16-bit microcontrollers based
on the AVR enhanced RISC architecture. By executing instructions in a single clock cycle, the AVR XMEGA devices
achieve CPU throughput approaching one million instructions per second (MIPS) per megahertz, allowing the system
designer to optimize power consumption versus processing speed.
The AVR CPU combines a rich instruction set with 32 general purpose working registers. All 32 registers are directly
connected to the arithmetic logic unit (ALU), allowing two independent registers to be accessed in a single instruction,
executed in one clock cycle. The resulting architecture is more code efficient while achieving throughputs many times
faster than conventional single-accumulator or CISC based microcontrollers.
The AVR XMEGA E5 devices provide the following features: in-system programmable flash with read-while-write
capabilities; internal EEPROM and SRAM; four-channel enhanced DMA (EDMA) controller; eight-channel event system
with asynchronous event support; programmable multilevel interrupt controller; 26 general purpose I/O lines; CRC-16
(CRC-CCITT) and CRC-32 (IEEE 802.3) generators; one XMEGA Custom Logic module with timer, counter and logic
functions (XCL); 16-bit real-time counter (RTC) with digital correction; three flexible, 16-bit timer/counters with compare
and PWM channels; two USARTs; one two-wire serial interface (TWI) allowing simultaneous master and slave; one
serial peripheral interface (SPI); one sixteen-channel, 12-bit ADC with programmable gain, offset and gain correction,
averaging, over-sampling and decimation; one 2-channel 12-bit DAC; two analog comparators (ACs) with window mode
and current sources; programmable watchdog timer with separate internal oscillator; accurate internal oscillators with
PLL and prescaler; and programmable brown-out detection.
The program and debug interface (PDI), a fast, two-pin interface for programming and debugging, is available.
The AVR XMEGA E5 devices have five software selectable power saving modes. The idle mode stops the CPU while
allowing the SRAM, EDMA controller, event system, interrupt controller, and all peripherals to continue functioning. The
power-down mode saves the SRAM and register contents, but stops the oscillators, disabling all other functions until the
next TWI, or pin-change interrupt, or reset. In power-save mode, the asynchronous real-time counter continues to run,
allowing the application to maintain a timer base while the rest of the device is sleeping. In standby mode, the external
crystal oscillator keeps running while the rest of the device is sleeping. This allows very fast startup from the external
crystal, combined with low power consumption. In extended standby mode, both the main oscillator and the
asynchronous timer continue to run. In each power save, standby or extended standby mode, the low power mode of the
internal 8MHz oscillator allows very fast startup time combined with very low power consumption.
To further reduce power consumption, the peripheral clock to each individual peripheral can optionally be stopped in
active mode and idle sleep mode and low power mode of the internal 8MHz oscillator can be enabled.
Atmel offers a free QTouch library for embedding capacitive touch buttons, sliders and wheels functionality into AVR
microcontrollers. The devices are manufactured using Atmel high-density, nonvolatile memory technology. The program
flash memory can be reprogrammed in-system through the PDI. A boot loader running in the device can use any
interface to download the application program to the flash memory. The boot loader software in the boot flash section can
continue to run. By combining an 8/16-bit RISC CPU with in-system, self-programmable flash, the AVR XMEGA is a
powerful microcontroller family that provides a highly flexible and cost effective solution for many embedded applications.
All Atmel AVR XMEGA devices are supported with a full suite of program and system development tools, including C
compilers, macro assemblers, program debugger/simulators, programmers, and evaluation kits.
XMEGA E5 [DATASHEET]
8153G–AVR–10/2013
4
5.
Resources
A comprehensive set of development tools, application notes and datasheets are available for download on
http://www.atmel.com/avr.
5.1
Recommended reading
XMEGA® E Manual
XMEGA Application Notes
This device data sheet only contains part specific information with a short description of each peripheral and module. The
XMEGA E Manual describes the modules and peripherals in depth. The XMEGA application notes contain example code
and show applied use of the modules and peripherals.
All documentations are available from
www.atmel.com/avr.
6.
Capacitive touch sensing
The Atmel® QTouch® library provides a simple to use solution to realize touch sensitive interfaces on most Atmel AVR®
microcontrollers. The patented charge-transfer signal acquisition offers robust sensing and includes fully debounced
reporting of touch keys and includes Adjacent key suppression® (AKS®) technology for unambiguous detection of key
events. The QTouch library includes support for the QTouch and QMatrix acquisition methods.
Touch sensing can be added to any application by linking the appropriate Atmel QTouch library for the AVR
Microcontroller. This is done by using a simple set of APIs to define the touch channels and sensors, and then calling the
touch sensing API’s to retrieve the channel information and determine the touch sensor states.
The Atmel QTouch library is FREE and downloadable from the Atmel website at the following location:
http://www.atmel.com/tools/QTOUCHLIBRARY.aspx.
For implementation details and other information, refer to the
Atmel QTouch library user guide - also available for download from the Atmel website.
XMEGA E5 [DATASHEET]
8153G–AVR–10/2013
5