Opens in a new tab

Authorized electronic component supplier · 12,000+ part numbers in stock

MENU

Instant Quote

SEARCH PARTS

ATTINY2313-20PU

8-bit AVR MCU, 20MHz, 2KB Flash, 128B SRAM, UART/SPI/I2C, 18 I/O, PDIP-20 through-hole

Effective inventoryPCS

9800
in stock

SpecificationsTechnical data

Manufacturer part

ATTINY2313-20PU

Package

PDIP-20

Brand

MICROCHIP

Category

Integrated Circuits ICs, Microcontrollers (MCU)

Quality Commitment

Shipping & Payment

Service & Packaging

DescriptionProduct overview

Product Overview

The ATTINY2313-20PU from Microchip Technology (formerly Atmel) is an 8-bit AVR RISC microcontroller with 2KB Flash, 128 bytes SRAM, and 128 bytes EEPROM in a 20-pin PDIP through-hole package. Running at up to 20 MHz from 2.7V to 5.5V, it provides 18 I/O pins, one 8-bit and one 16-bit timer, UART, SPI, and I2C interfaces for simple embedded control.

Key Specifications

  • Core: AVR 8-bit RISC (most instructions single-cycle)
  • Max Frequency: 20 MHz
  • Flash: 2KB (10,000 erase/write cycles)
  • SRAM: 128 bytes
  • EEPROM: 128 bytes (100,000 cycles)
  • Timers: 1x 8-bit, 1x 16-bit
  • Interfaces: USI (SPI/I2C), UART
  • PWM: 4 channels
  • GPIO: 18 I/O
  • Analog Comparator: 1
  • Supply Voltage: 2.7V ~ 5.5V
  • Active Current: 3.6 mA at 20 MHz, 5V
  • Power-Down: 0.1 µA
  • Operating Temperature: -40°C ~ 85°C
  • Package: PDIP-20 (through-hole)

Features

  • High-performance AVR RISC architecture with 120 instructions
  • 32 x 8 general-purpose working registers
  • On-chip 2-cycle hardware multiplier
  • USI module for SPI and I2C communication
  • Full-duplex UART with frame error detection
  • External and internal interrupt sources
  • Programmable watchdog timer with separate oscillator
  • In-System Programming (ISP) via SPI
  • DebugWIRE on-chip debugging

Applications

  • Hobbyist and maker projects (Arduino-compatible)
  • Simple protocol converters and gateways
  • Low-cost sensor nodes
  • LED lighting controllers
  • Small motor control applications
