Features High Performance, Low Power Atmel AVR 8-Bit Microcontroller Advanced RISC Architecture 130 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static Operation Up to 16 MIPS Throughput at 16MHz On-Chip 2-cycle Multiplier High Endurance Non-volatile Memory Segments In-System Self-programmable Flash Program Memory 32KBytes (ATmega329/ATmega3290) 64KBytes (ATmega649/ATmega6490) 8-bit Atmel EEPROM 1Kbytes (ATmega329/ATmega3290) 2Kbytes (ATmega649/ATmega6490) Microcontroller Internal SRAM 2Kbytes (ATmega329/ATmega3290) with In-System 4Kbytes (ATmega649/ATmega6490) Write/Erase Cycles: 10,000 Flash/ 100,000 EEPROM (1) Data retention: 20 years at 85C/100 years at 25C Programmable Optional Boot Code Section with Independent Lock Bits In-System Programming by On-chip Boot Program Flash True Read-While-Write Operation Programming Lock for Software Security JTAG (IEEE std. 1149.1 compliant) Interface Boundary-scan Capabilities According to the JTAG Standard Extensive On-chip Debug Support ATmega329/V Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG Interface Peripheral Features ATmega3290/V 4 x 25 Segment LCD Driver (ATmega329/ATmega649) 4 x 40 Segment LCD Driver (ATmega3290/ATmega6490) Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode ATmega649/V One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode ATmega6490/V Real Time Counter with Separate Oscillator Four PWM Channels 8-channel, 10-bit ADC Programmable Serial USART Master/Slave SPI Serial Interface Summary Universal Serial Interface with Start Condition Detector Programmable Watchdog Timer with Separate On-chip Oscillator On-chip Analog Comparator Interrupt and Wake-up on Pin Change Special Microcontroller Features Power-on Reset and Programmable Brown-out Detection Internal Calibrated Oscillator External and Internal Interrupt Sources Five Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, and Standby I/O and Packages 53/68 Programmable I/O Lines 64-lead TQFP, 64-pad QFN/MLF, and 100-lead TQFP Speed Grade: ATmega329V/ATmega3290V/ATmega649V/ATmega6490V: 0 - 4MHz 1.8 - 5.5V, 0 - 8MHz 2.7 - 5.5V ATmega329/3290/649/6490: 0 - 8MHz 2.7 - 5.5V, 0 - 16MHz 4.5 - 5.5V Temperature range: -40C to 85C Industrial Ultra-Low Power Consumption Active Mode: 1MHz, 1.8V: 350A 32kHz, 1.8V: 20A (including Oscillator) 32kHz, 1.8V: 40A (including Oscillator and LCD) Power-down Mode: 100nA at 1.8V 2552KSAVR04/11ATmega329/3290/649/6490 1. Pin Configurations Figure 1-1. Pinout ATmega3290/6490 TQFP 1 75 LCDCAP PA3 (COM3) 2 74 (RXD/PCINT0) PE0 PA4 (SEG0) INDEX CORNER (TXD/PCINT1) PE1 3 73 PA5 (SEG1) (XCK/AIN0/PCINT2) PE2 4 72 PA6 (SEG2) 5 (AIN1/PCINT3) PE3 71 PA7 (SEG3) 6 70 (USCK/SCL/PCINT4) PE4 PG2 (SEG4) 7 69 (DI/SDA/PCINT5) PE5 PC7 (SEG5) (DO/PCINT6) PE6 8 68 PC6 (SEG6) (CLKO/PCINT7) PE7 9 67 DNC 10 VCC 66 PH3 (PCINT19/SEG7) 11 65 GND PH2 (PCINT18/SEG8) 12 64 DNC PH1 (PCINT17/SEG9) (PCINT24/SEG35) PJ0 13 63 PH0 (PCINT16/SEG10) ATmega3290/6490 (PCINT25/SEG34) PJ1 14 62 DNC 15 DNC 61 DNC 16 60 DNC DNC 17 59 DNC DNC DNC 18 58 PC5 (SEG11) (SS/PCINT8) PB0 19 57 PC4 (SEG12) 20 (SCK/PCINT9) PB1 56 PC3 (SEG13) 21 55 (MOSI/PCINT10) PB2 PC2 (SEG14) 22 54 (MISO/PCINT11) PB3 PC1 (SEG15) (OC0A/PCINT12) PB4 23 53 PC0 (SEG16) (OC1A/PCINT13) PB5 24 52 PG1 (SEG17) 25 (OC1B/PCINT14) PB6 51 PG0 (SEG18) 2 2552KSAVR04/11 (OC2A/PCINT15) PB7 26 100 AVCC DNC 27 99 AGND (T1/SEG33) PG3 28 98 AREF 29 97 (T0/SEG32) PG4 PF0 (ADC0) 30 96 RESET/PG5 PF1 (ADC1) VCC 31 95 PF2 (ADC2) GND 32 94 PF3 (ADC3) (TOSC2) XTAL2 33 93 PF4 (ADC4/TCK) 34 92 (TOSC1) XTAL1 PF5 (ADC5/TMS) 35 91 DNC PF6 (ADC6/TDO) DNC 36 90 PF7 (ADC7/TDI) (PCINT26/SEG31) PJ2 37 89 DNC (PCINT27/SEG30) PJ3 38 88 DNC 39 87 (PCINT28/SEG29) PJ4 PH7 (PCINT23/SEG36) 40 86 (PCINT29/SEG28) PJ5 PH6 (PCINT22/SEG37) (PCINT30/SEG27) PJ6 41 85 PH5 (PCINT21/SEG38) DNC 42 84 PH4 (PCINT20/SEG39) (ICP1/SEG26) PD0 43 83 DNC 44 82 (INT0/SEG25) PD1 DNC 45 81 (SEG24) PD2 GND (SEG23) PD3 46 80 VCC (SEG22) PD4 47 79 DNC (SEG21) PD5 48 78 PA0 (COM0) 49 77 (SEG20) PD6 PA1 (COM1) 50 76 (SEG19) PD7 PA2 (COM2)