atxmega128a3-mu ATMEL Corporation, atxmega128a3-mu Datasheet

no-image

atxmega128a3-mu

Manufacturer Part Number
atxmega128a3-mu
Description
8/16-bit Xmega Microcontroller
Manufacturer
ATMEL Corporation
Datasheet
Features
Typical Applications
High-performance, Low-power AVR 8/16-bit XMEGA Microcontroller
Non-volatile Program and Data Memories
Peripheral Features
Special Microcontroller Features
I/O and Packages
Operating Voltage
Speed performance
Industrial control
Factory automation
Building control
Board control
White Goods
– 64K/128K/192K/256K Bytes of In-System Self-Programmable Flash
– 4K/8K/8K/8K Boot Code Section with Independent Lock Bits
– 2K/2K/4K/4K Bytes EEPROM
– 4K/8K/16K/16K Bytes Internal SRAM
– Four-channel DMA Controller with support for external requests
– Seven 16-bit Timer/Counters
– Seven USARTs
– AES Crypto Engine
– DES Crypto Engine
– Two 2-wire Interfaces (I
– Four SPIs (Serial Peripheral Interfaces)
– 16-bit Real Time Counter with Separate Oscillator
– Two Eight-channel, 12-bit, 2 Msps ADCs
– One Two-channel, 12-bit, 1 Msps DAC
– Four Analog Comparators
– External Interrupts on all General Purpose I/O pins
– Programmable Watchdog Timer with Separate On-chip Oscillator
– Power-on Reset and Programmable Brown-out Detection
– Internal and External Clock Options with PLL
– Programmable Multi-level Interrupt Controller
– Sleep Modes: Idle, Power-down, Standby, Power-save, Extended Standby
– Advanced Programming, Test and Debugging Interfaces
– 50 Programmable I/O Lines
– 64-lead TQFP
– 64-pad MLF
– 1.8 – 3.6V
– 0 – 12 MHz @ 1.8 – 2.7V
– 0 – 32 MHz @ 2.7 – 3.6V
4 Timer/Counters with 4 Output Compare or Input Capture channels
3 Timer/Counters with 2 Output Compare or Input Capture channels
High Resolution Extensions on all Timer/Counters
Advanced Waveform Extension on 1 Timer/Counters
IrDA Extension on 1 USART
JTAG (IEEE 1149.1 Compliant) Interface for test, debug and programming
PDI (Program and Debug Interface) for programming, test and debugging
2
C and SMBus compliant)
Climate control
ZigBee
Motor control
Networking
Optical
Hand-held battery applications
Power tools
HVAC
Metering
Medical Application
8/16-bit
XMEGA
Microcontroller
ATxmega256A3
ATxmega192A3
ATxmega128A3
ATxmega64A3
Advance
Information
8068A–AVR–02/08

Related parts for atxmega128a3-mu

atxmega128a3-mu Summary of contents

Page 1

... Building control Motor control • • Board control Networking • • White Goods Optical • Hand-held battery applications • Power tools • HVAC • Metering • Medical Application 8/16-bit XMEGA Microcontroller ATxmega256A3 ATxmega192A3 ATxmega128A3 ATxmega64A3 Advance Information 8068A–AVR–02/08 ...

Page 2

Block Diagram/Pinout INDEX CORNER AC3/ACD3/PA3 AC4/ADC4/PA4 AC5/ADC5/PA5 AC6/ADC6/PA6 AC7/ADC7/PA7 AREF/AC0/ADC0/ADC8/PB0 AC1/ADC1/ADC9/PB1 DAC0/AC2/ADC2/ADC10/PB2 DAC1/AC3/ADC3/ADC11/PB3 TMS/AC4/ADC4/ADC12/PB4 TDI/AC5/ADC5/ADC13/PB5 TCK/AC6/ADC6/ADC14/PB6 TDO/AC7/ADC7/ADC15/PB7 GND VCC SDA/OC0A/_OC0A/PC0 8068A–AVR–02/08 1 Port R 2 DATA ADC A 4 OSC/CLK Control BOD 5 DAC A 6 ...

Page 3

