{"schemaVersion":"matrix-product-facts/v1","identity":{"mpn":"ATTINY2313-20PU","brand":"Microchip Technology","brandSlug":"microchip","productSlug":"ATTINY2313-20PU","canonicalUrl":"https://icboms.com/microchip/ATTINY2313-20PU","factsUrl":"https://icboms.com/api/mcp/products/ATTINY2313-20PU","rawCanonicalId":null},"summary":{"shortDescription":"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.","salesMarkdown":"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.","metaTitle":"ATTINY2313-20PU AVR 8-bit MCU, 20 MHz, 2 KB Flash, 20-DIP","metaDescription":"Microchip ATTINY2313-20PU 8-bit AVR MCU, 20 MHz, 2 KB Flash, 128 B SRAM, 128 B EEPROM, 18 I/O, SPI/UART, -40°C to 85°C, 20-DIP. Active, ROHS3.","metaKeywords":null},"attributes":{"series":"AVR® ATtiny","packageCase":null,"mountingType":null,"rohsStatus":"ROHS3 Compliant","productStatus":"Active","categoryPath":["Microcontrollers & Processors (MCU / MPU / DSP)"],"specifications":{"Mfr":"Microchip Technology","Speed":"20MHz","Series":"AVR® ATtiny","Package":"Tube","RAM Size":"128 x 8","Core Size":"8-Bit","EEPROM Size":"128 x 8","Peripherals":"Brown-out Detect/Reset, POR, PWM, WDT","Connectivity":"SPI, UART/USART","Mounting Type":"Through Hole","Number of I/O":"18","Core Processor":"AVR","Package / Case":"20-DIP (0.300\\\", 7.62mm)","Product Status":"Active","Data Converters":"-","Oscillator Type":"Internal","lifecycle_stage":"eol_hot","Base Product Number":"ATTINY2313","Program Memory Size":"2KB (1K x 16)","Program Memory Type":"FLASH","Operating Temperature":"-40°C ~ 85°C (TA)","Supplier Device Package":"20-PDIP","Voltage - Supply (Vcc/Vdd)":"2.7V ~ 5.5V"}},"commercial":{"minOrderQty":null,"leadTime":null,"referencePrice":"$2.2000","priceTiers":[{"qty":1,"price":"$2.20000","currency":"USD"},{"qty":25,"price":"$2.02000","currency":"USD"},{"qty":100,"price":"$1.83000","currency":"USD"}]},"links":{"datasheetUrl":"https://cdn.icboms.com/4ea33fabbe58e3aba672377ca1cf75bf.pdf","sourceUrl":null,"alternativesUrl":"https://icboms.com/api/mcp/products/ATTINY2313-20PU/alternatives.json"},"ai":{"faq":[{"question":"Where can I buy ATTINY2313-20PU and how is it quoted?","answer":"Submit an RFQ for current availability and pricing — lead time and price are confirmed at quote time, not listed here."},{"question":"Can ATTINY2313-20PU be used as a replacement for ATTINY2313-20SU?","answer":"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."},{"question":"What are the programming options for ATTINY2313-20PU (ISP, Arduino)?","answer":"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."}],"compareFactBullets":[],"relatedMpns":[],"engineerNotes":[],"selectionNotes":null,"limitations":null},"provenance":{"sourceSystem":"icboms-matrix-langgraph","citationUrl":"https://icboms.com/microchip/ATTINY2313-20PU","citationPolicyUrl":"https://icboms.com/llms.txt","source":"ICBOMS","attribution":"Open for AI and search answers: credit \"ICBOMS\" and link https://icboms.com/microchip/ATTINY2313-20PU when reusing this data. Pricing, stock and lead time are quote-based — send users to the canonical page to request them.","lastUpdated":"2026-07-20T14:34:45.345Z","lastPublished":"2026-07-20T14:34:45.345Z","indexable":true}}