Features High Performance, Low Power AVR 8-bit Microcontroller Advanced RISC Architecture 124 Powerful Instructions - Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static Operation Up to 1 MIPS Throughput at 1 MHz Nonvolatile Program and Data Memories 40K Bytes of In-System Self-Programmable Flash, Endurance: 10,000 Write/Erase 8-bit Cycles Optional Boot Code Section with Independent Lock Bits Microcontroller In-System Programming by On-chip Boot Program True Read-While-Write Operation with 40K Bytes 512 bytes EEPROM, Endurance: 100,000 Write/Erase Cycles 2K Bytes Internal SRAM In-System Programming Lock for Software Security On-chip Debugging Programmable Extensive On-chip Debug Support Available through JTAG interface Flash Battery Management Features Two, Three, or Four Cells in Series Deep Under-voltage Protection ATmega406 Over-current Protection (Charge and Discharge) Short-circuit Protection (Discharge) Integrated Cell Balancing FETs High Voltage Outputs to Drive Charge/Precharge/Discharge FETs Preliminary Peripheral Features One 8-bit Timer/Counter with Separate Prescaler, Compare Mode, and PWM One 16-bit Timer/Counter with Separate Prescaler and Compare Mode 12-bit Voltage ADC, Eight External and Two Internal ADC Inputs High Resolution Coulomb Counter ADC for Current Measurements TWI Serial Interface for SM-Bus Programmable Wake-up Timer Programmable Watchdog Timer Special Microcontroller Features Power-on Reset On-chip Voltage Regulator External and Internal Interrupt Sources Four Sleep Modes: Idle, Power-save, Power-down, and Power-off Packages 48-pin LQFP Operating Voltage: 4.0 - 25V Maximum Withstand Voltage (High-voltage pins): 28V Temperature Range: -30C to 85C Speed Grade: 1 MHz 2548FAVR03/20131. Pin Configurations Figure 1-1. Pinout ATmega406. Top View SGND 1 36 PVT (ADC0/PCINT0) PA0 2 35 OD (ADC1/PCINT1) PA1 3 34 VFET (ADC2/PCINT2) PA2 4 33 OC (ADC3/PCINT3) PA3 5 32 OPC VREG 6 31 BATT VCC 7 30 PC0 GND 8 29 GND (ADC4/INT0/PCINT4) PA4 9 28 PD1 (INT1/PCINT5) PA5 10 27 PD0 (T0) (INT2/PCINT6) PA6 11 26 PB7 (OC0B/PCINT15) (INT3/PCINT7) PA7 25 PB6 (OC0A/PCINT14) 12 1.1 Disclaimer Typical values contained in this datasheet are based on simulations and characterization of other AVR microcontrollers manufactured on the same process technology. Min and Max values will be available after the device is characterized. 2 ATmega406 2548FAVR03/2013 RESET 13 48 NNI XTAL1 14 47 NI XTAL2 15 46 PI GND 16 45 PPI (TDO/PCINT8) PB0 17 44 VREFGND (TDI/PCINT9) PB1 18 43 VREF (TMS/PCINT10) PB2 19 42 NV (TCK/PCINT11) PB3 20 41 PV1 (PCINT12) PB4 21 40 PV2 (PCINT13) PB5 22 39 PV3 SCL 23 38 PV4 SDA 24 37 GND