... ATxmega64A3-AU 64K + 4K ATxmega256A3-MU 256K + 8K ATxmega192A3-MU 192K + 8K ATxmega128A3-MU 128K + 8K ATxmega64A3-MU 64K + 4K Notes: 1. This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information. 2. Pb-free packaging, complies to the European Directive for Restriction of Hazardous Substances (RoHS directive). Also Halide free and fully Green ...

Page 4

... AVR instructions in a single clock cycle, the XMEGA A3 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed. 5. Resources A comprehensive set of development tools, application notes, and datasheets are available for download on http://www.atmel.com. 5.1 Recommended reading • ...

Page 5

AVR CPU 6.1 Features • 8/16-bit high performance AVR RISC Architecture – 139 instructions – Hardware multiplier • 32x8-bit registers directly connected to the ALU • Stack in RAM • Stack Pointer accessible in I/O memory space • Direct ...

Page 6

Register File The fast-access Register File contains 32 x 8-bit general purpose working registers with a single clock cycle access time. This allows single-cycle Arithmetic Logic Unit (ALU) operation typ- ical ALU operation, two operands are output ...

Page 7

Memories 7.1 Features • Flash Program Memory – One linear address space – In-System Reprogrammable – Self-Programming and Bootloader support – Application Section for application code – Application Table Section for application code or data storage – Bootloader Section ...

Page 8

... F000 1FFFF / 17FFF / FFFF 20000 / 18000 / 10000 20FFF / 18FFF / 10FFF Table 7-2 on page 8. The Reserved memory space is empty. Byte Address ATxmega128A3 0 I/O Registers (4KB) FFF 1000 EEPROM (2K) 17FF RESERVED 2000 Internal SRAM (8K) 3FFF 4000 External Mempry ( MB) FFFFFF ATxmega A3 0 Application Section (256K/192K/128K/64K) ...

Page 9

ATxmega A3 Byte Address ATxmega256A3 0 I/O Registers (4KB) FFF 1000 EEPROM (4K) 1FFF 2000 Internal SRAM (16K) 5FFF 6000 External Mempry ( MB) FFFFFF 9 ...

Page 10

I/O Memory All XMEGA A3 I/Os and peripherals are addressable through I/O memory locations in the data memory space. All I/O locations may be accessed by the LD/LDS/LDD and ST/STS/STD instructions, transferring data between the 32 general purpose registers ...

Page 11

DMA - Direct Memory Access Controller 8.1 Features • Allows High-speed data transfer – From memory to peripheral – From memory to memory – From peripheral to memory – From peripheral to peripheral • 4 Channels • From 1 ...

Page 12

Event System 9.1 Features • Inter peripheral communication and signalling • CPU and DMA independent operation • 8 Event Channels allows for signals to be routed at the same time • Events can be generated by ...

Page 13

Figure 9-1. The the event routing network can directly connect together ADCs, DACs, Analog Comparators (AC), I/O ports (PORT), the Real-time Counter (RTC), and Timer/Counters (T/C). Events can also be generated from software (CPU). 8068A–AVR–02/08 Event system block diagram. CPU ...

Page 14

System Clock and Clock options 10.1 Features • Fast start-up time • Safe run time clock switching • 4 Internal Oscillators; 32 MHz, 2 MHz, 32 kHz, 32 kHz Ultra Low Power (ULP) • 0 MHz Crystal ...

Page 15

Figure 10-1. Clock system overview Internal Oscillator 32 KHz Calibrated Internal Oscillator Run-time Calibrated Internal Oscillator Run-time Calibrated Internal Oscillator Each clock source is briefly described in the following sub-sections. 8068A–AVR–02/08 32 KHz ULP 32 KHz Crystal Oscillator 0.4 - ...

Page 16

Clock Options 10.3.1 32 kHz Ultra Low Power Internal Oscillator The 32 kHz Ultra Low Power (ULP) Internal Oscillator is a very low power consumption clock source based on internal components only intended mainly for system ...

Page 17

Power Management and Sleep Modes 11.1 Features • 5 sleep modes – IDLE – Power-down – Power-save – Standby – Extended standby • Power Reduction register to disable clock to unused peripheral 11.2 Overview The XMEGA A3 provides various ...

Page 18

Extended Standby Mode Extended Standby mode is identical to Power-save mode with the exception that the system clock sources are kept running while the CPU and Peripheral clocks are stopped. This reduces the wake-up time when external crystals or ...