01ATTINY2313-20PU · Product Introduction
The ATTINY2313-20PU from Microchip Technology is a low-power 8-bit AVR RISC microcontroller that provides 2KB of Flash program memory, 128 bytes of SRAM, and 128 bytes of data EEPROM in a hobbyist-friendly 20-pin PDIP through-hole package. The AVR architecture executes most instructions in a single clock cycle, delivering up to 20 MIPS throughput at 20 MHz. The device features a Universal Serial Interface (USI) that can be configured for SPI or I2C communication, a full-duplex UART for serial communication, and four PWM channels for LED dimming and motor control. The PU suffix indicates PDIP-20 package, ideal for breadboard prototyping and educational use.
02ATTINY2313-20PU · Working Principle
The ATTINY2313-20PU operates on the AVR 8-bit RISC architecture with 32 general-purpose working registers directly connected to the ALU, allowing two registers to be accessed in a single clock cycle. This Harvard architecture uses separate memories and buses for program and data, enabling simultaneous access. The USI module provides a flexible serial interface that can operate as SPI master/slave or I2C master/slave using a minimal hardware implementation (shift register, counter, and control logic) supplemented by software for protocol handling. The UART supports full-duplex communication with configurable data format (5-9 data bits) and frame error detection. The 16-bit timer supports input capture, output compare, and PWM generation for precise timing control. ISP programming allows firmware updates without removing the device from the circuit.
03ATTINY2313-20PU · Pin Description
Pin Name Function
1 RESET/PA2 Reset (active low, active by default) / Port A2
2 RXD/PD0 UART Receive / Port D0
3 TXD/PD1 UART Transmit / Port D1
4 PA1/XCK/CKOUT Port A1 / USI Clock / Clock Output
5 PA0/OC1B/ICP Port A0 / Timer1 Output Compare B / Input Capture
6 PB0/OC0A Port B0 / Timer0 Output Compare A (PWM)
7 PB1/OC0B/OC1A Port B1 / Timer0 OC B / Timer1 OC A (PWM)
8 PB2/OC1B/SS Port B2 / Timer1 OC B / SPI Slave Select
9 PB3/MOSI/OC2 Port B3 / SPI MOSI / USI Data
10 PB4/MISO Port B4 / SPI MISO
04ATTINY2313-20PU · Application Scenarios
The ATTINY2313-20PU is a favorite in the maker community for its PDIP-20 through-hole package that fits standard breadboards, making it ideal for Arduino-based projects and educational electronics. It serves as a simple protocol converter between UART and I2C/SPI buses in system integration tasks. For LED lighting controllers, the four PWM channels enable smooth dimming of multiple LED strings. In low-cost sensor nodes, the UART provides wired communication while the analog comparator enables simple threshold detection. The 2KB Flash is sufficient for small control programs, and the ISP capability allows field firmware updates.
05ATTINY2313-20PU · Alternative Models
Model Manufacturer Key Difference
ATTINY4313-20PU Microchip 4KB Flash, 256B RAM variant
ATTINY2313A-PU Microchip Rev A, lower power consumption
ATmega328P-PU Microchip 32KB Flash, PDIP-28, Arduino Uno MCU

Request a quoteWithin 24h

Tell us the quantity you need. We confirm price and availability within one business day.

DatasheetPDF

Specifications subject to change by the manufacturer.

IC-Vendor · Sourcing

Verified stock, quoted fast.

AuthenticityOriginal parts
Lead time1 business day
ShippingDHL / FedEx / UPS

Recommended

Related parts you may need

STM32F334K8T6

ARM Cortex-M4 MCU with high-resolution timer, 72MHz, 64KB Flash, LQFP-32

Brand: STPackage: LQFP-32 (7.0 x 7.0 mm)

IN STOCK: 14928pcs

Cargo cycle: 3~7 Days

The minimum order is 1

STM32F411RCT6

ARM Cortex-M4 MCU, 100MHz, 256KB Flash, 128KB RAM, LQFP-64

Brand: STPackage: LQFP-64 (10 x 10 mm)

IN STOCK: 13837pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC16F877A-I

8-bit PIC MCU ‘A’ rev, 14KB Flash, 368B RAM, 256B EEPROM, 8-ch 10-bit ADC, 2 CCP, 2 comparators, SPI/I2C/USART, PSP, ICD, self-program, industrial -40°C~85°C

Brand: MICROCHIPPackage: 40-pin PDIP / 44-pin PLCC / 44-pin TQFP / QFN

IN STOCK: 9527pcs

Cargo cycle: 3~7 Days

The minimum order is 1

GD32F310C8T6

Cortex-M4 Entry-level MCU, 72MHz, 64KB Flash, 8KB SRAM, LQFP-48

Brand: gigadevicePackage: LQFP-48 (7x7mm, 0.5mm pitch)

IN STOCK: 7547pcs

Cargo cycle: 3~7 Days

The minimum order is 1

ATMega48PA-AU

8-bit AVR picoPower MCU, 4KB Flash, 512B RAM, TQFP-32

Brand: MICROCHIPPackage: TQFP-32 (7.0 x 7.0 mm, AU package)

IN STOCK: 8003pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC16LF1526-I

8-bit XLP PIC MCU, 14KB Flash, 768B RAM, 30-ch 10-bit ADC, 10 CCP, 2 EUSART, 2 SPI/I2C, 54 I/O, 1.8-3.6V low voltage, 64-pin

