ATxmega128B1 Atmel Corporation, ATxmega128B1 Datasheet

no-image

ATxmega128B1

Manufacturer Part Number
ATxmega128B1
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATxmega128B1

Flash (kbytes)
128 Kbytes
Pin Count
100
Max. Operating Frequency
32 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
53
Ext Interrupts
53
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
3
Twi (i2c)
1
Uart
2
Segment Lcd
160
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
16
Adc Resolution (bits)
12
Adc Speed (ksps)
2000
Analog Comparators
4
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
AES/DES
Sram (kbytes)
8
Eeprom (bytes)
2048
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
Yes
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.6 to 3.6
Operating Voltage (vcc)
1.6 to 3.6
Fpu
No
Mpu / Mmu
no / no
Timers
3
Output Compare Channels
10
Input Capture Channels
10
Pwm Channels
10
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATxmega128B1-AU
Manufacturer:
TI
Quantity:
90
Part Number:
ATxmega128B1-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATxmega128B1-AUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATxmega128B1-CUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATxmega128B1-U
Manufacturer:
FUJITSU
Quantity:
632
Features
High-performance, low-power Atmel
Nonvolatile program and data memories
Peripheral Features
Special microcontroller features
I/O and Packages
Operating Voltage
Operating frequency
– 64K - 128KBytes of in-system self-programmable flash
– 4K - 8KBytes boot section
– 2K Bytes EEPROM
– 4K - 4KBytes internal SRAM
– Two-channel DMA controller
– Four-channel event system
– Three 16-bit timer/counters
– One USB device interface
– Two USARTs with IrDA support for one USART
– AES and DES crypto engine
– CRC-16 (CRC-CCITT) and CRC-32 (IEEE 802.3) generator
– One two-wire interface with dual address match (I
– One serial peripheral interface (SPI)
– 16-bit Real Time Counter (RTC) with separate oscillator
– Liquid Crystal Display
– Two eight-channel, 12-bit, 300 thousand SPS Analog to Digital Converters
– Four Analog Comparators with window compare function, and current source
– External interrupts on all General Purpose I/O pins
– Programmable watchdog timer with separate on-chip ultra low power oscillator
– QTouch
– 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 interfaces
– 53 Programmable I/O pins
– 100-lead TQFP
– 1.6 – 3.6V
– 0 – 12MHz from 1.6V
– 0 – 32MHz from 2.7V
feature
Two timer/counters with 4 output compare or input capture channels
One timer/counter with 2 output compare or input capture channels
High resolution extensions one timer/counter
Advanced waveform extension (AWeX) on one timer/counter
Split mode on two timer/counters
USB 2.0 full speed (12Mbps) and low speed (1.5Mbps) device compliant
32 Endpoints with full configuration flexibility
Up to 4x40 segment driver
Built in contrast control
ASCII character mapping
Flexible SWAP of segment and common terminals buses
Capacitive touch buttons, sliders and wheels
JTAG (IEEE 1149.1 Compliant) interface, including boundary scan
PDI (Program and Debug Interface)
®
library support
®
AVR
®
XMEGA
®
8/16-bit Microcontroller
2
C and SMBus compatible)
8/16-bit Atmel
XMEGA B1
Microcontroller
ATxmega128B1
ATxmega64B1
Preliminary
8330B–AVR–10/11

Related parts for ATxmega128B1

ATxmega128B1 Summary of contents

Page 1

... Programmable I/O pins – 100-lead TQFP • Operating Voltage – 1.6 – 3.6V • Operating frequency – 0 – 12MHz from 1.6V – 0 – 32MHz from 2.7V ® ® ® AVR XMEGA 8/16-bit Microcontroller 2 C and SMBus compatible) 8/16-bit Atmel XMEGA B1 Microcontroller ATxmega128B1 ATxmega64B1 Preliminary 8330B–AVR–10/11 ...

Page 2

... Sensor control • • White goods Optical 1. Ordering Information Ordering Code Flash (Bytes) EEPROM (Bytes) SRAM (Bytes) ATxmega128B1-AU 128K + 8K ATxmega64B1-AU 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 3

Pinout/Block Diagram Figure 2-1. Block diagram and pinout VCC 1 PC0 2 PC1 3 PC2 4 PC3 5 PC4 6 PC5 7 PC6 8 PC7 9 GND 10 VCC 11 PD0 12 PD1 13 PD2 14 PDI / RESET ...

Page 4

Overview The Atmel peripheral-rich CMOS 8/16-bit microcontrollers based on the AVR enhanced RISC architecture. By executing instructions in a single clock cycle, the Atmel AVR XMEGA B1 device achieves throughputs CPU approaching one million instructions per second (MIPS) per ...

Page 5