Page 19

System Control and Reset 12.1 Resetting the AVR During reset, all I/O Registers are set to their initial values. Application execution starts from the Reset Vector. The instruction placed at the Reset Vector should be a JMP - Absolute ...

Page 20

WDT - Watchdog Timer 12.3.1 Features • 11 selectable timeout period, from 8s. • Two operation modes – Standard mode – Window mode • Runs from 1 kHz Ultra Low Power clock reference • Configuration lock ...

Page 21

PMIC - Programmable Multi-level Interrupt Controller 13.1 Features • Separate interrupt vector for each interrupt • Short, predictable interrupt response time • Programmable Multi-level Interrupt Controller – 3 programmable interrupt levels – Selectable priority scheme within low level interrupts ...

Page 22

Table 13-1. Reset and Interrupt Vectors (Continued) Program Address (Base Address) Source 0x048 IVEC_ACB_INT_base 0x04E IVEC_ADCB_INT_base 0x056 IVEC_PORTE_INT_base 0x05A IVEC_TWIE_INT_base 0x05E IVEC_TIMERE0_INT_base 0x06A IVEC_TIMERE1_INT_base 0x072 IVEC_SPIE_INT_vect 0x074 IVEC_USARTE0_INT_base 0x07A IVEC_USARTE1_INT_base 0x080 IVEC_PORTD_INT_base 0x084 IVEC_PORTA_INT_base 0x088 IVEC_ACA_INT_base 0x08E IVEC_ADCA_INT_base 0x096 IVEC_TWID_INT_base ...

Page 23

I/O Ports 14.1 Features • Selectable input and output configuration for each pin individually • Flexible pin configuration through dedicated Pin Configuration Register • Synchronous and/or asynchronous input sensing with port interrupts and events – Sense both edges – ...

Page 24

Push-pull Figure 14-1. I/O configuration - Totem-pole 14.5 Pull-down Figure 14-2. I/O configuration - Totem-pole with pull-down (on input) 14.6 Pull-up Figure 14-3. I/O configuration - Totem-pole with pull-up (on input) 14.7 Bus-keeper The bus-keeper’s weak output produces the ...

Page 25

Figure 14-4. I/O configuration - Totem-pole with bus-keeper 14.8 Others Figure 14-5. Output configuration - Wired-OR with optional pull-down Figure 14-6. I/O configuration - Wired-AND with optional pull-up 14.9 Port Interrupt Ports can have pin-change interrupts and external interrupts. Each ...

Page 26

Input sensing • Sense both edges • Sense rising edges • Sense falling edges • Sense low level The basic input sensing may be synchronous or asynchronous and is built on the configuration shown in Figure 14-7. Input sensing ...

Page 27

T/C - 16-bits Timer/Counter with PWM 15.1 Features • 4 Timer/Counter 0 (Timer0) • 4 Timer/Counter 1 (Timer1) • Double Buffered Timer Period Setting • Compare or Capture Channels are Double Buffered • 4 Combined Compare or Capture (CC) ...

Page 28