Brand: MICROCHIPPackage: 64-pin TQFP / QFN / UQFN

IN STOCK: 2792pcs

Cargo cycle: 3~7 Days

The minimum order is 1

QUALITY COMMITMENT

Quality Commitment

Every order is sourced, inspected and documented so your production line receives parts that meet specification.

Authenticity & traceability

We supply original manufacturer parts or material from authorized distribution channels. Unless a listing states otherwise, parts are new and unused — not refurbished, re-marked or pulled from used equipment. Each shipment is traceable to its purchase lot, date code and supplier record.

Incoming inspection

  • Visual inspection of labels, packaging, marking and date codes.
  • Lot and quantity verification against the purchase order.
  • Moisture-sensitivity and ESD packaging checks.
  • Electrical and functional testing, curve tracing, X-ray or decapsulation available on request.

Documentation

Commercial invoice and packing list are included with every shipment. A Certificate of Conformance (CoC) showing part number, quantity, lot/date code and inspection result is available on request. RoHS/REACH declarations and conflict-minerals statements can be supplied for compliance programs.

Warranty & returns

Parts are warranted against manufacturer defects for 12 months from shipment unless otherwise agreed in writing. Quality claims should be raised within 30 days of receipt with photos, the quantity affected and lot/date-code information. Special-order and non-cancellable/non-returnable (NCNR) items are handled case by case.

Counterfeit prevention

Suspect material is quarantined, documented and never resold. Suppliers are screened and monitored, and we support customer audits and third-party verification when required.

SHIPPING & PAYMENT

Shipping & Payment

From same-day dispatch on stock lines to consolidated production shipments, we keep logistics and payment predictable.

Lead time

In-stock lines usually ship the same or next business day. For backorder and factory-order items, lead time is confirmed in the quotation before you commit.

Carriers & tracking

We ship worldwide with DHL, FedEx, UPS and SF Express. Tracking details are sent as soon as the shipment is handed to the carrier. Customer carrier accounts can be used on request.

Freight & insurance

Freight is quoted prepaid-and-added, collect, or included depending on the agreed Incoterm (EXW, FOB, CIF or DDP). Shipment insurance is available on request; risk passes according to the agreed Incoterm.

Payment methods

  • Bank transfer (T/T) in USD, EUR or CNY.
  • PayPal for smaller or sample orders.
  • Alipay / RMB transfer for domestic settlement.

A proforma invoice is issued for every order. New customers are normally prepaid; repeat customers may apply for net terms.

Order changes & cancellation

Please confirm changes before dispatch. Once material is allocated, cut tape/reel or shipped, cancellation may not be possible. Non-standard items are subject to NCNR terms.

Customs & duties

We provide commercial invoices and origin documentation. Import duties, taxes and customs clearance are the buyer’s responsibility unless DDP terms are agreed.

SERVICE & PACKAGING

Service & Packaging

Beyond supplying the part, we support BOM sourcing, value-added processing and packaging that fits your line.

BOM sourcing & kitting

Send your BOM and we will cross-reference alternatives, consolidate lines and quote shortages. Kitting and kit-level labeling are available for production and repair centers.

Value-added services

  • Programming and firmware loading.
  • Tape-and-reel, re-reeling and tray packing.
  • Baking and dry-pack for moisture-sensitive parts.
  • Barcode, QR and custom label generation.

Packaging options

Parts are packed in ESD-safe bags, moisture-barrier bags with desiccant and humidity indicator, tape-and-reel, trays, tubes or bulk cartons. Custom labels, mixed kits and drop-ship to your contract manufacturer can be arranged.

Documentation & traceability

Each package carries the part number, quantity, lot/date code and country of origin. Packing lists and CoCs can be formatted to match your receiving process.

After-sales support

For returns, please contact us with the invoice number, part number and reason. We will issue an RMA and instructions before material is returned. Technical and order-status questions are answered within one business day.