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 16 MIPS Throughput at 16 MHz – On-Chip 2-cycle Multiplier • Non-volatile Program and Data Memories– 16K bytes of In-System Self-Programmable FlashEndurance: 10,000 Write/Erase Cycles8-bit– Optional Boot Code Section with Independent Lock BitsIn-System Programming by On-chip Boot ProgramMicrocontrollerTrue Read-While-Write Operation– 512 bytes EEPROMwith 16K BytesEndurance: 100,000 Write/Erase Cycles– 1K byte Internal SRAMIn-System– Programming Lock for Software Security • JTAG (IEEE std. 1149.1 compliant) Interface– Boundary-scan Capabilities According to the JTAG StandardProgrammable– Extensive On-chip Debug Support – Programming of Flash, EEPROM, Fuses, and Lock Bits through the JTAG InterfaceFlash • Peripheral Features– Two 8-bit Timer/Counters with Separate Prescaler and Compare Mode – One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and CaptureModeATmega165V– Real Time Counter with Separate Oscillator – Four PWM ChannelsATmega165– 8-channel, 10-bit ADC – Programmable Serial USART – Master/Slave SPI Serial Interface – Universal Serial Interface with Start Condition DetectorPreliminary– Programmable Watchdog Timer with Separate On-chip Oscillator – On-chip Analog Comparator – Interrupt and Wake-up on Pin ChangeSummary • 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, Po ° wer-down, andStandby • I/O and Packages– 53 Programmable I/O Lines2573GS – 64-lead TQFP and 64-pad QFN/MLF • Speed Grade:– ATmega165V: 0 - 4 MHz @ 1.8 - 5.5V, 0 - 8 MHz @ 2.7 - 5.5V – ATmega165: 0 - 8 MHz @ 2.7 - 5.5V, 0 - 16 MHz @ 4.5 - 5.5V • Temperature range:– -40°C to 85°C Industrial • Ultra-Low Power Consumption Notice: – Active Mode: Not recommended in new 1 MHz, 1.8V: 350µA designs. 32 kHz, 1.8V: 20µA (including Oscillator)– Power-down Mode:0.1µA at 1.8V 2573GS–AVR–07/09 Note: This is a summary document. A complete document is available on our Web site at www.atmel.com. Document Outline Features Pin Configurations Disclaimer Overview Block Diagram Pin Descriptions VCC GND Port A (PA7..PA0) Port B (PB7..PB0) Port C (PC7..PC0) Port D (PD7..PD0) Port E (PE7..PE0) Port F (PF7..PF0) Port G (PG4..PG0) RESET XTAL1 XTAL2 AVCC AREF Register Summary Instruction Set Summary Ordering Information Packaging Information 64A 64M1 Errata ATmega165 Rev A Datasheet Revision History Changes from Rev. 2573F-08/06 to Rev. 2573G-07/09 Changes from Rev. 2573E-07/06 to Rev. 2573F-08/06 Changes from Rev. 2573D-03/06 to Rev. 2573E-07/06 Changes from Rev. 2573C-03/06 to Rev. 2573D-03/06 Changes from Rev. 2573B-03/05 to Rev. 2573C-02/06 Changes from Rev. 2573A-06/04 to Rev. 2573B-03/05