AWEX - Advanced Waveform Extension 16.1 Features • 4-DTI Units (8-pin) • 8-bit Resolution • Separate High and Low Side Dead-Time Setting • Double Buffered Dead-Time • Fault Protection (Event Controlled) • Single Channel Multiple Output Operation (for BLDC ...

Page 29

RTC - Real-Time Counter 17.1 Features • 16-bit Timer • Flexible Tick resolution ranging from kHz • 1 Compare register • 1 Top Value register • Clear timer on Overflow or Compare Match • Overflow ...

Page 30

TWI - Two Wire Interface 18.1 Features • Two Identical TWI peripherals • Simple yet Powerful and Flexible Communication Interface • Both Master and Slave Operation Supported • Device can Operate as Transmitter or Receiver • 7-bit Address Space ...

Page 31

SPI - Serial Peripheral Interface 19.1 Features • 4 Identical SPI peripherals • Full-duplex, Three-wire Synchronous Data Transfer • Master or Slave Operation • LSB First or MSB First Data Transfer • Seven Programmable Bit Rates • End of ...

Page 32

USART 20.1 Features • 8 Identical USART peripherals • Full Duplex Operation (Independent Serial Receive and Transmit Registers) • Asynchronous or Synchronous Operation • Master or Slave Clocked Synchronous Operation • High-resolution Arithmetic Baud Rate Generator • Supports Serial ...

Page 33

IRCOM - IR Communication Module 21.1 Features • Pulse modulation/demodulation for infrared communication • IrDA 1.4 Compatible for baud rates up to 115.2 kbps • Selectable pulse modulation scheme – 3/16 of baud rate period – Fixed pulse period, ...

Page 34

Crypto Engine 22.1 Features • Data Encryption Standard (DES) core instruction • Advanced Encryption Standard (AES) crypto module • DES Instruction – Encryption and Decryption – DES and triple-DES supported – Single-cycle DES instruction – Encryption/Decryption in 16 clock ...

Page 35

ADC - 12-bit Analog to Digital Converter 23.1 Features • Two ADCs with 12-bit resolution • 2 Msps conversion rate • Signed- and Unsigned conversions • 4 result registers with individual channel control for each ADC • 16 single ...

Page 36

Figure 23-1. ADC overview Each ADC has 4 registers defining a MUX selection with a corresponding result register. This means that 4 channels may be sampled within 1.5 µs without any intervention by the application other than starting the conversion, ...

Page 37

DAC - 12-bit Digital to Analog Converter 24.1 Features • One DAC with 12-bit resolution • Msps conversion rate • Flexible conversion range • Multiple trigger sources • 1 continuous time or 2 Sample and Hold ...

Page 38

AC - Analog Comparator 25.1 Features • Four Analog Comparators • Selectable Power vs. Speed – 20 µA/500 ns active current consumption/propagation delay, or – 130 µA/30 ns active current consumption/propagation delay • Selectable hysteresis – mV, ...

Page 39

Figure 25-1. Analog comparator overview 8068A–AVR–02/ ...

Page 40

Input Selection The Analog comparators have a very flexible input selection and the two comparators grouped in a pair may be used to realize a window function. One pair of analog comparators is shown in Figure 25-1 on page ...

Page 41

OCD - On-chip Debug 26.1 Features • Complete Program Flow Control – Symbolic Debugging Support in Hardware – Go, Stop, Reset, Step into, Step over, Step out, Run-to-Cursor • 1 dedicated program address breakpoint or symbolic breakpoint for AVR ...

Page 42

Program, Debug and Test Interfaces 27.1 Features • JTAG Interface (IEEE std. 1149.1 compliant) • PDI - Program and Debug Interface (Atmel proprietary 2-pin interface) • Boundary-scan capabilities according to the IEEE Std. 1149.1 (JTAG) • Access to the ...

Page 43

Pinout The pinout of XMEGA A3 is shown in I/O functionality, each pin may have several function. This will depend on which peripheral is enabled and connected to the actual pin. Only one of the alternate pin functions can ...

Page 44

Oscillators TOSCn XTALn 28.1.6 DEBUG/SYSTEM functions TEST PROG RESET PDI_CLK PDI_DATA TCK TDI TDO TMS 28.2 Alternate Pin Functions The tables below shows the main and alternate pin functions for all pins on each port. It also shows which ...

Page 45

Table 28-2. Port B - Alternate functions ADCB PORT B PIN # INTERRUPT POS PB5 11 SYNC ADC5 PB6 12 SYNC ADC6 PB7 13 SYNC ADC7 GND 14 VCC 15 Table 28-3. Port C - Alternate functions PORT C PIN ...

Page 46

Table 28-5. Port E - Alternate functions PORT E PIN # INTERRUPT TCE0 PE6 42 SYNC PE7 43 SYNC GND 44 VCC 45 Table 28-6. Port F - Alternate functions PORT F PIN # INTERRUPT TCF0 PF0 46 SYNC OC0A ...

Page 47

Electrical Characteristics - TBD 29.1 Absolute Maximum Ratings* Operating Temperature.................................. -55°C to +125°C Storage Temperature ..................................... -65°C to +150°C Voltage on any Pin with respect to Ground..-0. Maximum Operating Voltage ............................................ 3.6V DC Current per I/O Pin ...

Page 48

ADC Characteristics – TBD Table 29-1. ADC Characteristics Symbol Parameter Resolution Integral Non-Linearity (INL) Differential Non-Linearity (DNL) Gain Error Offset Error Conversion Time ADC Clock Frequency DC Supply Voltage Source Impedance Start-up time AVCC Analog Supply Voltage Table 29-2. ...

Page 49

DAC Characteristics – TBD Table 29-3. DAC Characteristics Symbol Parameter Resolution Integral Non-Linearity (INL) Differential Non-Linearity (DNL) Gain Error Offset Error Calibrated Gain/Offset Error Output Range Output Settling Time Output Capacitance Output Resistance Reference Input Voltage Reference Input Capacitance ...

Page 50

Typical Characteristics - TBD 8068A–AVR–02/08 ATxmega A3 50 ...

Page 51

Peripheral Module Address Map The address maps shows the base address for each peripheral and module in XMEGA A3. For complete register description and summary for each peripheral module, refer to the XMEGA A Manual. Base Address 0x0000 0x0010 ...

Page 52

Base Address 0x0AC0 0x0B00 0x0B40 0x0B90 0x0BA0 0x0BB0 0x0BC0 8068A–AVR–02/08 Name Description SPIE Serial Peripheral Interface on port E TCF0 Timer/Counter 0 on port F TCF1 Timer/Counter 1 on port F HIRESF High Resolution Extension on port F USARTF0 USART ...

Page 53

Packaging information 32.1 64A PIN 0°~7° L Notes: 1.This package conforms to JEDEC reference MS-026, Variation AEB. 2. Dimensions D1 and E1 do not include mold protrusion. Allowable protrusion is 0.25 mm per side. Dimensions D1 ...

Page 54

D Marked Pin TOP VIEW BOTTOM VIEW Note: 1. JEDEC Standard MO-220, (SAW Singulation) Fig. 1, VMMD. 2. Dimension and tolerance conform to ASMEY14.5M-1994. 2325 Orchard Parkway San Jose, CA ...

Page 55

Errata 33.1 All rev. No known errata. 8068A–AVR–02/08 ATxmega A3 55 ...

Page 56

Datasheet Revision History 34.1 8068A – 02/08 1. 8068A–AVR–02/08 Initial revision. ATxmega A3 56 ...

Page 57

Table of Contents Features ..................................................................................................... 1 Typical Applications ................................................................................ 1 1 Block Diagram/Pinout .............................................................................. 2 2 Ordering Information ............................................................................... 3 3 Disclaimer ................................................................................................. 4 4 Overview ................................................................................................... 4 5 Resources ................................................................................................. 4 5.1Recommended reading .............................................................................................4 6 AVR CPU ................................................................................................... 5 ...

Page 58

Power Management and Sleep Modes ................................................. 17 11.1Features ................................................................................................................17 11.2Overview ................................................................................................................17 11.3Sleep Modes ..........................................................................................................17 12 System Control and Reset .................................................................... 19 12.1Resetting the AVR .................................................................................................19 12.2Reset Sources .......................................................................................................19 12.3WDT - Watchdog Timer .........................................................................................20 13 PMIC - Programmable Multi-level Interrupt ...

Page 59

SPI - Serial Peripheral Interface ............................................................ 31 19.1Features ................................................................................................................31 19.2Overview ................................................................................................................31 20 USART ..................................................................................................... 32 20.1Features ................................................................................................................32 20.2Overview ................................................................................................................32 21 IRCOM - IR Communication Module ..................................................... 33 21.1Features ................................................................................................................33 21.2Overview ................................................................................................................33 22 Crypto Engine ......................................................................................... 34 22.1Features ...

Page 60

Pin Function Description ........................................................................43 28.2Alternate Pin Functions .........................................................................................44 29 Electrical Characteristics - TBD ............................................................ 47 29.1Absolute Maximum Ratings* .................................................................................47 29.2DC Characteristics .................................................................................................47 29.3ADC Characteristics – TBD ...................................................................................48 29.4DAC Characteristics – TBD ...................................................................................49 29.5Analog Comparator Characteristics – TBD ...........................................................49 30 ...

Page 61

ATxmega A3 v ...

Page 62

... 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 marks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. International Atmel Asia ...

Related keywords