RISC CPU with in-system, self-programmable flash, the Atmel XMEGA pow- erful microcontroller family that provides a highly flexible and cost effective solution for many embedded applications. The atmel AVR XMEGA B1 devices are supported with ...

Page 6

Block Diagram Figure 3-1. XMEGA B1 Block Diagram PA[0..7] PORT A (8) ACA ADCA AREFA VCC/10 Int. Refs. Tempref AREFB ADCB ACB PB[0..7]/ PORT B (8) JTAG 8330B–AVR–10/11 PR[0..1] Power Ground XTAL1 / Digital function TOSC1 Analog function / ...

Page 7

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 • XMEGA Application Notes This device data sheet only contains part specific information with a short description ...

Page 8

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

Page 9

The arithmetic logic unit (ALU) supports arithmetic and logic operations between registers or between a constant and a register. Single-register operations can also be executed in the ALU. After an arithmetic operation, the status register is updated to reflect information ...

Page 10

Hardware Multiplier The multiplier is capable of multiplying two 8-bit numbers into a 16-bit result. The hardware mul- tiplier supports different variations of signed and unsigned integer and fractional numbers: •Multiplication of unsigned integers •Multiplication of signed integers •Multiplication ...

Page 11

During interrupts or subroutine calls, the return address is automatically pushed on the stack. The return address can be two or three bytes, depending on program memory size of the device. For devices with 128KB or less of program memory, ...

Page 12

Memories 7.1 Features • Flash program memory – One linear address space – In-system programmable – Self-programming and boot loader support – Application section for application code – Application table section for application code or data storage – Boot ...

Page 13

Flash Program Memory The Atmel for program storage. The flash memory can be accessed for read and write from an external pro- grammer through the PDI or from application software running in the device. All AVR CPU instructions are ...

Page 14

... The production signature row cannot be written or erased, but it can be read from application software and external programmers. Table 7-1. ATxmega64B1 ATxmega128B1 7.3.5 User Signature Row The user signature row is a separate memory section that is fully accessible (read and write) from application software and external programmers one flash page in size, and is meant for static user parameter storage, such as calibration data, custom serial number, identification numbers, random number seeds, etc ...

Page 15

... EEPROM page load (write) takes one cycle, and three cycles are required for read. For burst read, new data are available every second cycle. Refer to the instruction sum- mary for more details on instructions and instruction timing. 8330B–AVR–10/11 Data Memory Map (Hexadecimal address) ATxmega128B1 Byte Address 0 I/O Registers (4K) ...

Page 16

... Table 7-3. Devices EEPROM Size ATxmega64B1 2K ATxmega128B1 2K 8330B–AVR–10/11 shows the Flash Program Memory organization. Flash write and erase Number of words and pages in the flash. Page Size FWORD ...

Page 17

DMAC – Direct Memory Access Controller 8.1 Features • Allows high speed data transfers with minimal CPU intervention – from data memory to data memory – from data memory to peripheral – from peripheral to data memory – from ...

Page 18

Event System 9.1 Features • System for direct peripheral-to-peripheral communication and signaling • Peripherals can directly send, receive, and react to peripheral events – CPU and DMA controller independent operation – 100% predictable signal timing – Short and guaranteed ...

Page 19

Figure 9-1. The event routing network consists of four software-configurable multiplexers that control how events are routed and used. These are called event channels, and allow for up to four parallel event configurations and routings. The maximum routing latency is ...

Page 20

System Clock and Clock options 10.1 Features • Fast start-up time • Safe run-time clock switching • Internal oscillators: – 32MHz run-time calibrated oscillator – 2MHz run-time calibrated oscillator – 32.768kHz calibrated oscillator – 32kHz ultra low power (ULP) ...

Page 21

Figure 10-1. The Clock system, clock sources and clock distribution. Brown-out Detector 10.3 Clock Sources The clock sources are divided in two main groups: internal oscillators and external clock sources. Most of the clock sources can be directly enabled and ...

Page 22

Ultra Low Power Internal Oscillator This oscillator provides an approximate 32kHz clock. The 32kHz ultra low power (ULP) internal oscillator is a very low power clock source, and it is not designed for high accuracy.The oscillator employs a ...

Page 23

PLL with 1x-31x Multiplication Factor The built-in phase locked loop (PLL) can be used to generate a high-frequency system clock. The PLL has a user-selectable multiplication factor of from 1 to 31. In combination with the pres- calers, this ...

Page 24

Power Management and Sleep Modes 11.1 Features • Power management for adjusting power consumption and functions • Five sleep modes – Idle – Power down – Power save – Standby – Extended standby • Power reduction register to disable ...

Page 25

Power-down Mode In power-down mode, all clocks, including the real-time counter clock source, are stopped. This allows operation only of asynchronous modules that do not require a running clock. The only interrupts that can wake up the MCU are ...

