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, 2KB Flash, 128B EEPROM, 20MHz, UART, USI, PDIP-20

Effective inventoryPCS

7840
in stock

SpecificationsTechnical data

Manufacturer part

ATTINY2313-20PU

Package

PDIP-20 (300 mil, 7.62 x 25.9 mm)

Brand

MICROCHIP

Category

Integrated Circuits ICs, Microcontrollers (MCU)

Quality Commitment

Shipping & Payment

Service & Packaging

DescriptionProduct overview

Product Overview

The ATTINY2313-20PU is a high-performance 8-bit AVR RISC microcontroller from Microchip Technology with 2KB Flash, 128B EEPROM, 128B SRAM, 20 MIPS at 20 MHz, USI, full-duplex UART, and debugWIRE in a 20-pin PDIP package.

Key Specifications

Core AVR 8-bit RISC
Max Clock Speed 20 MHz
Throughput 20 MIPS at 20 MHz
Flash Memory 2 KB (ISP)
EEPROM 128 bytes
SRAM 128 bytes
I/O Pins 18
Timers 2 x 8-bit, 1 x 16-bit
PWM Channels 4
Communication UART (full-duplex), USI (SPI/I2C)
Analog Comparator 1
Supply Voltage 2.7 V to 5.5 V (ATtiny2313V: 1.8V)
Active Current 2.4 mA at 20 MHz, 5V
Power-Down Current 0.1 µA typical
Debug Interface debugWIRE
Operating Temperature -40°C to +85°C
Package PDIP-20 (300 mil)

Features

  • High-performance AVR RISC architecture
  • Most instructions execute in a single clock cycle
  • 20 MIPS throughput at 20 MHz
  • 2KB ISP Flash with 10,000 write/erase cycles
  • 128 bytes EEPROM with 100,000 write/erase cycles
  • Universal Serial Interface (USI) for SPI and I2C
  • Full-duplex UART with hardware framing
  • debugWIRE on-chip debugging
  • 4 PWM channels via timer output compare
  • External and internal interrupt sources

Applications

  • Hobby and maker projects
  • Simple embedded controllers
  • Protocol converters and bridges
  • Sensor interface modules
  • LED lighting controllers
01ATTINY2313-20PU · Product Introduction
The ATTINY2313-20PU is a high-performance 8-bit AVR RISC microcontroller from Microchip Technology that combines 2KB ISP Flash, 128 bytes EEPROM, and 128 bytes SRAM in a through-hole PDIP-20 package ideal for prototyping and hobby projects. The AVR core achieves 20 MIPS throughput at 20 MHz by executing most instructions in a single clock cycle. Communication interfaces include a full-duplex UART with hardware framing and a Universal Serial Interface (USI) that can implement SPI or I2C with minimal software overhead. The device features two 8-bit timers and one 16-bit timer with 4 PWM channels, one analog comparator, and debugWIRE for on-chip debugging. Operating from 2.7V to 5.5V with 0.1 µA power-down current, it suits battery-powered applications.
02ATTINY2313-20PU · Working Principle
The ATTINY2313 uses Microchip’s AVR RISC architecture with a 2-stage pipeline (fetch and execute) and a orthogonal instruction set. Most instructions execute in a single clock cycle because the 16-bit instruction word encodes both the operation and the operands, allowing the ALU to read from and write to all 32 general-purpose registers in one cycle. The Flash program memory is organized as 16-bit words, and the linear address space maps registers, I/O, SRAM, and EEPROM into a unified addressing scheme. The USI (Universal Serial Interface) is a minimal hardware shift register with a 4-bit counter that can implement SPI or I2C by generating clock edges and shift pulses under software control, requiring less silicon area than dedicated peripherals. The UART transmitter shifts data out with automatically generated start and stop bits, while the receiver samples incoming data at mid-bit for noise tolerance. The debugWIRE interface uses a single-wire bidirectional connection on the RESET pin for on-chip debugging, allowing breakpoint setting and register inspection without a JTAG interface.
03ATTINY2313-20PU · Pin Description
Pin Name Type Description
1 PA2/RESET/dW I/O/System Port A2, reset input, debugWIRE
2 PD0/RXD I/O Port D0, UART receive
3 PD1/TXD I/O Port D1, UART transmit
4 PA1/XTAL2 I/O Port A1, crystal oscillator output
5 PA0/XTAL1 I/O Port A0, crystal oscillator input
6 PD2/INT0 I/O Port D2, external interrupt 0
7 PD3/INT1 I/O Port D3, external interrupt 1
8 PD4/T0 I/O Port D4, Timer 0 external clock
9 PD5/T1 I/O Port D5, Timer 1 external clock
10 GND Power Ground
11 PD6/ICP I/O Port D6, Timer 1 input capture
12 PB0/AIN0 I/O Port B0, comparator positive input
13 PB1/AIN1 I/O Port B1, comparator negative input
14 PB2/OC0A I/O Port B2, Timer 0 output compare A
15 PB3/OC1A I/O Port B3, Timer 1 output compare A
16 PB4/OC1B I/O Port B4, Timer 1 output compare B
17 PB5/MOSI/DI/SDA I/O Port B5, SPI MOSI/USI data/I2C SDA
18 PB6/MISO/DO I/O Port B6, SPI MISO/USI data out
19 PB7/SCK/SCL I/O Port B7, SPI clock/I2C SCL
20 VCC Power Supply voltage (2.7-5.5V)
04ATTINY2313-20PU · Application Scenarios
  • Maker/Hobby Projects: PDIP-20 package fits breadboards; UART and debugWIRE simplify prototyping with Arduino IDE and AVRDUDE
  • Protocol Bridges: USI and UART enable serial protocol conversion (SPI-to-UART, I2C-to-UART) in sensor interface modules
  • LED Controllers: 4 PWM channels drive RGBW LEDs with smooth dimming; 20 MHz supports high PWM frequencies
  • Battery-Powered Sensors: 0.1 µA power-down and 2.7V minimum operation suit coin-cell and single-cell Li-Ion applications
  • Simple Controllers: 2KB Flash and 18 I/O pins provide enough resources for state machines, relay controllers, and simple automation
