Features Utilizes the AVR RISC Architecture AVR High-performance and Low-power RISC Architecture 120 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 Data and Non-volatile Program and Data Memories 2K Bytes of In-System Self Programmable Flash Endurance 10,000 Write/Erase Cycles 128 Bytes In-System Programmable EEPROM 8-bit Endurance: 100,000 Write/Erase Cycles 128 Bytes Internal SRAM Microcontroller Programming Lock for Flash Program and EEPROM Data Security Peripheral Features with 2K Bytes One 8-bit Timer/Counter with Separate Prescaler and Compare Mode One 16-bit Timer/Counter with Separate Prescaler, Compare and Capture Modes In-System Four PWM Channels On-chip Analog Comparator Programmable Watchdog Timer with On-chip Oscillator Programmable USI Universal Serial Interface Full Duplex USART Flash Special Microcontroller Features debugWIRE On-chip Debugging In-System Programmable via SPI Port External and Internal Interrupt Sources ATtiny2313/V Low-power Idle, Power-down, and Standby Modes Enhanced Power-on Reset Circuit Programmable Brown-out Detection Circuit Internal Calibrated Oscillator I/O and Packages 18 Programmable I/O Lines 20-pin PDIP, 20-pin SOIC, 20-pad QFN/MLF Operating Voltages 1.8 5.5V (ATtiny2313V) 2.7 5.5V (ATtiny2313) Speed Grades ATtiny2313V: 0 4 MHz 1.8 - 5.5V, 0 10 MHz 2.7 5.5V ATtiny2313: 0 10 MHz 2.7 - 5.5V, 0 20 MHz 4.5 5.5V Typical Power Consumption Active Mode 1 MHz, 1.8V: 230 A 32 kHz, 1.8V: 20 A (including oscillator) Power-down Mode < 0.1 A at 1.8V Rev. 2543MAVR10/16Pin Figure 1. Pinout ATtiny2313 Configurations PDIP/SOIC (RESET/dW) PA2 VCC 1 20 PB7 (UCSK/SCL/PCINT7) (RXD) PD0 2 19 (TXD) PD1 PB6 (MISO/DO/PCINT6) 3 18 (XTAL2) PA1 PB5 (MOSI/DI/SDA/PCINT5) 4 17 PB4 (OC1B/PCINT4) (XTAL1) PA0 5 16 (CKOUT/XCK/INT0) PD2 PB3 (OC1A/PCINT3) 6 15 PB2 (OC0A/PCINT2) (INT1) PD3 7 14 (T0) PD4 PB1 (AIN1/PCINT1) 8 13 (OC0B/T1) PD5 9 12 PB0 (AIN0/PCINT0) PD6 (ICP) GND 10 11 MLF (TXD) PD1 1 15 PB5 (MOSI/DI/SDA/PCINT5) XTAL2) PA1 2 14 PB4 (OC1B/PCINT4) (XTAL1) PA0 3 13 PB3 (OC1A/PCINT3) (CKOUT/XCK/INT0) PD2 4 12 PB2 (OC0A/PCINT2) (INT1) PD3 5 11 PB1 (AIN1/PCINT1) NOTE: Bottom pad should be soldered to ground. Overview The ATtiny2313 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the ATtiny2313 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power con- sumption versus processing speed. 2 ATtiny2313 2543MAVR10/16 (T0) PD4 6 20 PD0 (RXD) (OC0B/T1) PD5 7 19 PA2 (RESET/dW) GND 8 18 VCC (ICP) PD6 9 17 PB7 (UCSK/SCK/PCINT7) (AIN0/PCINT0) PB0 10 16 PB6 (MISO/DO/PCINT6)