Page 26

System Control and Reset 12.1 Features • Reset the microcontroller and set it to initial state when a reset source goes active • Multiple reset sources that cover different situations – Power-on reset – External reset – Watchdog reset ...

Page 27

Reset Sources 12.4.1 Power-on Reset A power-on reset (POR) is generated by an on-chip detection circuit. The POR is activated when the V CC sequence. The POR is also activated to power down the device properly when the V ...

Page 28

WDT – Watchdog Timer 13.1 Features • Issues a device reset if the timer is not reset before its timeout period • Asynchronous operation from dedicated oscillator • 1kHz output of the 32kHz ultra low power oscillator • 11 ...

Page 29

Interrupts and Programmable Multilevel Interrupt Controller 14.1 Features • Short and predictable interrupt response time • Separate interrupt configuration and vector address for each interrupt • Programmable multilevel interrupt controller – Interrupt prioritizing according to level and vector address ...

Page 30

Table 14-1. Reset and Interrupt Vectors. (Continued) Program Address (Base Address) Source 0x014 RTC_INT_base 0x018 TWIC_INT_base 0x01C TCC0_INT_base 0x028 TCC1_INT_base 0x030 SPIC_INT_vect 0x032 USARTC0_INT_base 0x03E USB_INT_base 0x046 LCD_INT_base 0x048 AES_INT_vect 0x04A NVM_INT_base 0x04E PORTB_INT_base 0x052 ACB_INT_base 0x058 ADCB_INT_base 0x060 PORTD_INT_base ...

Page 31

I/O Ports 15.1 Features • 53 General purpose input and output pins with individual configuration • Output driver with configurable driver and pull settings: – Totem-pole – Wired-AND – Wired-OR – Bus-keeper – Inverted I/O • Input with synchronous ...

Page 32

Output Driver All port pins (Pn) have programmable output configuration. The port pins also have configurable slew rate limitation to reduce electromagnetic emission. 15.3.1 Push-pull Figure 15-1. I/O configuration - Totem-pole 15.3.2 Pull-down Figure 15-2. I/O configuration - Totem-pole ...

Page 33

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’. Figure 15-4. I/O configuration - ...

Page 34

Input sensing Input sensing is synchronous or asynchronous depending on the enabled clock for the ports, and the configuration is shown in Figure 15-7. Input sensing system overview INVERTED I/O When a pin is configured with inverted I/O, the ...

Page 35

T/C – 16-bit Timer/Counter Type 0 and 1 16.1 Features • Three 16-bit timer/counters – Two timer/counters of type 0 – One timer/counters of type 1 • 32-bit Timer/Counter support by cascading two timer/counters • four compare ...

Page 36

A timer/counter can be clocked and timed from the peripheral clock with optional prescaling or from the event system. The event system can also be used for direction control and capture trig- ger or to synchronize operations. There are two ...

Page 37

TC2 –16-bit Timer/Counter Type 2 17.1 Features • A system of two eight-bit timer/counters – Low-byte timer/counter – High-byte timer/counter • Eight compare channels – Four compare channels for the low-byte timer/counter – Four compare channels for the high-byte ...

Page 38

AWeX – Advanced Waveform Extension 18.1 Features • Waveform output with complementary output from each compare channel • Four dead-time insertion (DTI) units – 8-bit resolution – Separate high and low side dead-time setting – Double buffered dead time ...

Page 39

Hi-Res – High Resolution Extension 19.1 Features • Increases waveform generator resolution bits) • Supports frequency, single-slope PWM, and dual-slope PWM generation • Supports the AWeX when this is used for the same timer/counter 19.2 ...

Page 40

RTC – 16-bit Real-Time Counter 20.1 Features • 16-bit resolution • Selectable clock source – 32.768kHz external crystal – External clock – 32.768kHz internal oscillator – 32kHz internal ULP oscillator • Programmable 10-bit clock prescaling • One compare register ...

Page 41

USB – Universal Serial Bus Interface 21.1 Features • One USB 2.0 full speed (12Mbps) and low speed (1.5Mbps) device compliant interface • Integrated on-chip USB transceiver, no external components needed • 16 endpoint addresses with full endpoint flexibility ...

Page 42

The USB module has built-in direct memory access (DMA), and will read/write data from/to the SRAM when a USB transaction takes place. To maximize throughput, an endpoint address can be configured for ping-pong operation. When done, ...

Page 43

TWI – Two Wire Interface 22.1 Features • One two-wire interface peripheral • Bidirectional, two-wire communication interface – Phillips I – System Management Bus (SMBus) compatible • Bus master and slave operation supported – Slave operation – Single bus ...

Page 44

