Features • High-performance, Low-power 8/16-bit Atmel® AVR® XMEGATM Microcontroller • Non-volatile Program and Data Memories • • • • • – 64 KB - 256 KB of In-System Self-Programmable Flash – 4 KB - 8 KB Boot Code Section with Independent Lock Bits – 2 KB - 4 KB EEPROM – 4 KB - 16 KB Internal SRAM Peripheral Features – Four-channel DMA Controller with support for external requests – Eight-channel Event System – Seven 16-bit Timer/Counters Four Timer/Counters with 4 Output Compare or Input Capture channe
XMEGA A3 1. Ordering Information Flash E2 SRAM Speed (MHz) Power Supply ATxmega256A3-AU 256 KB + 8 KB 4 KB 16 KB 32 1.6 - 3.6V ATxmega192A3-AU 192 KB + 8 KB 2 KB 16 KB 32 1.6 - 3.6V ATxmega128A3-AU 128 KB + 8 KB 2 KB 8 KB 32 1.6 - 3.6V ATxmega64A3-AU 64 KB + 4 KB 2 KB 4 KB 32 1.6 - 3.6V ATxmega256A3-MH 256 KB + 8 KB 4 KB 16 KB 32 1.6 - 3.6V ATxmega192A3-MH 192 KB + 8 KB 2 KB 16 KB 32 1.6 - 3.6V ATxmega128A3-MH 128 KB + 8 KB 2 KB 8 KB 32 1.6 - 3.
XMEGA A3 2.
XMEGA A3 3. Overview The Atmel® AVR® XMEGA™ A3 is a family of low power, high performance and peripheral rich CMOS 8/16-bit microcontrollers based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the XMEGA A3 achieves throughputs approaching 1 Million Instructions Per Second (MIPS) per MHz 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.
XMEGA A3 3.1 Block Diagram Figure 3-1. XMEGA A3 Block Diagram PR[0..1] XTAL1 PORT R (2) XTAL2 Oscillator Circuits/ Clock Generation Watchdog Oscillator Real Time Counter Watchdog Timer DATA BUS PA[0..7] PORT A (8) Event System Controller ACA SRAM DMA Controller ADCA VCC Power Supervision POR/BOD & RESET Oscillator Control GND Sleep Controller RESET/ PDI_CLK PDI PDI_DATA AREFA BUS Controller VCC/10 Prog/Debug Controller JTAG Int. Ref.
XMEGA A3 4. Resources A comprehensive set of development tools, application notes and datasheets are available for download on http://www.atmel.com/avr. 4.1 Recommended reading • XMEGA Manual • XMEGA Application Notes This device data sheet only contains part specific information and a short description of each peripheral and module. The XMEGA Manual describes the modules and peripherals in depth. The XMEGA application notes contain example code and show applied use of the modules and peripherals.
XMEGA A3 6. AVR CPU 6.1 Features • 8/16-bit high performance AVR RISC Architecture • • • • • • • 6.
XMEGA A3 This concept enables instructions to be executed in every clock cycle. The program memory is In-System Re-programmable Flash memory. 6.3 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.
XMEGA A3 7. Memories 7.
XMEGA A3 7.3 In-System Programmable Flash Program Memory The XMEGA A3 devices contains On-chip In-System Programmable Flash memory for program storage, see Figure 7-1 on page 10. Since all AVR instructions are 16- or 32-bits wide, each Flash address location is 16 bits. The Program Flash memory space is divided into Application and Boot sections. Both sections have dedicated Lock Bits for setting restrictions on write or read/write operations.
XMEGA A3 7.4 Data Memory The Data Memory consist of the I/O Memory, EEPROM and SRAM memories, all within one linear address space, see Figure 7-2 on page 11. To simplify development, the memory map for all devices in the family is identical and with empty, reserved memory space for smaller devices. Figure 7-2.
XMEGA A3 7.4.1 I/O Memory All peripherals and modules are addressable through I/O memory locations in the data memory space. All I/O memory locations can be accessed by the Load (LD/LDS/LDD) and Store (ST/STS/STD) instructions, transferring data between the 32 general purpose registers in the CPU and the I/O Memory. The IN and OUT instructions can address I/O memory locations in the range 0x00 - 0x3F directly.
XMEGA A3 7.5 Production Signature Row The Production Signature Row is a separate memory section for factory programmed data. It contains calibration data for functions such as oscillators and analog modules. The production signature row also contains a device ID that identify each microcontroller device type, and a serial number that is unique for each manufactured device. The device ID for the available XMEGA A3 devices is shown in Table 7-1 on page 13.
XMEGA A3 7.7 Flash and EEPROM Page Size The Flash Program Memory and EEPROM data memory are organized in pages. The pages are word accessible for the Flash and byte accessible for the EEPROM. Table 7-2 on page 14 shows the Flash Program Memory organization. Flash write and erase operations are performed on one page at a time, while reading the Flash is done one byte at a time. For Flash access the Z-pointer (Z[m:n]) is used for addressing.
XMEGA A3 8. DMAC - Direct Memory Access Controller 8.1 Features • Allows High-speed data transfer • • • • • 8.
XMEGA A3 9. Event System 9.1 Features • • • • • • • • 9.
XMEGA A3 Figure 9-1. Event system block diagram. PORTx ClkSYS CPU ADCx RTC Event Routing Network DACx IRCOM ACx T/Cxn DMAC The Event Routing Network can directly connect together ADCs, DACs, Analog Comparators (ACx), I/O ports (PORTx), the Real-time Counter (RTC), Timer/Counters (T/C) and the IR Communication Module (IRCOM). Events can also be generated from software (CPU). All events from all peripherals are always routed into the Event Routing Network.
XMEGA A3 10. System Clock and Clock options 10.1 Features • Fast start-up time • Safe run-time clock switching • Internal Oscillators: • • • • • • 10.2 – 32 MHz run-time calibrated RC oscillator – 2 MHz run-time calibrated RC oscillator – 32.768 kHz calibrated RC oscillator – 32 kHz Ultra Low Power (ULP) oscillator External clock options – 0.4 - 16 MHz Crystal Oscillator – 32.
XMEGA A3 Figure 10-1. Clock system overview clkULP WDT/BOD 32 kHz ULP Internal Oscillator clkRTC RTC 32.768 kHz Calibrated Internal Oscillator PERIPHERALS ADC 2 MHz Run-Time Calibrated Internal Oscillator 32 MHz Run-time Calibrated Internal Oscillator DAC CLOCK CONTROL clkPER UNIT with PLL and Prescaler PORTS ... DMA INTERRUPT 32.768 KHz Crystal Oscillator EVSYS RAM 0.
XMEGA A3 10.3.3 32.768 kHz Crystal Oscillator The 32.768 kHz Crystal Oscillator is a low power driver for an external watch crystal. It can be used as system clock source or as asynchronous clock source for the Real Time Counter. 10.3.4 0.4 - 16 MHz Crystal Oscillator The 0.4 - 16 MHz Crystal Oscillator is a driver intended for driving both external resonators and crystals ranging from 400 kHz to 16 MHz. 10.3.
XMEGA A3 11. Power Management and Sleep Modes 11.1 Features • 5 sleep modes – Idle – Power-down – Power-save – Standby – Extended standby • Power Reduction registers to disable clocks to unused peripherals 11.2 Overview The XMEGA A3 provides various sleep modes tailored to reduce power consumption to a minimum. All sleep modes are available and can be entered from Active mode. In Active mode the CPU is executing application code. The application code decides when and which sleep mode to enter.
XMEGA A3 11.3.5 Extended Standby Mode Extended Standby mode is identical to Power-save mode with the exception that all enabled system clock sources are kept running while the CPU and Peripheral clocks are stopped. This reduces the wake-up time when external crystals or resonators are used.
XMEGA A3 12. System Control and Reset 12.1 Features • Multiple reset sources for safe operation and device reset – Power-On Reset – External Reset – Watchdog Reset The Watchdog Timer runs from separate, dedicated oscillator – Brown-Out Reset Accurate, programmable Brown-Out levels – PDI reset – Software reset • Asynchronous reset – No running clock in the device is required for reset • Reset status register 12.2 Resetting the AVR During reset, all I/O registers are set to their initial values.
XMEGA A3 12.3.6 Software reset The MCU can be reset by the CPU writing to a special I/O register through a timed sequence. 13. WDT - Watchdog Timer 13.1 Features • 11 selectable timeout periods, from 8 ms to 8s. • Two operation modes – Standard mode – Window mode • Runs from the 1 kHz output of the 32 kHz Ultra Low Power oscillator • Configuration lock to prevent unwanted changes 13.2 Overview The XMEGA A3 has a Watchdog Timer (WDT).
XMEGA A3 14. PMIC - Programmable Multi-level Interrupt Controller 14.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 (round-robin or fixed) – Non-Maskable Interrupts (NMI) • Interrupt vectors can be moved to the start of the Boot Section 14.
XMEGA A3 Table 14-1.
XMEGA A3 15. I/O Ports 15.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 • • • • • • • • • 15.
XMEGA A3 15.3.1 Push-pull Figure 15-1. I/O configuration - Totem-pole DIRn OUTn Pn INn 15.3.2 Pull-down Figure 15-2. I/O configuration - Totem-pole with pull-down (on input) DIRn OUTn Pn INn 15.3.3 Pull-up Figure 15-3. I/O configuration - Totem-pole with pull-up (on input) DIRn OUTn Pn INn 15.3.4 Bus-keeper The bus-keeper’s weak output produces the same logical level as the last output level. It acts as a pull-up if the last level was ‘1’, and pull-down if the last level was ‘0’.
XMEGA A3 Figure 15-4. I/O configuration - Totem-pole with bus-keeper DIRn OUTn Pn INn 15.3.5 Others Figure 15-5. Output configuration - Wired-OR with optional pull-down OUTn Pn INn Figure 15-6.
XMEGA A3 15.4 Input sensing • • • • Sense both edges Sense rising edges Sense falling edges Sense low level Input sensing is synchronous or asynchronous depending on the enabled clock for the ports, and the configuration is shown in Figure 15-7 on page 30. Figure 15-7.
XMEGA A3 16. T/C - 16-bits Timer/Counter with PWM 16.1 Features • Seven 16-bit Timer/Counters • • • • • • • • • • • • 16.
XMEGA A3 Figure 16-1.
XMEGA A3 17. AWEX - Advanced Waveform Extension 17.1 Features • • • • • • • • 17.
XMEGA A3 18. Hi-Res - High Resolution Extension 18.1 Features • Increases Waveform Generator resolution by 2-bits (4x) • Supports Frequency, single- and dual-slope PWM operation • Supports the AWEX when this is enabled and used for the same Timer/Counter 18.2 Overview The Hi-Resolution (Hi-Res) Extension is able to increase the resolution of the waveform generation output by a factor of 4.
XMEGA A3 19. RTC - Real-Time Counter 19.1 Features • • • • • • 19.2 16-bit Timer Flexible Tick resolution ranging from 1 Hz to 32.768 kHz One Compare register One Period register Clear timer on Overflow or Compare Match Overflow or Compare Match event and interrupt generation Overview The XMEGA A3 includes a 16-bit Real-time Counter (RTC). The RTC can be clocked from an accurate 32.768 kHz Crystal Oscillator, the 32.
XMEGA A3 20. TWI - Two Wire Interface 20.1 Features • • • • • • • • • • • • 20.
XMEGA A3 21. SPI - Serial Peripheral Interface 21.1 Features • • • • • • • • • 21.
XMEGA A3 22. USART 22.1 Features • • • • • • • • • • • • • • • 22.
XMEGA A3 23. IRCOM - IR Communication Module 23.1 Features • Pulse modulation/demodulation for infrared communication • Compatible to IrDA 1.4 physical for baud rates up to 115.2 kbps • Selectable pulse modulation scheme – 3/16 of baud rate period – Fixed pulse period, 8-bit programmable – Pulse modulation disabled • Built in filtering • Can be connected to and used by one USART at a time 23.
XMEGA A3 24. Crypto Engine 24.1 Features • Data Encryption Standard (DES) CPU instruction • Advanced Encryption Standard (AES) Crypto module • DES Instruction – Encryption and Decryption – Single-cycle DES instruction – Encryption/Decryption in 16 clock cycles per 8-byte block • AES Crypto Module – Encryption and Decryption – Support 128-bit keys – Support XOR data load mode to the State memory for Cipher Block Chaining – Encryption/Decryption in 375 clock cycles per 16-byte block 24.
XMEGA A3 25. ADC - 12-bit Analog to Digital Converter 25.1 Features • • • • • • • • • • • • • 25.
XMEGA A3 Figure 25-1. ADC overview Channel A MUX selection Channel C MUX selection Channel D MUX selection Configuration Reference selection Pin inputs Channel A Register Channel B Register Pin inputs Internal inputs Channel B MUX selection ADC Channel C Register 1-64 X Event Trigger Channel D Register Each ADC has four MUX selection registers with a corresponding result register. This means that four channels can be sampled within 1.
XMEGA A3 26. DAC - 12-bit Digital to Analog Converter 26.1 Features • • • • • • • • 26.2 One DAC with 12-bit resolution Up to 1 Msps conversion rate for each DAC Flexible conversion range Multiple trigger sources 1 continuous output or 2 Sample and Hold (S/H) outputs for each DAC Built-in offset and gain calibration High drive capabilities Low Power Mode Overview The XMEGA A3 features one two-channel, 12-bit, 1 Msps DACs with built-in offset and gain calibration, see Figure 26-1 on page 43.
XMEGA A3 27. AC - Analog Comparator 27.1 Features • Four Analog Comparators • Selectable Power vs. Speed • Selectable hysteresis – 0, 20 mV, 50 mV • Analog Comparator output available on pin • Flexible Input Selection – All pins on the port – Output from the DAC – Bandgap reference voltage. – Voltage scaler that can perform a 64-level scaling of the internal VCC voltage.
XMEGA A3 Figure 27-1.
XMEGA A3 27.3 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 27-1 on page 45.
XMEGA A3 28. OCD - On-chip Debug 28.
XMEGA A3 29. Program and Debug Interfaces 29.1 Features • • • • • 29.2 PDI - Program and Debug Interface (Atmel proprietary 2-pin interface) JTAG Interface (IEEE std. 1149.1 compliant) Boundary-scan capabilities according to the IEEE Std. 1149.1 (JTAG) Access to the OCD system Programming of Flash, EEPROM, Fuses and Lock Bits Overview The programming and debug facilities are accessed through the JTAG and PDI physical interfaces.
XMEGA A3 30. Pinout and Pin Functions The pinout of XMEGA A3 is shown ”” on page 2. In addition to general 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 be used at time. 30.1 Alternate Pin Function Description The tables below show the notation for all pin functions available and describe its function. 30.1.1 30.1.2 30.1.3 30.1.
XMEGA A3 30.1.5 30.1.6 30.1.
XMEGA A3 30.2 Alternate Pin Functions The tables below show the main and alternate pin functions for all pins on each port. They also show which peripheral that makes use of or enables the alternate pin function. Table 30-1.
XMEGA A3 Table 30-3. PORT C Port C - Alternate functions PIN # INTERRUPT TCC0 AWEXC PC0 16 SYNC OC0A OC0ALS PC1 17 SYNC OC0B OC0AHS XCK0 PC2 18 SYNC/ASYNC OC0C OC0BLS RXD0 PC3 19 SYNC OC0D OC0BHS PC4 20 SYNC OC0CLS OC1A PC5 21 SYNC OC0CHS OC1B PC6 22 SYNC PC7 23 SYNC GND 24 VCC 25 Table 30-4.
XMEGA A3 Port F - Alternate functions Table 30-6. PORT F PIN # INTERRUPT TCF0 PF0 46 SYNC OC0A PF1 47 SYNC OC0B XCK0 PF2 48 SYNC/ASYNC OC0C RXD0 PF3 49 SYNC OC0D TXD0 PF4 50 SYNC PF5 51 SYNC PF6 54 SYNC PF7 55 SYNC GND 52 VCC 53 Table 30-7. PORT R USARTF0 Port R- Alternate functions PIN # INTERRUPT PROGR XTAL PDI 56 PDI_DATA RESET 57 PDI_CLOCK PRO 58 SYNC XTAL2 PR1 59 SYNC XTAL1 Table 30-8.
XMEGA A3 Bit Number 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 Signal Name PJ7.Bidir PJ7.Control PJ6.Bidir PJ6.Control PJ5.Bidir PJ5.Control PJ4.Bidir PJ4.Control PJ3.Bidir PJ3.Control PJ2.Bidir PJ2.Control PJ1.Bidir PJ1.Control PJ0.Bidir PJ0.Control PH7.Bidir PH7.Control PH6.Bidir PH6.Control PH5.Bidir PH5.Control PH4.Bidir PH4.
XMEGA A3 Bit Number 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Signal Name PD7.Bidir PD7.Control PD6.Bidir PD6.Control PD5.Bidir PD5.Control PD4.Bidir PD4.Control PD3.Bidir PD3.Control PD2.Bidir PD2.Control PD1.Bidir PD1.Control PD0.Bidir PD0.Control PC7.Bidir PC7.Control PC6.Bidir PC6.Control PC5.Bidir PC5.Control PC4.Bidir PC4.Control PC3.Bidir PC3.Control PC2.Bidir PC2.
XMEGA A3 31. Peripheral Module Address Map The address maps show 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.
XMEGA A3 32.
XMEGA A3 Mnemonics Operands Description CALL k call Subroutine PC RET Subroutine Return PC RETI Interrupt Return CPSE Rd,Rr Compare, Skip if Equal CP Rd,Rr Compare CPC Rd,Rr Compare with Carry CPI Rd,K Compare with Immediate Operation Flags #Clocks k None 3 / 4(1) STACK None 4 / 5(1) PC STACK I 4 / 5(1) if (Rd = Rr) PC PC + 2 or 3 None 1/2/3 Rd - Rr Z,C,N,V,S,H 1 Rd - Rr - C Z,C,N,V,S,H 1 Rd - K Z,C,N,V,S,H 1 SBRC Rr, b Skip if Bit in Register
XMEGA A3 Mnemonics Operands Description Flags #Clocks LD Rd, -Y Load Indirect and Pre-Decrement Y Rd Y-1 (Y) None 2(1)(2) LDD Rd, Y+q Load Indirect with Displacement Rd (Y + q) None 2(1)(2) LD Rd, Z Load Indirect Rd (Z) None 1(1)(2) LD Rd, Z+ Load Indirect and Post-Increment Rd Z (Z), Z+1 None 1(1)(2) LD Rd, -Z Load Indirect and Pre-Decrement Z Rd Z - 1, (Z) None 2(1)(2) LDD Rd, Z+q Load Indirect with Displacement Rd (Z + q) None 2(1)(2)
XMEGA A3 Mnemonics Operands Description Operation ROL Rd Rotate Left Through Carry ROR Rd ASR Flags #Clocks Rd(0) Rd(n+1) C C, Rd(n), Rd(7) Z,C,N,V,H 1 Rotate Right Through Carry Rd(7) Rd(n) C C, Rd(n+1), Rd(0) Z,C,N,V 1 Rd Arithmetic Shift Right Rd(n) Rd(n+1), n=0..6 Z,C,N,V 1 SWAP Rd Swap Nibbles Rd(3..0) Rd(7..
XMEGA A3 33. Packaging information 33.1 64A PIN 1 B e PIN 1 IDENTIFIER E1 E D1 D C 0°~7° A1 A2 A L COMMON DIMENSIONS (Unit of measure = mm) 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.25mm per side. Dimensions D1 and E1 are maximum plastic body size dimensions including mold mismatch. 3. Lead coplanarity is 0.10mm maximum. SYMBOL MIN NOM MAX A – – 1.20 A1 0.05 – 0.
XMEGA A3 33.2 64M2 D Marked pin# 1 I D E C SEATING PLANE A1 TOP VIEW A3 A K 0.08 C L Pin #1 Corner D2 1 2 3 SIDE VIEW Pin #1 Triangle Option A COMMON DIMENSIONS (Unit of measure = mm) E2 Option B Pin #1 Chamfer (C 0.30) SYMBOL MIN NOM MAX A 0.80 0.90 1.00 A1 – 0.02 0.05 A3 K Option C b e Pin #1 Notch (0.20 R) BOTTOM VIEW 0.20 REF b 0.18 0.25 0.30 D 8.90 9.00 9.10 D2 7.50 7.65 7.80 E 8.90 9.00 9.10 E2 7.50 7.65 7.80 e Notes: 1.
XMEGA A3 34. Electrical Characteristics All typical values are measured at T = 25C unless other temperature condition is given. All minimum and maximum values are valid across operating temperature and voltage unless other conditions are given. 34.1 Absolute Maximum Ratings* Operating Temperature.................................. -55C to +125C *NOTICE: Storage Temperature ..................................... -65C to +150C Voltage on any Pin with respect to Ground..-0.5V to VCC+0.
XMEGA A3 Table 34-1. Symbol Current Consumption (Continued) Parameter Condition Power-save mode RTC 1 kHz from Low Power 32kHz TOSC, T = 25°C ICC Reset Current Consumption Min Typ Max VCC = 1.8V 0.5 4 VCC = 3.0V 0.7 4 RTC from Low Power 32kHz TOSC VCC = 3.0V 1.16 without Reset pull-up resistor current VCC = 3.0V 1300 Units µA Module current consumption(2) RC32M RC32M w/DFLL 460 Internal 32.768kHz oscillator as DFLL source RC2M RC2M w/DFLL 101 Internal 32.
XMEGA A3 34.3 Operating Voltage and Frequency Table 34-2. Symbol ClkCPU Operating voltage and frequency Parameter CPU clock frequency Condition Min Typ Max VCC = 1.6V 0 12 VCC = 1.8V 0 12 VCC = 2.7V 0 32 VCC = 3.6V 0 32 Units MHz The maximum CPU clock frequency of the Atmel® AVR® XMEGA A3 devices is depending on V CC . As shown in Figure 34-1 on page 65 the Frequency vs. V CC curve is linear between 1.8V < VCC < 2.7V. Figure 34-1. Maximum Frequency vs.
XMEGA A3 34.4 Flash and EEPROM Memory Characteristics Table 34-3. Symbol Endurance and Data Retention Parameter Condition Min 25°C 10K 85°C 10K 25°C 100 55°C 25 25°C 80K 85°C 30K 25°C 100 55°C 25 Typ Max Write/Erase cycles Units Cycle Flash Data retention Year Write/Erase cycles Cycle EEPROM Data retention Table 34-4.
XMEGA A3 34.5 ADC Characteristics Table 34-5.
XMEGA A3 34.6 DAC Characteristics Table 34-7. Symbol DAC Characteristics Parameter Condition INL Integral Non-Linearity VCC = 1.6-3.6V DNL Differential Non-Linearity VCC = 1.6-3.6V Fclk Min VREF = Ext. ref 5 VREF = Ext. ref <±1 Max VREF= AVCC External reference voltage 1.1 Reference input impedance 1000 ksps AVCC-0.6 V M >10 Max output voltage Rload=100k AVCC*0.98 Min output voltage Rload=100k 0.015 Offset factory calibration accuracy Continues mode, VCC=3.
XMEGA A3 34.9 Brownout Detection Characteristics Table 34-10. Brownout Detection Characteristics(1) Symbol Parameter Condition BOD level 0 falling Vcc Min Typ Max 1.62 1.63 1.7 BOD level 1 falling Vcc 1.9 BOD level 2 falling Vcc 2.17 BOD level 3 falling Vcc 2.43 BOD level 4 falling Vcc 2.68 BOD level 5 falling Vcc 2.96 BOD level 6 falling Vcc 3.22 BOD level 7 falling Vcc 3.49 Units V Hysteresis Note: BOD level 0-5 1 % 1.
XMEGA A3 34.11 POR Characteristics Table 34-12. Power-on Reset Characteristics Symbol Parameter VPOT- POR threshold voltage falling VCC VPOT+ POR threshold voltage rising VCC Condition Min Typ VCC falls faster than 1V/ms 0.4 0.8 VCC falls at 1V/ms or slower 0.8 1.3 Max Units V 1.3 1.59 Typ Max Units 90 1000 ns 34.12 Reset Characteristics Table 34-13. Reset Characteristics Symbol Parameter Condition Min Minimum reset pulse width Reset threshold voltage VCC = 2.7 - 3.6V 0.
XMEGA A3 Table 34-18. External 32.768kHz Crystal Oscillator and TOSC characteristics Symbol SF Parameter Condition Min Capacitive load matched to crystal specification Safety factor Typ Max 3 Recommended crystal equivalent series resistance (ESR) Crystal load capacitance 6.5pF 60 ESR/R1 Crystal load capacitance 9.0pF 35 Input capacitance between TOSC pins Normal mode 1.7 CIN_TOSC Low power mode 2.2 Note: Units k pF 1. See Figure 34-2 on page 71 for definition Figure 34-2.
XMEGA A3 35. Typical Characteristics 35.1 Active Supply Current Figure 35-1. Active Supply Current vs. Frequency fSYS = 0 - 1.0 MHz External clock, T = 25°C ICC [uA] 900 800 3.3 V 700 3.0 V 600 2.7 V 500 2.2 V 400 1.8 V 300 200 100 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Frequency [MHz] Figure 35-2. Active Supply Current vs. Frequency fSYS = 1 - 32 MHz External clock, T = 25°C ICC [mA] 20 18 3.3 V 16 3.0 V 14 2.7 V 12 10 8 2.2 V 6 4 1.
XMEGA A3 Figure 35-3. Active Supply Current vs. Vcc fSYS = 1.0 MHz External Clock 85 °C 25 °C -40 °C 1000 900 800 ICC [uA] 700 600 500 400 300 200 100 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 VCC [V] Figure 35-4. Active Supply Current vs. VCC fSYS = 32.768 kHz internal RC 140 -40 °C 25 °C 85 °C 120 ICC [uA] 100 80 60 40 20 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.
XMEGA A3 Figure 35-5. Active Supply Current vs. Vcc fSYS = 2.0 MHz internal RC 2000 -40 °C 25 °C 85 °C 1800 1600 ICC [uA] 1400 1200 1000 800 600 400 200 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 VCC [V] Figure 35-6. Active Supply Current vs. Vcc fSYS = 32 MHz internal RC prescaled to 8 MHz 8 -40 °C 25 °C 85 °C 7 6 ICC [mA] 5 4 3 2 1 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.
XMEGA A3 Figure 35-7. Active Supply Current vs. Vcc fSYS = 32 MHz internal RC 25 -40 °C 25 °C 85 °C ICC [mA] 20 15 10 5 0 2.7 2.8 2.9 3 3.1 3.2 3.3 3.4 3.5 3.6 VCC [V] 35.2 Idle Supply Current Figure 35-8. Idle Supply Current vs. Frequency fSYS = 0 - 1.0 MHz, T = 25°C 250 3.3 V 3.0 V 200 ICC [uA] 2.7 V 150 2.2 V 1.8 V 100 50 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.
XMEGA A3 Figure 35-9. Idle Supply Current vs. Frequency fSYS = 1 - 32 MHz, T = 25°C 8 3.3 V 7 3.0 V 6 2.7 V ICC [mA] 5 4 3 2.2 V 2 1.8 V 1 0 0 4 8 12 16 20 24 28 32 Frequency [MHz] Figure 35-10. Idle Supply Current vs. Vcc fSYS = 1.0 MHz External Clock 300 85 °C 25 °C -40 °C 250 ICC [uA] 200 150 100 50 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.
XMEGA A3 Figure 35-11. Idle Supply Current vs. Vcc fSYS = 32.768 kHz internal RC 40 85 °C -40 °C 25 °C 35 30 ICC [uA] 25 20 15 10 5 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 VCC [V] Figure 35-12. Idle Supply Current vs. Vcc fSYS = 2.0 MHz internal RC 700 -40 °C 25 °C 85 °C 600 ICC [uA] 500 400 300 200 100 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.
XMEGA A3 Figure 35-13. Idle Supply Current vs. Vcc fSYS = 32 MHz internal RC prescaled to 8 MHz 3.5 -40 °C 25 °C 85 °C 3.0 ICC [mA] 2.5 2.0 1.5 1.0 0.5 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 VCC [V] Figure 35-14. Idle Supply Current vs. Vcc fSYS = 32 MHz internal RC 10 -40 °C 25 °C 85 °C ICC [mA] 8 6 4 2 0 2.7 2.8 2.9 3 3.1 3.2 3.3 3.4 3.5 3.
XMEGA A3 35.3 Power-down Supply Current Figure 35-15. Power-down Supply Current vs. Temperature 2 3.3 V 3.0 V 2.7 V 2.2 V 1.8 V 1.8 1.6 ICC [uA] 1.4 1.2 1 0.8 0.6 0.4 0.2 0 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 Temperature [°C] Figure 35-16. Power-down Supply Current vs. Temperature With WDT and sampled BOD enabled. 3.3 V 3.0 V 2.7 V 2.2 V 1.8 V 3 2.5 ICC [uA] 2 1.5 1 0.
XMEGA A3 35.4 Power-save Supply Current Figure 35-17. Power-save Supply Current vs. Temperature With WDT, sampled BOD and RTC from ULP enabled 3 3.3 V 3.0 V 2.7 V 1.8 V 2.2 V 2.5 ICC [uA] 2 1.5 1 0.5 0 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 Temperature [°C] 35.5 Pin Pull-up Figure 35-18. Reset Pull-up Resistor Current vs. Reset Pin Voltage VCC = 1.8V 100 IRESET [uA] 80 60 40 20 -40 °C 25 °C 85 °C 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.
XMEGA A3 Figure 35-19. Reset Pull-up Resistor Current vs. Reset Pin Voltage VCC = 3.0V 160 140 IRESET [uA] 120 100 80 60 40 -40 °C 25 °C 85 °C 20 0 0 0.5 1 1.5 2 2.5 3 VRESET [V] Figure 35-20. Reset Pull-up Resistor Current vs. Reset Pin Voltage VCC = 3.3V 180 160 140 IRESET [uA] 120 100 80 60 40 -40 °C 25 °C 85 °C 20 0 0 0.5 1 1.5 2 2.
XMEGA A3 35.6 Pin Output Voltage vs. Sink/Source Current Figure 35-21. I/O Pin Output Voltage vs. Source Current Vcc = 1.8V 2 -40 °C 25 °C 85 °C 1.8 1.6 VPIN [V] 1.4 1.2 1 0.8 0.6 0.4 0.2 0 -12 -10 -8 -6 -4 -2 0 IPIN [mA] Figure 35-22. I/O Pin Output Voltage vs. Source Current Vcc = 3.0V 3.5 -40 °C 25 °C 85 °C 3 VPIN [V] 2.5 2 1.5 1 0.
XMEGA A3 Figure 35-23. I/O Pin Output Voltage vs. Source Current Vcc = 3.3V 3.5 -40 °C 25 °C 85 °C 3 VPIN [V] 2.5 2 1.5 1 0.5 0 -20 -18 -16 -14 -12 -10 -8 -6 -4 -2 0 IPIN [mA] Figure 35-24. I/O Pin Output Voltage vs. Sink Current Vcc = 1.8V 85°C 25°C 1.8 1.6 1.4 VPIN [V] 1.2 -40 °C 1 0.8 0.6 0.4 0.
XMEGA A3 Figure 35-25. I/O Pin Output Voltage vs. Sink Current Vcc = 3.0V 0.7 85 °C 0.6 25 °C -40 °C VPIN [V] 0.5 0.4 0.3 0.2 0.1 0 0 2 4 6 8 10 12 14 16 18 20 IPIN [mA] Figure 35-26. I/O Pin Output Voltage vs. Sink Current Vcc = 3.3V VPIN [V] 0.7 0.6 85 °C 0.5 25 °C -40 °C 0.4 0.3 0.2 0.
XMEGA A3 35.7 Pin Thresholds and Hysteresis Figure 35-27. I/O Pin Input Threshold Voltage vs. VCC VIH - I/O Pin Read as “1” 2.5 -40 °C 25 °C 85 °C Vthreshold [V] 2 1.5 1 0.5 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 VCC [V] Figure 35-28. I/O Pin Input Threshold Voltage vs. VCC VIL - I/O Pin Read as “0” 1.8 85 °C 25 °C -40 °C 1.6 1.4 Vthreshold [V] 1.2 1 0.8 0.6 0.4 0.2 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.
XMEGA A3 Figure 35-29. I/O Pin Input Hysteresis vs. VCC 0.7 0.6 Vthreshold [V] 0.5 85 °C 25 °C -40 °C 0.4 0.3 0.2 0.1 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 VCC [V] Figure 35-30. Reset Input Threshold Voltage vs. VCC VIH - I/O Pin Read as “1” 1.8 -40 °C 25 °C 85 °C 1.6 VTHRESHOLD [V] 1.4 1.2 1 0.8 0.6 0.4 0.2 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.
XMEGA A3 Figure 35-31. Reset Input Threshold Voltage vs. VCC VIL - I/O Pin Read as “0” 1.8 -40 °C 25 °C 85 °C 1.6 VTHRESHOLD [V] 1.4 1.2 1 0.8 0.6 0.4 0.2 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 VCC [V] 35.8 Bod Thresholds Figure 35-32. BOD Thresholds vs. Temperature BOD Level = 1.6V VBOT [V] 1.67 1.66 Rising Vcc 1.65 Falling Vcc 1.64 1.63 1.62 1.
XMEGA A3 Figure 35-33. BOD Thresholds vs. Temperature BOD Level = 2.9V 3.06 3.04 Rising Vcc 3.02 VBOT [V] 3 2.98 Falling Vcc 2.96 2.94 2.92 2.9 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 Temperature [°C] 35.9 35.9.1 Oscillators and Wake-up Time Internal 32.768 kHz Oscillator Figure 35-34. Internal 32.768 kHz Oscillator Calibration Step Size T = -40 to 85C, VCC = 3V 0.80 % Step size: f [kHz] 0.65 % 0.50 % 0.35 % 0.20 % 0.05 % 0 32 64 96 128 160 192 224 256 RC32KCAL[7.
XMEGA A3 35.9.2 Internal 2 MHz Oscillator Figure 35-35. Internal 2 MHz Oscillator CALA Calibration Step Size T = -40 to 85C, VCC = 3V 0.50 % 0.40 % Step size: f [MHz] 0.30 % 0.20 % 0.10 % 0.00 % -0.10 % -0.20 % -0.30 % 0 16 32 48 64 80 96 112 128 56 64 DFLLRC2MCALA Figure 35-36. Internal 2 MHz Oscillator CALB Calibration Step Size T = -40 to 85C, VCC = 3V 3.00 % Step size: f [MHz] 2.50 % 2.00 % 1.50 % 1.00 % 0.50 % 0.
XMEGA A3 35.9.3 Internal 32 MHZ Oscillator Figure 35-37. Internal 32 MHz Oscillator CALA Calibration Step Size T = -40 to 85C, VCC = 3V 0.60 % 0.50 % Step size: f [MHz] 0.40 % 0.30 % 0.20 % 0.10 % 0.00 % -0.10 % -0.20 % 0 16 32 48 64 80 96 112 128 56 64 DFLLRC32MCALA Figure 35-38. Internal 32 MHz Oscillator CALB Calibration Step Size T = -40 to 85C, VCC = 3V 3.00 % Step size: f [MHz] 2.50 % 2.00 % 1.50 % 1.00 % 0.50 % 0.
XMEGA A3 35.10 Module current consumption Figure 35-39. AC current consumption vs. Vcc Low-power Mode Module current consumption [uA] 120 85 °C 25 °C 100 -40 °C 80 60 40 20 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 VCC [V] Figure 35-40. Power-up current consumption vs. Vcc -40 °C 25 °C 85 °C 700 600 ICC [uA] 500 400 300 200 100 0 0.4 0.6 0.8 1 1.2 1.4 1.
XMEGA A3 35.11 Reset Pulsewidth Figure 35-41. Minimum Reset Pulse Width vs. Vcc 120 100 85 °C 25 °C -40 °C tRST [ns] 80 60 40 20 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 VCC [V] 35.12 PDI Speed Figure 35-42. PDI Speed vs. Vcc 35 25 °C 30 fMAX [MHz] 25 20 15 10 5 0 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.
XMEGA A3 36. Errata 36.1 36.1.1 ATxmega256A3 rev. E • • • • • • • • • • • • • • • • • • • • • • • • • • Bandgap voltage input for the ACs can not be changed when used for both ACs simultaneously VCC voltage scaler for AC is non-linear ADC has increased INL error for some operating conditions ADC gain stage output range is limited to 2.4 V ADC Event on compare match non-functional Bandgap measurement with the ADC is non-functional when VCC is below 2.
XMEGA A3 Figure 36-1. Analog Comparator Voltage Scaler vs. Scalefac T = 25°C 3.5 3.3 V 3 2.7 V VSCALE [V] 2.5 2 1.8 V 1.5 1 0.5 0 0 5 10 15 20 25 30 35 40 45 50 55 60 65 SCALEFAC Problem fix/Workaround Use external voltage input for the analog comparator if accurate voltage levels are needed 3. ADC has increased INL error for some operating conditions Some ADC configurations or operating condition will result in increased INL error.
XMEGA A3 Problem fix/Workaround Keep the amplified voltage output from the ADC gain stage below 2.4 V in order to get a correct result, or keep ADC voltage reference below 2.4 V. 5. ADC Event on compare match non-functional ADC signalling event will be given at every conversion complete even if Interrupt mode (INTMODE) is set to BELOW or ABOVE. Problem fix/Workaround Enable and use interrupt on compare match when using the compare function. 6.
XMEGA A3 Problem fix/Workaround Do not set the BOD level higher than VCC even if the BOD is not used. 11. DAC is nonlinear and inaccurate when reference is above 2.4V or VCC - 0.6V Using the DAC with a reference voltage above 2.4V or VCC - 0.6V will give inaccurate output when converting codes that give below 0.75V output: – ±10 LSB for continuous mode – ±200 LSB for Sample and Hold mode Problem fix/Workaround None. 12.
XMEGA A3 16. Pending full asynchronous pin change interrupts will not wake the device Any full asynchronous pin-change Interrupt from pin 2, on any port, that is pending when the sleep instruction is executed, will be ignored until the device is woken from another source or the source triggers again. This applies when entering all sleep modes where the System Clock is stopped. Problem fix/Workaround None. 17.
XMEGA A3 22. TWI Transmit collision flag not cleared on repeated start The TWI transmit collision flag should be automatically cleared on start and repeated start, but is only cleared on start. Problem fix/Workaround Clear the flag in software after address interrupt. 23.
XMEGA A3 26. WDR instruction inside closed window will not issue reset When a WDR instruction is execute within one ULP clock cycle after updating the window control register, the counter can be cleared without giving a system reset. Problem fix/Workaround Wait at least one ULP clock cycle before executing a WDR instruction.
XMEGA A3 36.1.2 rev. B • • • • • • • • • • • • • • • • • • • • • • • • • • • Bandgap voltage input for the ACs can not be changed when used for both ACs simultaneously VCC voltage scaler for AC is non-linear ADC has increased INL error for some operating conditions ADC gain stage output range is limited to 2.4 V ADC Event on compare match non-functional Bandgap measurement with the ADC is non-functional when VCC is below 2.
XMEGA A3 Figure 36-2. Analog Comparator Voltage Scaler vs. Scalefac T = 25°C 3.5 3.3 V 3 2.7 V VSCALE [V] 2.5 2 1.8 V 1.5 1 0.5 0 0 5 10 15 20 25 30 35 40 45 50 55 60 65 SCALEFAC Problem fix/Workaround Use external voltage input for the analog comparator if accurate voltage levels are needed 3. ADC has increased INL error for some operating conditions Some ADC configurations or operating condition will result in increased INL error.
XMEGA A3 Problem fix/Workaround Keep the amplified voltage output from the ADC gain stage below 2.4 V in order to get a correct result, or keep ADC voltage reference below 2.4 V. 5. ADC Event on compare match non-functional ADC signalling event will be given at every conversion complete even if Interrupt mode (INTMODE) is set to BELOW or ABOVE. Problem fix/Workaround Enable and use interrupt on compare match when using the compare function. 6.
XMEGA A3 Problem fix/Workaround Do not set the BOD level higher than VCC even if the BOD is not used. 11. DAC is nonlinear and inaccurate when reference is above 2.4V or VCC - 0.6V Using the DAC with a reference voltage above 2.4V or VCC - 0.6V will give inaccurate output when converting codes that give below 0.75V output: – ±10 LSB for continuous mode – ±200 LSB for Sample and Hold mode Problem fix/Workaround None. 12.
XMEGA A3 16. Pending full asynchronous pin change interrupts will not wake the device Any full asynchronous pin-change Interrupt from pin 2, on any port, that is pending when the sleep instruction is executed, will be ignored until the device is woken from another source or the source triggers again. This applies when entering all sleep modes where the System Clock is stopped. Problem fix/Workaround None. 17.
XMEGA A3 Problem fix/Workaround Wait at least one prescaled RTC clock cycle before reading the RTC CNT value. 22. Pending asynchronous RTC-interrupts will not wake up device Asynchronous Interrupts from the Real-Time-Counter that is pending when the sleep instruction is executed, will be ignored until the device is woken from another source or the source triggers again. Problem fix/Workaround None. 23.
XMEGA A3 Problem fix/Workaround None. 26. TWI Data Interrupt Flag erroneously read as set When issuing the TWI slave response command CMD=0b11, it takes 1 Peripheral Clock cycle to clear the data interrupt flag (DIF). A read of DIF directly after issuing the command will show the DIF still set. Problem fix/Workaround Add one NOP instruction before checking DIF. 27.
XMEGA A3 36.1.3 rev. A • • • • • • • • • • • Bandgap voltage input for the ACs cannot be changed when used for both ACs simultaneously ADC gain stage output range is limited to 2.4V Sampled BOD in Active mode will cause noise when bandgap is used as reference Flash Power Reduction Mode can not be enabled when entering sleep mode JTAG enable does not override Analog Comparator B output Bandgap measurement with the ADC is non-functional when VCC is below 2.
XMEGA A3 4. Flash Power Reduction Mode can not be enabled when entering sleep mode If Flash Power Reduction Mode is enabled when a deep sleep mode, the device will only wake up on every fourth wake-up request. If Flash Power Reduction Mode is enabled when entering Idle sleep mode, the wake-up time will vary with up to 16 CPU clock cycles. Problem fix/Workaround Disable Flash Power Reduction mode before entering sleep mode. 5.
XMEGA A3 10. Operating Frequency and Voltage Limitation To ensure correct operation, there is a limit on operating frequency and voltage. Figure 36-3 on page 109 shows the safe operating area. Figure 36-3. Operating Frequnecy and Voltage Limitation MHz 30 15 Safe operating area 2.4 3.6 V Problem fix/Workaround None, avoid using the device outside these frequnecy and voltage limitations. 11.
XMEGA A3 36.2 36.2.1 ATxmega192A3, ATxmega128A3, ATxmega64A3 rev. E • • • • • • • • • • • • • • • • • • • • • • • • • • Bandgap voltage input for the ACs can not be changed when used for both ACs simultaneously VCC voltage scaler for AC is non-linear ADC has increased INL error for some operating conditions ADC gain stage output range is limited to 2.4 V ADC Event on compare match non-functional Bandgap measurement with the ADC is non-functional when VCC is below 2.
XMEGA A3 Figure 36-4. Analog Comparator Voltage Scaler vs. Scalefac T = 25°C 3.5 3.3 V 3 2.7 V VSCALE [V] 2.5 2 1.8 V 1.5 1 0.5 0 0 5 10 15 20 25 30 35 40 45 50 55 60 65 SCALEFAC Problem fix/Workaround Use external voltage input for the analog comparator if accurate voltage levels are needed 3. ADC has increased INL error for some operating conditions Some ADC configurations or operating condition will result in increased INL error.
XMEGA A3 Problem fix/Workaround Keep the amplified voltage output from the ADC gain stage below 2.4 V in order to get a correct result, or keep ADC voltage reference below 2.4 V. 5. ADC Event on compare match non-functional ADC signalling event will be given at every conversion complete even if Interrupt mode (INTMODE) is set to BELOW or ABOVE. Problem fix/Workaround Enable and use interrupt on compare match when using the compare function. 6.
XMEGA A3 Problem fix/Workaround Do not set the BOD level higher than VCC even if the BOD is not used. 11. DAC is nonlinear and inaccurate when reference is above 2.4V or VCC - 0.6V Using the DAC with a reference voltage above 2.4V or VCC - 0.6V will give inaccurate output when converting codes that give below 0.75V output: – ±10 LSB for continuous mode – ±200 LSB for Sample and Hold mode Problem fix/Workaround None. 12.
XMEGA A3 16. Pending full asynchronous pin change interrupts will not wake the device Any full asynchronous pin-change Interrupt from pin 2, on any port, that is pending when the sleep instruction is executed, will be ignored until the device is woken from another source or the source triggers again. This applies when entering all sleep modes where the System Clock is stopped. Problem fix/Workaround None. 17.
XMEGA A3 22. TWI Transmit collision flag not cleared on repeated start The TWI transmit collision flag should be automatically cleared on start and repeated start, but is only cleared on start. Problem fix/Workaround Clear the flag in software after address interrupt. 23.
XMEGA A3 26. WDR instruction inside closed window will not issue reset When a WDR instruction is execute within one ULP clock cycle after updating the window control register, the counter can be cleared without giving a system reset. Problem fix/Workaround Wait at least one ULP clock cycle before executing a WDR instruction.
XMEGA A3 36.2.2 rev. B • • • • • • • • • • • • • • • • • • • • • • • • • • • Bandgap voltage input for the ACs can not be changed when used for both ACs simultaneously VCC voltage scaler for AC is non-linear ADC has increased INL error for some operating conditions ADC gain stage output range is limited to 2.4 V ADC Event on compare match non-functional Bandgap measurement with the ADC is non-functional when VCC is below 2.
XMEGA A3 Figure 36-5. Analog Comparator Voltage Scaler vs. Scalefac T = 25°C 3.5 3.3 V 3 2.7 V VSCALE [V] 2.5 2 1.8 V 1.5 1 0.5 0 0 5 10 15 20 25 30 35 40 45 50 55 60 65 SCALEFAC Problem fix/Workaround Use external voltage input for the analog comparator if accurate voltage levels are needed 3. ADC has increased INL error for some operating conditions Some ADC configurations or operating condition will result in increased INL error.
XMEGA A3 Problem fix/Workaround Keep the amplified voltage output from the ADC gain stage below 2.4 V in order to get a correct result, or keep ADC voltage reference below 2.4 V. 5. ADC Event on compare match non-functional ADC signalling event will be given at every conversion complete even if Interrupt mode (INTMODE) is set to BELOW or ABOVE. Problem fix/Workaround Enable and use interrupt on compare match when using the compare function. 6.
XMEGA A3 Problem fix/Workaround Do not set the BOD level higher than VCC even if the BOD is not used. 11. DAC is nonlinear and inaccurate when reference is above 2.4V or VCC - 0.6V Using the DAC with a reference voltage above 2.4V or VCC - 0.6V will give inaccurate output when converting codes that give below 0.75V output: – ±10 LSB for continuous mode – ±200 LSB for Sample and Hold mode Problem fix/Workaround None. 12.
XMEGA A3 16. Pending full asynchronous pin change interrupts will not wake the device Any full asynchronous pin-change Interrupt from pin 2, on any port, that is pending when the sleep instruction is executed, will be ignored until the device is woken from another source or the source triggers again. This applies when entering all sleep modes where the System Clock is stopped. Problem fix/Workaround None. 17.
XMEGA A3 Problem fix/Workaround Wait at least one prescaled RTC clock cycle before reading the RTC CNT value. 22. Pending asynchronous RTC-interrupts will not wake up device Asynchronous Interrupts from the Real-Time-Counter that is pending when the sleep instruction is executed, will be ignored until the device is woken from another source or the source triggers again. Problem fix/Workaround None. 23.
XMEGA A3 Problem fix/Workaround None. 26. TWI Data Interrupt Flag erroneously read as set When issuing the TWI slave response command CMD=0b11, it takes 1 Peripheral Clock cycle to clear the data interrupt flag (DIF). A read of DIF directly after issuing the command will show the DIF still set. Problem fix/Workaround Add one NOP instruction before checking DIF. 27.
XMEGA A3 37. Datasheet Revision History Please note that the referring page numbers in this section are referred to this document. The referring revision in this section are referring to the document revision. 37.1 37.2 37.3 37.4 8068U – 06/13 1. Not recommended for new designs - Use XMEGA A3U series. 1. Datasheet status changed to complete: Preliminary removed from the front page. 2. Updated all tables in the “Electrical Characteristics” . 3. Updated ”Packaging information” on page 61. 4.
XMEGA A3 37.5 37.6 37.7 37.8 8. Updated ”DAC Characteristics” on page 68. Removed DC output impedence. 9. Updated Figure 35-6 on page 74. Replaced the figure by a correct one. 10. Fixed typo in “Errata” section. 1. Added ”PDI Speed” on page 92. 1. Updated the device pin-out Figure 2-1 on page 3. PDI_CLK and PDI_DATA renamed only PDI. 2. Removed JTAG Reset from the datasheet. 3. Updated ”DAC - 12-bit Digital to Analog Converter” on page 43. DAC uses internal 1.0 voltage. 4.
XMEGA A3 37.9 8068M – 09/09 1. Updated ”Electrical Characteristics” on page 63. 2. Added ”Flash and EEPROM Memory Characteristics” on page 66. 3. Added Errata for ”ATxmega192A3, ATxmega128A3, ATxmega64A3” on page 110. 1. Updated ”Ordering Information” on page 2. 2. Updated ”Features” on page 39. 3. Updated ”Overview” on page 43. 4. Updated ”Overview” on page 48. 5. Added ”Electrical Characteristics” on page 63. 6. Added ”Typical Characteristics” on page 72. 7.
XMEGA A3 37.15 8068G – 09/08 1. Updated ”Features” on page 1. 2. Updated ”Ordering Information” on page 2. 3. Updated ”Features” on page 9 by removing “External Memory...”. 4. Updated Figure 7-1 on page 10 and Figure 7-2 on page 11. 5. Updated Table 7-2 on page 14 and Table 7-3 on page 14. 6. Updated ”Features” on page 41 and ”Overview” on page 41. 7 Removed “Interrupt Vector Summary” section from datasheet. 1. Changed Figure 2-1’s title to “Block diagram and pinout.” 2.
XMEGA A3 5. Replaced Figure 25-1 on page 42 by a correct one. 6. Updated “Features” and ”Overview” on page 43. 7. Updated all tables in section ”Alternate Pin Functions” on page 51. 1. Updated ”Features” on page 1. 2. Updated ”” on page 2 and ”Pinout and Pin Functions” on page 49. 3. Updated ”Ordering Information” on page 2. 4. Updated ”Overview” on page 4, included the XMEGA A3 explanation text on page 6. 5. Added XMEGA A3 Block Diagram, Figure 3-1 on page 5. 6.
XMEGA A3 Table of Contents Features ..................................................................................................... 1 Typical Applications ................................................................................ 1 1 Ordering Information ............................................................................... 2 2 Pinout/Block Diagram .............................................................................. 3 3 Overview ...........................................
XMEGA A3 10.2Overview ...............................................................................................................18 10.3Clock Options ........................................................................................................19 11 Power Management and Sleep Modes ................................................. 21 11.1Features ................................................................................................................21 11.2Overview ....................
XMEGA A3 19 RTC - Real-Time Counter ...................................................................... 35 19.1Features ................................................................................................................35 19.2Overview ...............................................................................................................35 20 TWI - Two Wire Interface ....................................................................... 36 20.1Features ..............................
XMEGA A3 29.1Features ................................................................................................................48 29.2Overview ...............................................................................................................48 29.3IEEE 1149.1 (JTAG) Boundary-scan ....................................................................48 30 Pinout and Pin Functions ...................................................................... 49 30.
35.9Oscillators and Wake-up Time ..............................................................................88 35.10Module current consumption ...............................................................................91 35.11Reset Pulsewidth .................................................................................................92 35.12PDI Speed ...........................................................................................................92 36 Errata ..........................
Headquarters International Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Atmel Asia Unit 1-5 & 16, 19/F BEA Tower, Millennium City 5 418 Kwun Tong Road Kwun Tong, Kowloon Hong Kong Tel: (852) 2245-6100 Fax: (852) 2722-1369 Atmel Europe Le Krebs 8, Rue Jean-Pierre Timbaud BP 309 78054 Saint-Quentin-enYvelines Cedex France Tel: (33) 1-30-60-70-00 Fax: (33) 1-30-60-71-11 Atmel Japan 9F, Tonetsu Shinkawa Bldg.