Features High Performance, Low Power 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 20 MIPS Throughput at 20 MHz On-Chip 2-cycle Multiplier High Endurance Non-volatile Memory segments 32K Bytes of In-System Self-programmable Flash program memory 1K Bytes EEPROM 2K Bytes Internal SRAM 8-bit Write/Erase cyles: 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 Microcontroller In-System Programming by On-chip Boot Program True Read-While-Write Operation with 32K Bytes Programming Lock for Software Security JTAG (IEEE std. 1149.1 compliant) Interface Boundary-scan Capabilities According to the JTAG Standard In-System Extensive On-chip Debug Support Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG Interface Programmable Peripheral Features Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode Flash One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode Real Time Counter with Separate Oscillator Four PWM Channels 8-channel, 10-bit ADC ATmega325P/V Programmable Serial USART Master/Slave SPI Serial Interface ATmega3250P/V 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 Preliminary External and Internal Interrupt Sources Five Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, and Standby I/O and Packages 54/69 Programmable I/O Lines 64-lead TQFP, 64-pad QFN/MLF, and 100-lead TQFP Speed Grade: ATmega325PV/ATmega3250PV: 0 - 4 MHz 1.8 - 5.5V, 0 - 10 MHz 2.7 - 5.5V ATmega325P/3250P: 0 - 10 MHz 2.7 - 5.5V, 0 - 20 MHz 4.5 - 5.5V Temperature range: -40C to 85C Industrial Ultra-Low Power Consumption Active Mode: 420 A at 1 MHz, 1.8V Power-down Mode: 40 nA at 1.8V Power-save Mode: 750 nA at 1.8V 8023FAVR07/091. Pin Configurations Figure 1-1. Pinout ATmega3250P TQFP DNC 1 75 PA3 (RXD/PCINT0) PE0 2 74 PA4 INDEX CORNER (TXD/PCINT1) PE1 3 73 PA5 4 72 (XCK/AIN0/PCINT2) PE2 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 9 67 (CLKO/PCINT7) PE7 DNC VCC 10 66 PH3 (PCINT19) GND 11 65 PH2 (PCINT18) DNC 12 64 PH1 (PCINT17) (PCINT24) PJ0 13 63 PH0 (PCINT16) ATmega3250 14 62 (PCINT25) PJ1 DNC DNC 15 61 DNC DNC 16 60 DNC DNC 17 59 DNC 18 DNC 58 PC5 19 57 (SS/PCINT8) PB0 PC4 (SCK/PCINT9) PB1 20 56 PC3 (MOSI/PCINT10) PB2 21 55 PC2 (MISO/PCINT11) PB3 22 54 PC1 23 (OC0A/PCINT12) PB4 53 PC0 24 52 (OC1A/PCINT13) PB5 PG1 (OC1B/PCINT14) PB6 25 51 PG0 2 ATmega325P/3250P 8023FAVR07/09 26 100 (OC2A/PCINT15) PB7 AVCC 27 99 DNC AGND 28 98 (T1) PG3 AREF (T0) PG4 29 97 PF0 (ADC0) RESET/PG5 30 96 PF1 (ADC1) VCC 31 95 PF2 (ADC2) GND 32 94 PF3 (ADC3) (TOSC2) XTAL2 33 93 PF4 (ADC4/TCK) (TOSC1) XTAL1 34 92 PF5 (ADC5/TMS) 35 91 DNC PF6 (ADC6/TDO) 36 90 DNC PF7 (ADC7/TDI) 37 89 (PCINT26) PJ2 DNC (PCINT27) PJ3 38 88 DNC (PCINT28) PJ4 39 87 PH7 (PCINT23) (PCINT29) PJ5 40 86 PH6 (PCINT22) (PCINT30) PJ6 41 85 PH5 (PCINT21) DNC 42 84 PH4 (PCINT20) (ICP1) PD0 43 83 DNC 44 82 (INT0) PD1 DNC 45 81 PD2 GND 46 80 PD3 VCC PD4 47 79 DNC PD5 48 78 PA0 PD6 49 77 PA1 PD7 50 76 PA2