It is possible to disable the TWI drivers in the device, and enable a four-wire digital interface for connecting to an external TWI bus driver. This can be used for applications where the device operates from a different V PORTC ...

Page 45

SPI – Serial Peripheral Interface 23.1 Features • One SPI peripheral • Full-duplex, three-wire synchronous data transfer • Master or slave operation • Lsb first or msb first data transfer • Eight programmable bit rates • Interrupt flag at ...

Page 46

USART 24.1 Features • Two Identical USART peripherals • Full-duplex operation • Asynchronous or synchronous operation – Synchronous clock rates up to 1/2 of the device clock frequency – Asynchronous clock rates up to 1/8 of the device clock ...

Page 47

PORTC and PORTE each has one USART. Notation of these peripherals are USARTC0 and USARTE0 respectively. 8330B–AVR–10/11 XMEGA B1 47 ...

Page 48

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

Page 49

AES and DES Crypto Engine 26.1 Features • Data Encryption Standard (DES) CPU instruction • Advanced Encryption Standard (AES) crypto module • DES Instruction – Encryption and decryption – DES supported – Encryption/decryption in 16 CPU clock cycles per ...

Page 50

CRC – Cyclic Redundancy Check Generator 27.1 Features • Cyclic redundancy check (CRC) generation and checking for – Communication data – Program or data in flash memory – Data in SRAM and I/O memory space • Integrated with flash ...

Page 51

LCD - Liquid Crystal Display Controller 28.1 Features • Display capacity segment and common terminals • Supports GPIO's • Shadow display memory gives full freedom in segment update • ASCII ...

Page 52

ADC – 12-bit Analog to Digital Converter 29.1 Features • Two Analog to Digital Converters (ADCs) • 12-bit resolution • 300 thousand samples per second – Down to 2.3µs conversion time with 8-bit resolution – Down to ...

Page 53

Figure 29-1. ADC overview ADC0 • • • ADC15 Internal signals ADC0 • • • ADC7 Internal 1.00V Internal VCC/1.6V Internal VCC/2 The ADC may be configured for 8- or 12-bit result, reducing the minimum conversion time (prop- agation delay) ...

Page 54

AC – Analog Comparator 30.1 Features • Four Analog Comparators (AC) • Selectable hysteresis – No – Small – Large • Analog comparator output available on pin • Flexible input selection – All pins on the port – Bandgap ...

Page 55

Figure 30-1. Analog comparator overview Pin Input Pin Input Voltage Scaler Bandgap Pin Input Pin Input The window function is realized by connecting the external inputs of the two analog comparators in a pair as shown in Figure 30-2. Analog ...

Page 56

Programming and Debugging 31.1 Features • Programming – External programming through PDI or JTAG interfaces – Boot loader support for programming through any communication interface • Debugging – Nonintrusive, real-time, on-chip debug system – No software or hardware resources ...

Page 57

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

Page 58

Communication functions SCL SDA SCLIN SCLOUT SDAIN SDAOUT XCKn RXDn TXDn SS MOSI MISO SCK D- D+ 32.1.7 Oscillators, Clock and Event TOSCn XTALn CLKOUT EVOUT RTCOUT 32.1.8 Debug/System functions RESET PDI_CLK PDI_DATA TCK TDI TDO TMS 8330B–AVR–10/11 Serial ...

Page 59

Alternate Pin Functions The tables below show the primary/default function for each pin on a port in the first column, the pin number in the second column, and then all alternate pin functions in the remaining columns. The head ...

Page 60

Table 32-3. Port C - Alternate functions PORT C PIN # INTERRUPT TCC0 GND 100 VCC 1 PC0 2 SYNC OC0A PC1 3 SYNC OC0B PC2 4 SYNC/ASYNC OC0C PC3 5 SYNC OC0D PC4 6 SYNC PC5 7 SYNC PC6 ...

Page 61

Table 32-7. LCD (1)(2) (1) LCD PIN # INTERRUPT GND 27 VCC 28 SEG39 29 SYNC SEG38 30 SYNC SEG37 31 SYNC/ASYNC SEG36 32 SYNC SEG35 33 SYNC SEG34 34 SYNC SEG33 35 SYNC SEG32 36 SYNC SEG31 37 SYNC ...

Page 62

Table 32-7. LCD (1)(2) (1) LCD PIN # INTERRUPT GND 69 VCC 70 BIAS1 71 BIAS2 72 VLCD 73 CAPL 74 CAPH 75 COM0 76 COM1 77 COM2 78 COM3 79 Notes: 1. Pin mapping of all Segment terminals (SEGn) ...

Page 63

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

Page 64

Instruction Set Summary Mnemonics Operands Description ADD Rd, Rr Add without Carry ADC Rd, Rr Add with Carry ADIW Rd, K Add Immediate to Word SUB Rd, Rr Subtract without Carry SUBI Rd, K Subtract Immediate SBC Rd, Rr ...

