Atmel AVR XMEGA User Manual

®
AVR
MICROCONTROLLERS
AVR XMEGA
8/16-bit High Performance Low Power Flash Microcontrollers
Atmel® introduces the XMEGA™ – a brand new AVR® microcontroller. With the same acclaimed
characteristics as the established AVR devices, the XMEGA operates from just 1.6 volt with up to
32 MIPS at 32 MHz.
Time critical real-time and interrupt driven applications become safer, more responsive, and predict-
able with XMEGA. AVR XMEGA features a CPU independent Event System, DMA controller, and Mul-
tilevel Interrupt Controller. With multiple time bases, extreme communication bandwidth and special
features like Cryptography support, XMEGA is number one for demanding 8- and 16-bit embedded
applications. At the same time XMEGA’s 2nd generation picoPower™ technology with only 100 nA
sleep current is the best choice for battery operated and energy critical applications.
XMEGA features
Innovative Event System for fast, CPU independent inter-peripheral communication 4-channel DMA Controller boosts MCU performance 100% predictable timing High-speed 12-bit ADC and DAC Fast AES and DES crypto engine 2nd generation of picoPower technology
AVR XMEGA microcontrollers are the perfect solution for a wide range of applications:
• Industrial control
• Climate control
• Hand-held battery
• Factory automation
• ZigBee
• Power tools
• Sensors
• Motor control
®
• HVAC
• Wireless encryption
• Networking
• Metering
• Optical transceivers
• Medical applications
• Alarm systems
• White goods
AVR XMEGA MICROCONTROLLER
The Complete Microcontroller - XMEGA
Atmel’s AVR has grown to become the preferred MCU for demanding embedded projects
[1]
. With the
brand new XMEGA operating from only 1.6 volts with speeds up to 32 MHz, designers now get even more
performance and low power capabilities. With an impressive list of features and a drastically increased
peripheral throughput, the CPU can spend less time handling peripherals and even more time in sleep
mode.
AVR CPU
32 MHz
1.6V
12-bit ANALOG
ADC and DAC
2 Msps/1 Msps
MEMORIES
Flash
EEPROM
SRAM
16-bit TIMERS
Real-Time Counter
Timer/Counters
DMA Controller
4-channels
COMMUNICATION
USART
SPI TWI
Event System
Interrupt Controller
CRYPTOGRAPHY
AES DES
Event System
Like a reflex in the human body, the innovative
XMEGA Event System enables inter-peripheral
communication without CPU or DMA usage. This
Respo nse Tim e
Conven tional MCU
ensures 100% predictable and short response
time. Up to 8 simultaneous events or interrupt
conditions in the peripherals can automatically
XMEGA w ith Even t Syste m
Appli cation compl exity
start actions in other peripherals.
Real 12-bit ADC and DAC
For high analog accuracy the XMEGA features high-speed 12-bit analog peripherals. Capable of up to 2
Msps, XMEGA’s ADCs deliver the fastest sample rate and most accurate result compared to conventional
MCUs. Since XMEGA also features two 12-bit digital-to-analog converters (DAC) with up to 1 Msps and
four advanced analog comparators, XMEGA microcontrollers have leading analog integration.
DMA Controller
A 4-channel DMA Controller enables fast, CPU
100% CPU us age
withou t DMA
independent data transfer that significantly boosts
performance. The DMA Controller in XMEGA
with DM A
handles transfers between all combinations of
data memories and peripherals. The AVR CPU
register file and multiple bus layers ensures that
MSB
Commu nicati on rate
the data bus is always accessible for the XMEGA DMA Controller.
Programmable Multilevel Interrupt Controller
All peripherals have software selectable interrupt levels and different interrupt vectors. Important interrupts
are executed immediately and tasks are prioritized with minimum latency.
Performance Peripherals
XMEGA is packed with new, improved peripherals including:
• multiple analog comparators
• several 16-bit Timer/Counters with 8 unique
time bases
• multiple USARTs, TWIs and SPIs
®
• IrDA
• Fast AES and DES crypto engine.
2007 CMP Embedded Brands Keys Decisions in Embedded Development Survey.
[1]
www.atmel.com
Second Generation picoPower
Atmel’s picoPower technology have proven to
Batter y Leve l
picoPo wer technolo gy
be the industry leader in low power designs.
With the 2nd generation picoPower technology,
XMEGA MCUs run a Real-Time Counter, Watch-
dog Timer and Brown-out Detector with only
Conven tional MCU
Durab ility
2 μA current consumption. The XMEGA also
incorporates true 1.6 volt operation and elements like dynamic clock switching, and frequency scaling for
optimal power management.
XMEGA – Extreme Compatibility
XMEGA uses the same instruction set as existing
AVR products, and code can easily be reused.
Compilers and development tools platforms are
the same for all AVR microcontrollers.
All XMEGA family members are pin and 100%
code compatible. Designers can easily reuse
both source and binary code in all projects
when different XMEGA devices are used. This
significantly reduces development effort and
time to market.
The XMEGA Product Range
All XMEGA devices operate from 1.6 to 3.6 volts and up to 32 MHz. The first XMEGA devices range from
44 to 100 pins and from 16 to 384 KB of Flash memory.
(c)
(d)
(Chan nel)
DAC 12-bit
12-bit A/D
(Chan nel)
Ana. Comp.
BOD/ WDT/Int. RC
Pb-free Package s
(a)
(b)
Product
ATxmega64A1
ATxmega128A1
ATxmega192A1
ATxmega256A1
ATxmega384A1
ATxmega64A3
ATxmega128A3
ATxmega192A3
ATxmega256A3
ATxmega16A4
ATxmega32A 4
ATxmega64A4
ATxmega128A4
a) All X MEGA de vices have Event S ystem channe ls, and te mpera ture ran ge from - 40°C to +8 5°C. b) F: Future produc t, I: Dev ice und er Intro duction. c) 32MHz, 2M Hz and 32kHz calibrated RC o scill ators. d) Pb-free packaging alternative, complies to the European Directive for Restriction of Hazardous Substanc es (RoHS directive) . Also Halide free and fully Green.
Status
Flash ( KB)
Boot cod e (By tes)
EEPROM ( KB)
I 64 4 2 4 4 8 Y 78 8 24 Y 4 4 8 2x8 2x 2 4 Y TQFP100, BGA100
I 128 8 2 8 4 8 Y 78 8 24 Y 4 4 8 2x8 2x2 4 Y TQFP100, BGA100
F 192 8 2 4 4 8 Y 78 8 24 Y 4 4 8 2x8 2x2 4 Y TQFP100, BGA100
F 256 8 4 16 4 8 Y 78 8 24 Y 4 4 8 2x8 2x2 4 Y TQFP100, BGA100
F 38 4 8 4 32 4 8 Y 78 8 24 Y 4 4 8 2x8 2x2 4 Y TQFP100, BGA100
F 64 4 2 4 4 8 Y 50 7 22 Y 4 2 7 2x8 1x2 4 Y TQFP64, QF N/M LF64
F 128 8 2 8 4 8 Y 50 7 22 Y 4 2 7 2x8 1x2 4 Y TQFP64, QFN/MLF64
F 192 8 4 16 4 8 Y 50 7 22 Y 4 2 7 2x8 1x2 4 Y TQFP64, QFN/MLF64
F 256 8 4 16 4 8 Y 50 7 22 Y 4 2 7 2x8 1x2 4 Y TQFP64, QFN/MLF64
F 16 4 1 2 4 8 Y 36 5 16 Y 2 2 5 1x12 1x2 2 Y TQFP44, QFN /ML F44
F 32 4 2 4 4 8 Y 36 5 16 Y 2 2 5 1x12 1x2 2 Y TQFP44, QFN /ML F44
F 64 4 2 4 4 8 Y 36 5 16 Y 2 2 5 1x12 1x2 2 Y TQFP44, QFN /ML F44
F 128 8 2 8 4 8 Y 36 5 16 Y 2 2 5 1x12 1x2 2 Y TQFP44, QFN/MLF44
SRAM ( KB)
DMA
(Chan nel)
Event
(Chan nel)
Crypto
I/O
PWM
16-bit Tim ers
(Chan nel)
RTC 16-bit
SPI
(I2C an d SMBus )
TWI
USART
Samples can be ordered from Atmel sales or distribution channels
EXTREME PERIPHERALS
EXTENDED PICOPOWER
EXCEPTIONAL PERFORMANCE
X
XMEGA
XMEGA tools
XMEGA is supported by the easy-to-use tool chain already existing for AVR devices.
AVR Studio
Download the free AVR Studio® and start writing and debugging code instantly! The Integrated
Development Environment provides an easy-to-use human interface for XMEGA development.
AVR Studio includes a free simulator and assembler as well as the user fron-end for all Atmel AVR
tools.
JTAGICE mkII
The JTAGICE mklI is a powerful development tool for On-Chip Debugging of all AVR micro-
controllers with PDI, JTAG or debugWire interface.
STK®600
Together with AVR Studio the STK600 starter kit provides a complete programming and develop-
ment system. All AVRs and future XMEGA parts are supported.
XMEGA Third Party Products
IAR Embedded workbench for AVR also
supports XMEGA. A free evaluation version is
available from www.iar.com.
The Micrium uC OS-II real time kernel port
for XMEGA and ATxmega128A1 is available from
www.micrium.com.
XMEGA is also supported by the free WinAVR GCC compiler.
Headquarters
Atmel Corporation
2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600
International
Atmel Asia
Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimhatsui East Kowloon Hong Kong Tel: (852) 2721-9778 Fax: (852) 2722-1369
Atmel Europe
Le Krebs 8, Rue Jean-Pierre Timbaud BP 309, 78054 Saint-Quentin-en­Yvelines Cedex France Tel: (33) 1-30-60-70-00 Fax: (33) 1-30-60-71-11
Atmel Japan
9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel: (81) 3-3523-3551 Fax: (81) 3-3523-7581
Literature Requests
www.atmel.com/literature
Website
www.atmel.com
XMEGA Documentation
Complete device and module documentation is available from the XMEGA homepage.
A comprehensive collection of free application examples and source code for all XMEGA peripherals
facilitates development and reduce time to market.
Support center: http://support.atmel.no
Get all about XMEGA here: www.atmel.com/xmega
Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connec­tion with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDITIONS OF SALES LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON­INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
© 2008 Atmel Corporation.
All rights reserved.
Atmel®, logo and combinations thereof,
AVR®, AVR Studio®, “Everywhere You
Are®”, STK® and others are registered
trademarks, picoPower™ ,XMEGA™
and others are trademarks of Atmel
Corporation or its subsidiaries. Other
terms and product names may be
trademarks of others.
Rev.: 7925B-AVR-03/08/10M
Loading...