ATTINY2313-20PU

Microchip Technology · AVR® ATtiny Series

Microchip ATTINY2313-20PU, AVR® ATtiny series, 8-bit MCU, 20MHz, 2KB Flash, 128 x 8 SRAM, 128 x 8 EEPROM, 18 I/O, SPI, UART/USART, 2.7V-5.5V, -40°C to 85°C, 20-DIP through hole.

Microchip Technology ATTINY2313-20PU
Download datasheet (PDF)
[IN STOCK] In Stock: 2 pcs
$3.35/ pc

Volume pricing

Buy Now

MOQ 1 · Tube · RoHS · EIA-481 · DAP/DDP · T/T

Technical specifications

ATTINY2313-20PU specifications
Parameter / AttributeSpecification / Value
SeriesAVR® ATtiny
MountingThrough Hole
Oscillator typeInternal
Program memory typeFLASH
Voltage - supply (Vcc (Vdd))2.7V ~ 5.5V
Operating temperature-40°C ~ 85°C (TA)
Speed20MHz
PackageTube
RAM size128 x 8
Core size8-Bit
EEPROM size128 x 8
PeripheralsBrown-out Detect/Reset, POR, PWM, WDT
ConnectivitySPI, UART/USART
Number of i (O)18
Core processorAVR
Case20-DIP (0.300\", 7.62mm)
Program memory size2KB (1K x 16)

Technical details

The Microchip ATTINY2313-20PU is an 8-bit AVR microcontroller from the ATtiny family, built around the AVR core with a 20 MHz maximum clock speed. It packs 2 KB of Flash program memory, 128 bytes of SRAM, and 128 bytes of EEPROM — enough for small control tasks like reading a few sensors, driving a PWM output, or managing a simple UART or SPI link. The 18 general-purpose I/O lines give you room for a handful of buttons, LEDs, and a serial interface without needing external expanders. The 20-pin DIP package (0.300" width) is a through-hole part — breadboard-friendly, easy to hand-solder, and compatible with legacy sockets.

At 20 MHz, the ATTINY2313-20PU executes most AVR instructions in a single clock cycle, giving roughly 20 MIPS throughput. That is enough for UART baud rates up to 1.25 Mbps (assuming the internal oscillator is trimmed), PWM frequencies in the tens of kilohertz with reasonable resolution, and polling or interrupt-driven I/O at microsecond-level response. It is not a part for heavy DSP or complex protocol stacks — the 2 KB Flash fills fast with anything beyond a few hundred lines of C. For timing-critical UART communication or precise PWM, an external clock source can be fed in through the XTAL pins.

Memory footprint: 2 KB Flash, 128 B SRAM, 128 B EEPROM

The 2 KB Flash is the hard limit for your compiled code — think small state machines, sensor polling loops, or a bootloader that occupies the first 512 bytes. The 128 bytes of SRAM is the runtime scratchpad: a few global variables, a small stack, and maybe a 16-byte UART buffer. The 128 bytes of EEPROM is non-volatile storage for calibration constants, configuration bytes, or a device serial number — endurance is typically 100k write cycles per byte. If your application needs more than a few hundred bytes of SRAM or code beyond 2 KB, this part will not fit — look at the ATtiny24/44/84 or ATmega48/88/168 families for a pin-compatible step up in memory.

The SPI and UART/USART interfaces let it talk to sensors, displays, or a host microcontroller without bit-banging.

ROHS3 compliant. That means no last-time-buy scramble, no forced redesign for obsolescence. There is no official second-source alternate from another manufacturer, but the pin-compatible ATtiny2313A and ATtiny2313V variants (same 20-DIP footprint) offer lower voltage or speed options if the supply chain needs flexibility.

ATTINY2313-20PU
[ALLOC] verified
Quote