Home/Products/Microcontrollers (MCU), Microcontrollers & Processors/ATTINY2313A-SU
ATTINY2313A-SU
8-bit AVR tinyAVR MCU, 2KB Flash, 128B EEPROM, 20MHz, USART, 20-SOIC, Microchip ATtiny2313A
Effective inventoryPCS

SpecificationsTechnical data
Manufacturer part
ATTINY2313A-SU
Package
20-SOIC (0.295″, 7.50mm Width), 12.8×7.6×2.35mm
Brand
MICROCHIP
Category
Microcontrollers (MCU), Microcontrollers & Processors
Quality Commitment
Shipping & Payment
Service & Packaging
DescriptionProduct overview
Product Overview
The ATTINY2313A-SU is a low-power 8-bit AVR microcontroller from Microchip Technology (formerly Atmel). Based on the advanced RISC architecture, the ATtiny2313A delivers 20 MIPS of throughput at 20MHz while operating from a 1.8V to 5.5V supply voltage. It features 2KB of in-system self-programmable Flash memory, 128 bytes of EEPROM, 128 bytes of SRAM, and 18 general-purpose I/O lines. The peripheral set includes an 8-bit and a 16-bit timer with PWM, a USART, SPI, and an analog comparator. With on-chip debug support (debugWIRE) and a rich feature set in a small 20-pin SOIC package, the ATtiny2313A is an ideal solution for space-constrained, cost-sensitive applications including industrial control, automotive systems, consumer products, and battery-powered devices.
Key Specifications
| Parameter | Value |
| Manufacturer | Microchip Technology (Atmel) |
| Core Architecture | AVR 8-bit RISC |
| CPU Speed (max) | 20 MHz (20 MIPS) |
| Program Memory | 2KB (2K x 8) In-System Programmable Flash |
| EEPROM Data Memory | 128 bytes |
| SRAM Size | 128 bytes |
| Supply Voltage Range | 1.8V to 5.5V |
| I/O Pins | 18 GPIO |
| External Interrupts | 2 (INT0, INT1) + pin change interrupts |
| Timers | 1x 8-bit Timer/Counter (T0), 1x 16-bit Timer/Counter1 |
| PWM Channels | 2 channels (8-bit + 16-bit) |
| USART | 1 (full duplex UART/USI) |
| SPI | Universal Serial Interface (USI, SPI compatible) |
| Analog Comparator | 1 (on-chip analog comparator) |
| Watchdog Timer | Yes (WDT with separate oscillator) |
| Internal Oscillator | 8MHz calibrated internal RC oscillator |
| Brown-Out Detection | Yes (BOD with programmable levels) |
| debugWIRE | On-chip debug system |
| Operating Temperature | -40°C to +85°C (industrial) |
| Package | 20-SOIC (0.295″, 7.50mm Width) |
| Packaging | Tube, 40 pcs/tube |
Features
- High-performance, low-power AVR 8-bit RISC CPU
- 120 powerful instructions — most execute in one clock cycle
- 20 MIPS throughput at 20MHz
- 2KB in-system programmable Flash memory
- 128 bytes EEPROM with 100K write cycles
- 128 bytes internal SRAM
- 18 general-purpose I/O lines
- One 8-bit timer/counter with prescaler and PWM
- One 16-bit timer/counter with prescaler, PWM, input capture
- Full duplex USART with start condition detector
- Universal Serial Interface (USI) with start condition detector
- Analog comparator with programmable input multiplexer
- Programmable watchdog timer with on-chip oscillator
- Internal calibrated 8MHz RC oscillator
- External and internal interrupt sources
- Low power idle, ADC noise reduction, and power-down modes
- Enhanced Power-on Reset (POR)
- Programmable brown-out detection (BOD)
- debugWIRE on-chip debug system
- Wide operating voltage: 1.8V to 5.5V
- Temperature range: -40°C to +85°C
Applications
- Industrial control and sensor interfaces
- Automotive body electronics
- Consumer electronics and appliances
- LED lighting control
- Motor control and fan drives
- Battery chargers and power management
- Keypad and user interface controllers
- Smart sensors and IoT devices
- Security systems and access control
- General-purpose embedded control systems
01ATTINY2313A-SU · Product Introduction
02ATTINY2313A-SU · Working Principle
03ATTINY2313A-SU · Pin Description
| Pin | Name | Type | Description |
|---|---|---|---|
| 1 | PB0 / MOSI / DI / SDA / AIN0 | I/O | Port B I/O / SPI MOSI / USI DI / TWI SDA / Analog Comparator +Input |
| 2 | PB1 / MISO / DO | I/O | Port B I/O / SPI MISO / USI DO |
| 3 | PB2 / SCK / SCL / USCK / INT0 | I/O | Port B I/O / SPI SCK / TWI SCL / USI Clock / External Interrupt 0 |
| 4 | VCC | Power | Positive supply voltage (1.8V to 5.5V) |
| 5 | GND | Power | Ground |
| 6 | PB3 / OC1B / XTAL1 / CLKI | I/O | Port B I/O / Timer1 OC1B / Crystal Osc. Input / Clock Input |
| 7 | PB4 / OC1B / XTAL2 / CLKO | I/O | Port B I/O / Timer1 OC0B / Crystal Osc. Output / Clock Output |
| 8 | PB5 / OC0A / OC1A / MOSI / DI | I/O | Port B I/O / Timer0 OC0A / Timer1 OC1A |
| 9 | PB6 / OC0B / OC1B / MISO / DO | I/O | Port B I/O / Timer0 OC0B / Timer1 OC1B |
| 10 | PB7 / OC0A / OC1A / SCK / SCL | I/O | Port B I/O / Timer0 OC0A / Timer1 OC1A |
| 11-18 | PD0-PD7 | I/O | Port D I/O with RXD, TXD, INT1, T0, T1, ICP, AIN1 functions |
| 19 | PA0 / AIN0 / REF | I/O | Port A I/O / Analog Comparator Input |
| 20 | RESET / dW | I/O | Reset Input / debugWIRE |
04ATTINY2313A-SU · Application Scenarios
- Industrial Sensor Interfaces: Serves as a low-cost controller for temperature, pressure, and proximity sensors with USART/SPI communication and analog comparator for signal monitoring
- LED Lighting Control: Implements PWM-based dimming and color control for LED lighting systems, including RGB LEDs and LED strips
- Motor and Fan Control: Provides speed control for small DC motors, cooling fans, and brushless motor commutation using PWM and timer peripherals
- Automotive Body Electronics: Used in door modules, mirror control, seat adjustment, and small motor control applications in automotive systems
- Battery-Powered Devices: Excellent for battery-operated sensors, remote controls, and wearable devices due to low power consumption and multiple sleep modes
- Keypad Controllers: Manages matrix keypads and user interface inputs with pin change interrupts and low-power wake-up capability
- Smart Sensors/IoT: Forms the intelligence in small IoT sensor nodes and smart sensor modules with wireless connectivity
- Power Management: Implements battery charging control, power supply sequencing, and monitoring functions in portable and embedded systems
05ATTINY2313A-SU · Alternative Models
| Model | Manufacturer | Flash | RAM | Core | Package |
|---|---|---|---|---|---|
| ATTINY4313A-SU | Microchip | 4KB | 256B | AVR | 20-SOIC |
| ATTINY24A-SSU | Microchip | 2KB | 128B | AVR | 14-SOIC (with 10-bit ADC) |
| PIC16F15313 | Microchip | 3.5KB | 256B | PIC | 14-SOIC |
| STM8S001J3 | STMicro | 8KB | 1KB | STM8 | SOIC-8 |
| MC908QT4ACDWE | NXP | 4KB | 128B | HC08 | 8-SOIC |
Request a quoteWithin 24h
Tell us the quantity you need. We confirm price and availability within one business day.
IC-Vendor · Sourcing
Verified stock, quoted fast.
Recommended

