Skip to main content
Microchip Technology ATTINY2313-20PU — Microcontrollers & Processors (MCU / MPU / DSP)

ATTINY2313-20PU AVR 8-bit MCU, 20 MHz, 2 KB Flash, 20-DIP

MPNATTINY2313-20PU
Active

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.

$2.2000Ref. price · indicative, final on quote
Packaging20-DIP (0.300", 7.62mm)
RoHSROHS3 Compliant
SeriesAVR® ATtiny
Independent supplier — new & surplus stockAuthenticity-screened · ESD-safe packingListing updated Jul 2026

Specifications

ATTINY2313-20PU specifications
ParameterValue
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)

Product 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.

Frequently asked questions

Where can I buy ATTINY2313-20PU and how is it quoted?

Submit an RFQ for current availability and pricing — lead time and price are confirmed at quote time, not listed here.

Can ATTINY2313-20PU be used as a replacement for ATTINY2313-20SU?

The ATTINY2313-20SU is the surface-mount SOIC-20 version of the same die. The -20PU is the through-hole DIP variant. Electrically they are identical — same speed, memory, peripherals, and supply range. The only difference is the package: the -20PU fits a 20-pin DIP socket or breadboard; the -20SU is for SMT assembly. If your board has a DIP footprint, yes, it is a direct replacement.

What are the programming options for ATTINY2313-20PU (ISP, Arduino)?

The ATTINY2313-20PU supports In-System Programming (ISP) via the SPI interface — a standard 6-pin header (MISO, MOSI, SCK, RESET, Vcc, GND) connects to any AVR ISP programmer like the Atmel-ICE, USBasp, or AVRISP mkII. It is also supported in the Arduino IDE as a target board (ATtiny core) using a programmer and the appropriate board definition. No bootloader is pre-loaded, so the first programming step is ISP.