05ATTINY2313-20PU · Alternative Models
Model Manufacturer Key Difference Package Specs
ATTINY2313A-PU Microchip Newer revision, 1.8V min, picoPower – –
ATTINY4313-PU Microchip 4KB Flash, 256B EEPROM, 256B RAM – –
ATTINY85-20PU Microchip 8KB Flash, PDIP-8, fewer pins – –
ATMEGA328P-PU Microchip 32KB Flash, 2KB RAM, PDIP-28 – –
PIC16F690-I/P Microchip 7KB Flash, 14-bit core, PDIP-20 – –

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

MTR7519-I/PT

3-phase MOSFET pre-driver, BLDC motor, 28-PDIP Industrial

Brand: MICROCHIPPackage: 28-PDIP

IN STOCK: 6345pcs

Cargo cycle: 3~7 Days

The minimum order is 1

PIC18F45K22-I

PIC18 XLP MCU, 32KB Flash, 1.5KB RAM, 256B EEPROM, 28-ch 10-bit ADC, 5 PWM, 2 comp, dual SPI/I2C, EUSART/LIN, CTMU, HLVD, 64MHz, 40/44-pin

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

IN STOCK: 9320pcs

Cargo cycle: 3~7 Days

The minimum order is 1

ATMEGA32A-AU

8-bit AVR MCU, 32KB Flash, 2KB SRAM, 1KB EE, 16MHz, 32 I/O, JTAG, TQFP-44

Brand: MICROCHIPPackage: TQFP-44 (10 x 10 x 1.0mm)

IN STOCK: 14135pcs

Cargo cycle: 3~7 Days

The minimum order is 1

LPC1788FBD144

Cortex-M3 120MHz MCU, 512KB Flash, 96KB RAM, Ethernet, USB, LCD, LQFP-144

Brand: NXPPackage: LQFP-144 (20 x 20 mm)

IN STOCK: 4718pcs

Cargo cycle: 3~7 Days

The minimum order is 1

GD32F105VCT6

Cortex-M3 Connectivity MCU, 108MHz, 256KB Flash, 96KB SRAM, USB OTG, LQFP-100

Brand: gigadevicePackage: LQFP-100 (14x14mm, 0.5mm pitch)

IN STOCK: 4223pcs

Cargo cycle: 3~7 Days

The minimum order is 1

STM32F030C6T6

Cortex-M0 MCU, 48 MHz, 32KB Flash, 4KB RAM, LQFP-48

Brand: STPackage: LQFP-48 (7 x 7 x 1.4 mm)

IN STOCK: 12476pcs

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.