Page 65

Mnemonics Operands Description CALL k call Subroutine RET Subroutine Return 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 SBRC Rr, b Skip if Bit in Register ...

Page 66

Mnemonics Operands Description LD Rd, -Y Load Indirect and Pre-Decrement LDD Rd, Y+q Load Indirect with Displacement LD Rd, Z Load Indirect LD Rd, Z+ Load Indirect and Post-Increment LD Rd, -Z Load Indirect and Pre-Decrement LDD Rd, Z+q Load ...

Page 67

Mnemonics Operands Description LAT Z, Rd Load and Toggle RAM location LSL Rd Logical Shift Left LSR Rd Logical Shift Right ROL Rd Rotate Left Through Carry ROR Rd Rotate Right Through Carry ASR Rd Arithmetic Shift Right SWAP Rd ...

Page 68

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

Page 69

Electrical Characteristics All typical values are measured 25°C unless other temperature condition is given. All min- imum and maximum values are valid across operating temperature and voltage unless other conditions are given. 36.1 Absolute Maximum Ratings ...

Page 70

The maximum System clock frequency of the Atmel shown in CC 1.8V < V Figure 36-1. Maximum Frequency vs. Vcc 8330B–AVR–10/11 Figure 36-1 on page 70 < 2.7V. CC MHz 32 Safe Operating Area 12 1.6 1.8 ...

Page 71

DC Characteristics Table 36-4. Current Consumption for Active and sleep modes Symbol Parameter Condition 32kHz, Ext. Clk 1MHz, Ext. Clk Active Power (1) consumption 2MHz, Ext. Clk 32MHz, Ext. Clk 32kHz, Ext. Clk 1MHz, Ext. Clk Idle Power (1) ...

Page 72

Table 36-4. Current Consumption for Active and sleep modes (Continued) Symbol Parameter Condition RTC on ULP clock, WDT, sampled BOD and LCD enabled, and all pixels ON 25°C RTC on 1.024kHz low power 32.768kHz TOSC, LCD enabled and ...

Page 73

Table 36-5. Current Consumption for modules and peripherals Symbol Parameter Condition ULP oscillator 32.768kHz int. oscillator 2MHz int. oscillator DFLL enabled with 32.768kHz int. osc. as reference 32MHz int. oscillator DFLL enabled with 32.768kHz int. osc. as reference PLL Multiplication ...

Page 74

Table 36-5. Current Consumption for modules and peripherals (Continued) Symbol Parameter Condition 16kSPS ADC VREF = Ext ref DMA 615Kbps between I/O registers and SRAM Timer/Counter USART Rx and Tx enabled, 9600 BAUD Flash memory and EEPROM ...

Page 75

I/O Pin Characteristics The I/O pins complies with the JEDEC LVTTL and LVCSMOS specification and the high- and low level input and output voltage limits reflect or exceed this specification. Table 36-7. I/O Pin Characteristics Symbol Parameter (1) I ...

Page 76

Liquid Crystal Display Characteristics Table 36-8. Liquid Crystal Display Characteristics Symbol Parameter SEG Segment Terminal Pins COM Common Terminal Pins f LCD Frame Frequency Frame C Flying Capacitor Flying Contrast Contrast Adjustement V LCD BIAS2 LCD Regulated Voltages BIAS1 ...

Page 77

Table 36-10. Clock and timing. (Continued) Symbol Parameter f Sample rate ADC Sampling Time Conversion time (latency) Start-up time ADC settling time Table 36-11. Accuracy characteristics. Symbol Parameter RES Resolution RES Resolution RES Resolution (1) INL Integral non-linearity (1) DNL ...

Page 78

Table 36-11. Accuracy characteristics. (Continued) Symbol Parameter Gain Error Gain Error Noise Notes: 1. Maximum numbers are based on characterisation and not tested in production, and valid for 5% to 95% input voltage range. 2. Unless otherwise noted all linearity, ...

Page 79

Analog Comparator Characteristics Table 36-13. Analog Comparator characteristics. Symbol Parameter V Input Offset Voltage off I Input Leakage Current lk Input voltage range AC startup time V Hysteresis, None hys1 V Hysteresis, Small hys2 V Hysteresis, Large hys3 t ...

Page 80

Brownout Detection Characteristics Table 36-15. Brownout Detection Characteristics Symbol Parameter BOD level 0 falling Vcc BOD level 1 falling Vcc BOD level 2 falling Vcc BOD level 3 falling Vcc BOD level 4 falling Vcc BOD level 5 falling ...

Page 81

