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 16MIPS Throughput at 16MHz On-Chip 2-cycle Multiplier High Endurance Non-volatile Memory Segments In-System Self-programmable Flash Program Memory 32KBytes (ATmega325/ATmega3250) 64KBytes (ATmega645/ATmega6450) EEPROM 8-bit Atmel 1Kbytes (ATmega325/ATmega3250) 2Kbytes (ATmega645/ATmega6450) Internal SRAM Microcontroller 2Kbytes (ATmega325/ATmega3250) 4Kbytes (ATmega645/ATmega6450) with In-System Write/Erase Cycles: 10,000 Flash/ 100,000 EEPROM (1) Data retention: 20 years at 85C/100 years at 25C Optional Boot Code Section with Independent Lock Bits Programmable In-System Programming by On-chip Boot Program True Read-While-Write Operation Programming Lock for Software Security Flash Atmel QTouch library support Capacitive touch buttons, sliders and wheels QTouch and QMatrix acquisition Up to 64 sense channels ATmega325/V JTAG (IEEE std. 1149.1 compliant) Interface Boundary-scan Capabilities According to the JTAG Standard ATmega3250/V Extensive On-chip Debug Support Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG Interface Peripheral Features ATmega645/V Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode ATmega6450/V Real Time Counter with Separate Oscillator Four PWM Channels 8-channel, 10-bit ADC Programmable Serial USART Master/Slave SPI Serial Interface 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: ATmega325V/ATmega3250V/ATmega645V/ATmega6450V: 0 - 4MHz 1.8 - 5.5V 0 - 8MHz 2.7 - 5.5V Atmel ATmega325/3250/645/6450: 0 - 8MHz 2.7 - 5.5V 0 - 16MHz 4.5 - 5.5V Temperature range: -40C to 85C IndustrSial Ultra-Low Power Consumption Active Mode: 1MHz, 1.8V: 350A 32kHz, 1.8V: 20A (including Oscillator) Power-down Mode: 100 nA at 1.8V 2570NAVR05/11ATmega325/3250/645/6450 1. Pin Configurations Figure 1-1. Pinout ATmega3250/6450 DNC 1 75 PA3 (RXD/PCINT0) PE0 2 74 PA4 INDEX CORNER (TXD/PCINT1) PE1 3 73 PA5 (XCK/AIN0/PCINT2) PE2 4 72 PA6 (AIN1/PCINT3) PE3 5 71 PA7 (USCK/SCL/PCINT4) PE4 6 70 PG2 (DI/SDA/PCINT5) PE5 7 69 PC7 (DO/PCINT6) PE6 8 68 PC6 (CLKO/PCINT7) PE7 9 67 DNC VCC 10 66 PH3 (PCINT19) GND 11 65 PH2 (PCINT18) DNC 12 64 PH1 (PCINT17) (PCINT24) PJ0 13 63 PH0 (PCINT16) ATmega3250/6450 (PCINT25) PJ1 14 62 DNC DNC 15 61 DNC DNC 16 60 DNC DNC 17 59 DNC DNC 18 58 PC5 (SS/PCINT8) PB0 19 57 PC4 (SCK/PCINT9) PB1 20 56 PC3 (MOSI/PCINT10) PB2 21 55 PC2 (MISO/PCINT11) PB3 22 54 PC1 (OC0A/PCINT12) PB4 23 53 PC0 (OC1A/PCINT13) PB5 24 52 PG1 (OC1B/PCINT14) PB6 25 51 PG0 2 2570NAVR05/11 26 100 (OC2A/PCINT15) PB7 AVCC 27 99 DNC AGND 28 98 (T1) PG3 AREF 29 97 (T0) PG4 PF0 (ADC0) 30 96 RESET/PG5 PF1(ADC1) 31 95 VCC PF2 (ADC2) 32 94 GND PF3 (ADC3) 33 93 XTAL2 (TOSC2) PF4 (ADC4/TCK) 34 92 XTAL1 (TOSC1) PF5 (ADC5/TMS) 35 91 DNC PF6 (ADC6/TDO) 36 90 DNC PF7 (ADC7/TDI) 37 89 (PCINT26) PJ2 DNC 38 88 (PCINT27) PJ3 DNC 39 87 (PCINT28) PJ4 PH7 (PCINT23) 40 86 (PCINT29) PJ5 PH6 (PCINT22) 41 85 (PCINT30) PJ6 PH5 (PCINT21) 42 84 DNC PH4 (PCINT20) 43 83 (ICP1) PD0 DNC 44 82 (INT0) PD1 DNC 45 81 PD2 GND 46 80 PD3 VCC 47 79 PD4 DNC 48 78 PD5 PA0 49 77 PD6 PA1 50 76 PD7 PA2