GD32F303ZET6
Cortex-M4 32-bit MCU, 120MHz, 512KB Flash, 64KB SRAM, SDIO, EXMC, LQFP-144
IN STOCK: 4382pcs
Cargo cycle: 3~7 Days
The minimum order is 1

PIC10F202T-I
8-bit tiny MCU, 512W Flash, 4MHz int osc, analog comparator, SOT-23-6
IN STOCK: 9800pcs
Cargo cycle: 3~7 Days
The minimum order is 1

STC15W408AS-35I
Enhanced 1T 8051 MCU, 35MHz, 2.4-5.5V, 8KB Flash, 5KB EEPROM, 10-bit 8-ch ADC, 3-ch PWM, SPI, UART
IN STOCK: 4242pcs
Cargo cycle: 3~7 Days
The minimum order is 1

STM32H743BIT6
Flagship ARM Cortex-M7 MCU at 480MHz with 2MB dual-bank Flash, 1MB SRAM, LCD-TFT, JPEG, FDCAN, Ethernet, DFSDM, HRTIM in LQFP-208.
IN STOCK: 2743pcs
Cargo cycle: 3~7 Days
The minimum order is 1

STM32L452RCT6
Ultra-low-power ARM Cortex-M4 MCU with FPU, 80MHz, 256KB Flash, 160KB SRAM, USB FS, LQFP64
IN STOCK: 10650pcs
Cargo cycle: 3~7 Days
The minimum order is 1

STM32H7A3ZIT6
ARM Cortex-M7 MCU at 280MHz with 2MB Flash, 1.4MB SRAM, LCD-TFT, JPEG, Octo-SPI, FDCAN, DFSDM, SMPS, high RAM-to-Flash ratio in LQFP-144.
IN STOCK: 3284pcs
Cargo cycle: 3~7 Days
The minimum order is 1
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
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
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.