Flash and EEPROM Memory Characteristics Table 36-18. Endurance and Data Retention Symbol Parameter Flash EEPROM Table 36-19. Programming time Symbol Parameter Chip Erase Flash EEPROM Notes: 1. Programming is timed from the 2MHz internal oscillator. 2. EEPROM is not ...

Page 82

Calibrated 2MHz RC Internal Oscillator characteristics Table 36-21. Calibrated 2MHz Internal Oscillator characteristics Symbol Parameter Frequency range Factory calibrated frequency Factory calibration accuracy User calibration accuracy DFLL calibration stepsize 36.14.3 Calibrated and tunable 32MHz Internal Oscillator characteristics Table 36-22. ...

Page 83

External Clock Characteristics Figure 36-3. External Clock Drive Waveform Table 36-25. External Clock used as System Clock without prescaling Symbol Parameter (1) 1/t Clock Frequency CK t Clock Period CK t Clock High Time CH t Clock Low Time ...

Page 84

Table 36-26. External Clock with prescaler Symbol Parameter (2) 1/t Clock Frequency CK t Clock Period CK t Clock High Time CH t Clock Low Time CL t Rise Time (for maximum frequency Fall Time (for maximum frequency) ...

Page 85

Symbol Parameter (1) Negative impedance R Q Parasitic capacitance C XTAL1 Parasitic capacitance C XTAL2 Parasitic capacitance load C LOAD Note: 1. Numbers for negative impedance are not tested but guaranteed from design and characterization. 8330B–AVR–10/11 Condition 0.4MHz resonator, CL=100pF ...

Page 86

External 32.768kHz crystal oscillator and TOSC characteristics Table 36-28. External 32.768kHz crystal oscillator and TOSC characteristics Symbol Parameter Recommended crystal equivalent ESR/R1 series resistance (ESR) C Input capacitance between TOSC pins IN_TOSC Recommended Safety factor Long term Jitter (SIT) ...

Page 87

SPI characteristics Figure 36-5. SPI interface requirements in master mode (CPOL = 0) (CPOL = 1) (Data Input) (Data Output) Figure 36-6. SPI timing requirements in slave mode (CPOL = 0) (CPOL = 1) (Data Input) (Data Output) 8330B–AVR–10/11 ...

Page 88

Table 36-29. SPI Timing characteristics and requirements Symbol Parameter t SCK Period SCK t SCK high/low width SCKW t SCK Rise time SCKR t SCK Fall time SCKF t MISO setup to SCK MIS t MISO hold after SCK MIH ...

Page 89

Two-Wire Interface Characteristics Table 2-1 describes the requirements for devices connected to the Two Wire Serial Bus. The XMEGA Two-Wire Interface meets or exceeds these requirements under the noted conditions. Timing symbols refer to Figure 36-7. Two-Wire Interface Bus ...

Page 90

Table 36-30. Two Wire Serial Bus Characteristics (Continued) Symbol Parameter t Data hold time HD;DAT t Data setup time SU;DAT t Setup time for STOP condition SU;STO Bus free time between a STOP and START t BUF condition Notes: 1. ...

Page 91

Typical Characteristics 37.1 Active Supply Current Figure 37-1. Active Supply Current vs. Frequency 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 Figure 37-2. Active Supply Current vs. Frequency ...

Page 92

Figure 37-3. Active Supply Current vs. Vcc 1.6 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0 8330B–AVR–10/ 2.0MHz External Clock SYS 1.4 1.6 1.8 2 2.2 2.5 XMEGA B1 2.7 3 3.2 3.4 3.6 Vcc (V) 3.8 92 ...

Page 93

Idle Supply Current Figure 37-4. Idle Supply Current vs. Frequency 0.50 0.45 0.40 0.35 0.30 0.25 0.20 0.15 0.10 0.05 0 Figure 37-5. Idle Supply Current vs. Frequency 8330B–AVR–10/11 f ...

Page 94

Figure 37-6. Idle Supply Current vs. Vcc 1.6 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0 8330B–AVR–10/ 2.0MHz External Clock SYS 1.4 1.6 1.8 2 2.2 2.5 XMEGA B1 2.7 3 3.2 3.4 3.6 Vcc [V] 3.8 94 ...

Page 95

Power-down Supply Current Figure 37-7. Power-down Supply Current vs. Vcc 3 2.5 2 1.5 1 0.5 0 Figure 37-8. Power-down Supply Current vs. Vcc 4 3.5 3 2.5 2 1.5 1 0.5 0 8330B–AVR–10/11 All functions disabled -40 25 ...

Page 96

Pin Pull-up Figure 37-9. Reset and I/O Pull-up Resistor Current vs. Reset Pin Voltage Figure 37-10. Reset and I/O Pull-up Resistor Current vs. Reset Pin Voltage 140 120 100 8330B–AVR–10/11 ...

Page 97

Figure 37-11. Reset and I/O Pull-up Resistor Current vs. Reset Pin Voltage 160 140 120 100 Figure 37-12. External Reset Pull-up Resistor vs. Vcc 8330B–AVR–10/ 3.3V CC ...

Page 98

Pin Output Voltage vs. Sink/Source Current Figure 37-13. I/O Pin Output Voltage vs. Source Current 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2 0 Figure 37-14. I/O Pin Output Voltage vs. Source Current 2.5 1.5 0.5 8330B–AVR–10/11 VOH, ...

Page 99

Figure 37-15. I/O Pin Output Voltage vs. Source Current 3.5 2.5 1.5 0.5 Figure 37-16. I/O Pin Output Voltage vs. Sink Current 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 8330B–AVR–10/11 VOH 25°C, Vcc = ...

Page 100

Figure 37-17. I/O Pin Output Voltage vs. Sink Current 0.6 0.5 0.4 0.3 0.2 0.1 0 Figure 37-18. I/O Pin Output Voltage vs. Sink Current 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 8330B–AVR–10/11 VIL 25°C, Vcc = ...

Page 101

Pin Thresholds and Hysteresis TBD 37.7 Bod Characteristics Figure 37-19. BOD Thresholds vs. Temperature 3.18 3.16 3.14 3.12 3.08 3.06 3.04 3.02 8330B–AVR–10/11 BOD Level = 7 3.1 3 -40 XMEGA B1 Falling Vcc Rising Vcc 25 85 Temperature ...

Page 102

Oscillators 37.8.1 32.768kHz internal oscillator Figure 37-20. 32.768kHz internal oscillator frequency vs. Temperature 32.8 32.75 32.7 32.65 32.6 32.55 32.5 32.45 32.4 32.35 32.3 Figure 37-21. 32.768kHz internal oscillator frequency vs. Calibration ...

Page 103

Figure 37-22. 32.768kHz internal oscillator frequency vs. Calibration 37.8.2 2MHz internal oscillator Figure 37-23. 2MHz internal oscillator frequency vs. Temperature 2.18 2.16 2.14 2.12 2.1 2.08 2.06 2.04 2.02 ...

Page 104

Figure 37-24. 2MHz internal oscillator frequency vs. Temperature 1.995 1.99 1.985 1.98 1.975 1.97 37.8.3 32MHZ internal oscillator Figure 37-25. Internal 32MHz oscillator frequency vs. Temperature 36.5 36 35.5 35 34.5 34 33.5 33 32.5 32 31.5 8330B–AVR–10/11 DFLL enabled, ...

Page 105

Figure 37-26. 32MHz internal oscillator frequency vs. Temperature 32 31.95 31.9 31.85 31.8 31.75 31.7 31.65 31.6 31.55 31.5 8330B–AVR–10/11 DFLL enabled, from 32.768kHz internal oscillator -40 -30 -20 - XMEGA ...

Page 106

LCD Characteristics Figure 37-27 Figure 37-28 8330B–AVR–10/11 vs. Frame Rate CC 32Hz Low P ower ...

Page 107

Figure 37-29. I Figure 37-30. I 7.5 6.5 5.5 4.5 3.5 8330B–AVR–10/11 vs. Frame Rate CC 0pF load vs. Contrast CC 32Hz Low Power Frame Rate from 32.768KHz TOSC, w/o ...

Page 108

Figure 37-31. I 7.5 7 6.5 6 5.5 5 4.5 4 3.5 3 8330B–AVR–10/11 vs. Contrast CC 32Hz Low Power Frame Rate from 32.768KHz TOSC, w/o pixel load, V -32 -23 -14 XMEGA ...

Page 109

ADC Characteristics Figure 37-32. ADC INL vs. V 1.8 1.6 1.4 1.2 0.8 Figure 37-33. ADC INL vs. V 2.8 2.6 2.4 2.2 1.8 1.6 1.4 1.2 0.8 8330B–AVR–10/11 . REF Differential signed mode 3.6V, external reference ...

Page 110

Figure 37-34. ADC DNL vs. V 2.1 1.9 1.7 1.5 1.3 1.1 0.9 Figure 37-35. ADC DNL vs. V 2.8 2.6 2.4 2.2 2 1.8 1.6 1.4 1.2 1 8330B–AVR–10/11 . REF Differential signed mode 3.6V, external reference ...

Page 111

Figure 37-36. ADC Offset vs Figure 37-37. ADC Offset vs 8330B–AVR–10/ Unsigned mode, ...

Page 112

Figure 37-38. ADC Offset vs. V 7.7 7.2 6.7 6.2 5.7 5.2 4.7 4.2 Figure 37-39. ADC Offset vs -3.5 -4 -4.5 -5 -5.5 -6 -6.5 -7 -7.5 -8 8330B–AVR–10/11 . REF Differential signed mode 3.6V, ...

Page 113

Figure 37-40. ADC Gain Error vs. V -5.0 -6.0 -7.0 -8.0 -9.0 -10.0 -11.0 -12.0 Figure 37-41. ADC Gain Error vs. V -3.5 -4.0 -4.5 -5.0 -5.5 -6.0 -6.5 -7.0 -7.5 -8.0 -8.5 8330B–AVR–10/11 . REF Differential signed mode, external ...

Page 114

Figure 37-42. ADC Gain Error vs. V -3.2 -3.7 -4.2 -4.7 -5.2 -5.7 -6.2 -6.7 -7.2 Figure 37-43. ADC Gain Error vs. V -1.5 -2 -2.5 -3 -3.5 -4 -4.5 -5 -5.5 -6 -6.5 -7 8330B–AVR–10/ Differential signed ...

Page 115

Figure 37-44. ADC Gain Error vs. Temperature. -5.0 -6.0 -7.0 -8.0 -9.0 -10.0 -11.0 -12.0 Figure 37-45. ADC Gain Error vs. Temperature. -3.0 -4.0 -5.0 -6.0 -7.0 -8.0 -9.0 8330B–AVR–10/11 Differential signed mode, external reference -40 -30 -20 -10 0 ...

Page 116

Analog comparator characteristics Figure 37-46. Analog comparator propagation delay vs. Vcc Figure 37-47. Analog comparator propagation delay vs. Temperature ...

Page 117

PDI characteristics Figure 37-48. Maximum PDI speed vs. Vcc 8330B–AVR–10/11 32 29.5 27 24.5 22 19.5 17 14.5 12 1.6 1.85 2.1 2.35 XMEGA B1 2.6 2.85 3.1 3.35 V [V] CC 25°C -40°C 85°C 3.6 117 ...

Page 118

... Errata 38.1 ATxmega64B1, ATxmega128B1 38.1.1 Rev. C • JTAG Revision 1. JTAG Revision is unchanged between Rev. B and Rev. C • AWeX fault protection restore is not done correct in Pattern Generation Mode 1. AWeX fault protection restore is not done correctly in Pattern Generation Mode When a fault is detected the OUTOVEN register is cleared, and when fault condition is cleared, OUTOVEN is restored according to the corresponding enabled DTI channels ...

Page 119

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. 39.1 8386A – 10/11 1. 39.2 8386A – 10/11 ...

Page 120

Table Of Contents Features ..................................................................................................... 1 1 Ordering Information ............................................................................... 2 2 Pinout/Block Diagram .............................................................................. 3 3 Overview ................................................................................................... 4 4 Resources ................................................................................................. 7 5 Capacitive touch sensing ........................................................................ 7 6 AVR CPU ................................................................................................... 8 7 Memories ................................................................................................ 12 8 ...

Page 121

Event System ......................................................................................... 18 10 System Clock and Clock options ......................................................... 20 11 Power Management and Sleep Modes ................................................. 24 12 System Control and Reset .................................................................... 26 13 WDT – Watchdog Timer ......................................................................... 28 14 Interrupts and Programmable Multilevel ...

Page 122

TC2 –16-bit Timer/Counter Type 2 ........................................................ 37 18 AWeX – Advanced Waveform Extension ............................................. 38 19 Hi-Res – High Resolution Extension .................................................... 39 20 RTC – 16-bit Real-Time Counter ........................................................... 40 21 USB – Universal Serial Bus Interface ................................................... ...

Page 123

LCD - Liquid Crystal Display Controller .............................................. 51 29 ADC – 12-bit Analog to Digital Converter ............................................ – Analog Comparator ...................................................................... 54 31 Programming and Debugging .............................................................. 56 32 Pinout and Pin Functions ...................................................................... 57 33 ...

Page 124

... Pull-up .............................................................................................................96 37.5Pin Output Voltage vs. Sink/Source Current .........................................................98 37.6Pin Thresholds and Hysteresis TBD ....................................................................101 37.7Bod Characteristics .............................................................................................101 37.8Oscillators ............................................................................................................102 37.9LCD Characteristics ............................................................................................106 37.10ADC Characteristics ..........................................................................................109 37.11Analog comparator characteristics ....................................................................116 37.12PDI characteristics ............................................................................................117 38.1ATxmega64B1, ATxmega128B1 .........................................................................118 39.18386A – 10/11 .....................................................................................................119 39.28386A – 10/11 .....................................................................................................119 XMEGA B1 v ...

Page 125

... Atmel , Atmel logo and combinations thereof, AVR marks of Atmel Corporation or its subsidiaries. Windows other countries. Other terms and product names may be trademarks of others. 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 connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL ...

Related keywords