Microchip Technology

ATTINY2313A-SU - 20MHz 8-bit AVR MCU, 2KB Flash | Microchip

Артикул: ATTINY2313A-SU ✓ Активен
1.8 V to 5.5 V Vdss 20-pin SOIC (wide-body, 300 mil) Package 20 MHz Speed 2 KB (1K x 16) Memory
MOQ: 1 |

ATTINY2313A-SU Обзор

The Microchip (formerly Atmel) ATTINY2313A-SU is a high-performance, picoPower 8-bit AVR RISC-based CMOS microcontroller featuring 2KB of in-system programmable Flash, 128B EEPROM, 128B SRAM, and 18 general-purpose I/O lines, all housed in a 20-pin SOIC (SOIC-20) wide-body package. It executes instructions in a single clock cycle, achieving throughputs up to 20 MIPS at 20MHz, with a wide operating voltage range of 1.8V to 5.5V that makes it suitable for both battery-powered and 5V-regulated systems.

An 8-bit microcontroller (MCU) is a small computing system-on-chip integrating a CPU core, program and data memory, and programmable I/O peripherals on a single die. The AVR RISC architecture used in the ATtiny2313A family is a Harvard-variant 8-bit core whose instruction set was designed for single-cycle execution and a uniform 16-bit instruction word, giving it a strong code-density and deterministic interrupt latency versus accumulator-based legacy 8-bit cores such as the 8051. The 'picoPower' designation refers to Microchip's family of ultra-low-power AVR devices with sub-microamp sleep currents and multiple software-controlled power-reduction modes.

Key features of the ATTINY2313A-SU include two flexible Timer/Counter peripherals with compare and PWM modes, a full-duplex hardware USART for asynchronous serial communication, a Universal Serial Interface (USI) supporting SPI and TWI (I2C), a single-wire debugWIRE on-chip debug interface, an internal calibrated RC oscillator, and an internal analog comparator. It also supports 12 interrupt sources, an enhanced watchdog timer with separate on-chip oscillator, and an interrupt-on-pin-change capability across all I/O lines. The 20-MHz maximum clock and 2KB ISP Flash (endurance >=10,000 write/erase cycles per Microchip datasheet) enable it to replace legacy discrete logic in compact embedded designs.

Architecturally, the ATtiny2313A uses a 32 x 8-bit general-purpose working register file directly connected to the ALU, allowing two independent registers to be accessed in one cycle. The program memory is organized as 1K x 16 bits (Flash) and the device includes a true Read-While-Write self-programming mechanism via the on-chip boot block, which simplifies in-field firmware updates. The USART supports both asynchronous and synchronous modes with fractional baud-rate generator, and the USI module can act as SPI master/slave or TWI master/slave.

Typical applications include USB-to-serial bridge replacements, IR remote control transmitters and receivers, consumer appliance controllers, simple sensor hubs, LED lighting controllers, and compact logic-replacement subsystems. The wide voltage range and low-power sleep modes also make it attractive for battery-driven products such as wireless sensor nodes, smart locks, and wearables.

When designing with this part, choose the internal calibrated RC oscillator for cost- and pin-sensitive designs, or add an external crystal on PB4/XTAL1 and PB5/XTAL2 when frequency accuracy matters. Decouple VCC (pins 1 and 19) with a 100nF ceramic capacitor placed within a few millimeters of the supply pins, and keep ISP programming traces short to avoid disrupting the debugWIRE interface during bring-up.

This page synthesizes distributor pricing, same-family drop-in alternatives, and practical design notes that go beyond the manufacturer datasheet, including explicit guidance on choosing ATtiny2313A-SU versus the pin-compatible ATtiny4313-SU and ATTINY2313A-PU DIP-package variant.

Аналоги без доработки для ATTINY2313A-SU — тот же корпус, pin-to-pin совместимость. Компоненты в других корпусах, требующие переработки PCB, исключены.

ATTINY4313-SU

✅ Прямая замена
📦 SOIC-20
Flash 2 KB -> 4 KB (+100%), EEPROM 128 B -> 256 B (+100%), SRAM 128 B -> 256 B (+100%); same SOIC-20 footprint, same AVR peripherals

📋 Справочный аналог (нет в каталоге)

ATTINY2313A-PU

✅ Прямая замена
📦 PDIP-20
Identical die in 20-pin PDIP package; SOIC vs DIP body style only, no electrical differences; footprint differs for PCB swap (PDIP-20 instead of SOIC-20)

📋 Справочный аналог (нет в каталоге)

ATTINY2313A-SUR

✅ Прямая замена
📦 SOIC-20
Same SOIC-20 die, tape-and-reel packaging variant; electrical specs identical, supplier packaging differs only

📋 Справочный аналог (нет в каталоге)

ATTINY2313-20SU

✅ Прямая замена
📦 SOIC-20
Earlier-generation ATtiny2313 in same SOIC-20; Flash 2 KB, 18 GPIO, 20 MHz - functionally equivalent to A-suffixed part for most uses, A-suffix adds power-reduction refinements

📋 Справочный аналог (нет в каталоге)

ATTINY2313A-SU

✅ Прямая замена
Microchip Technology
📦 SOIC-20
AVR 8-bit RISC · 20 MHz · 2 KB (1K x 16) · 128 B · 128 B · 18 · 32 · 1.8 V to 5.5 V

Уточнить цену

Открыть даташит →

ATTINY2313A-SU Максимальные параметры и электрические характеристики

Core Architecture AVR 8-bit RISC
Максимальная тактовая частота 20 MHz
Program Memory (Flash) 2 KB (1K x 16)
EEPROM 128 B
SRAM 128 B
General-Purpose I/O Lines 18
General-Purpose Working Registers 32
Operating Voltage Range 1.8 V to 5.5 V
Диапазон рабочих температур -40 C to +85 C
Supply Voltage - Min 2.5 V
Supply Voltage - Max 5.5 V
Timer/Counters 2 (8-bit and 16-bit, with compare/PWM modes)
USART 1 hardware USART
Serial Interfaces USART, USI (SPI / TWI), debugWIRE
Interrupt Sources 12
Watchdog Timer Yes, enhanced, separate on-chip oscillator
Internal Oscillator Calibrated RC, configurable
Analog Comparator Yes (on-chip)
Корпус 20-pin SOIC (wide-body, 300 mil)
Тип монтажа Surface Mount
Уровень MSL MSL 1 (per Microchip product page)
Статус RoHS Compliant
Lead-Free / Halogen-Free Yes / Yes
AEC-Q100 Automotive Qualification Not qualified

Конфигурация выводов ATTINY2313A-SU

SOIC-20 Package Pinout Diagram SOIC-20W 20-pin, 7.5x12.8mm, P1.27mm, JEDEC MS-013. 1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12 10 11 SOIC-20
Контакт 1 VCC — Power supply input (1.8V to 5.5V)
Контакт 2 PA0 — Port A bit 0 (MOSI / AREF)
Контакт 3 PA1 — Port A bit 1 (MISO)
Контакт 4 PA2 — Port A bit 2 (OC0A / AIN0)
Контакт 5 GND — Ground reference
Контакт 6 PD0 — Port D bit 0 (RXD / INT0)
Контакт 7 PD1 — Port D bit 1 (TXD / T0 / INT1)
Контакт 8 PD2 — Port D bit 2 (AIN0 / OC0B)
Контакт 9 PD3 — Port D bit 3 (OC1A / INT1)
Контакт 10 GND — Ground reference
Контакт 11 PD4 — Port D bit 4 (T0 / IC1)
Контакт 12 PD5 — Port D bit 5 (OC1B / T1)
Контакт 13 PD6 — Port D bit 6 (ICP / OC1D)
Контакт 14 PB0 — Port B bit 0 (MOSI / DI / SDA)
Контакт 15 PB1 — Port B bit 1 (MISO / DO)
Контакт 16 PB2 — Port B bit 2 (SCK / USCK / SCL)
Контакт 17 PB3 — Port B bit 3 (XTAL1 / CLKI / OC1D)
Контакт 18 PB4 — Port B bit 4 (XTAL2 / CLKO)
Контакт 19 VCC — Power supply input (1.8V to 5.5V)
Контакт 20 RESET/dW — Reset input / debugWIRE debug interface

Типичное применение

ATTINY2313A-SU подходит для 7 применениеs: USB-to-Serial Bridge Companion, IR Remote Control Transmitter/Receiver, Consumer Appliance Controller, LED Lighting Controller, Compact Sensor Hub Node, Logic Replacement / Glue Controller, Battery-Powered Wearable Controller.

🔧

USB-to-Serial Bridge Companion

The ATTINY2313A-SU is widely used as the firmware host in low-cost USB-to-UART bridges and CDC-class adapters. Its hardware USART with fractional baud-rate generator handles full-duplex 115,200 baud links to CH340/CP2102/FT232 hosts without software emulation. At 20 MHz it delivers 20 MIPS, easily handling USB request parsing, line-coding, and flow-control state machines in 2 KB of Flash. The 1.8V-5.5V VCC range lets it interface directly to 3.3V MCUs and 5V legacy UARTs without level shifters. Place a 100 nF decoupling cap within 5 mm of pins 1 and 19 and route the USART TX/RX traces as a matched differential pair for EMI control.

🎥

IR Remote Control Transmitter/Receiver

The ATTINY2313A-SU's 18 GPIO, hardware interrupt-on-pin-change, and 16-bit Timer/Counter1 with PWM make it a strong fit for IR remote transmitters and receivers. The interrupt-on-pin-change allows direct keypad-matrix scanning without glue logic, while Timer1 generates the 38 kHz/56 kHz carrier PWM for RC5/RC6/SIRC protocols at duty cycles below 50%. The internal RC oscillator is accurate enough for consumer-IR carrier generation. The 128 B SRAM is sufficient for protocol frame buffering and a 32-entry decode table. For battery remotes, the Power-Down mode with watchdog-disabled drops current below 1 uA, extending coin-cell life.

🏭

Consumer Appliance Controller

The ATTINY2313A-SU is a long-time workhorse for white-goods and small-appliance control boards, where it replaces discrete 555/4017 logic with a single 20-pin chip. Its USART enables factory calibration and in-field firmware updates, while the USI module handles SPI EEPROM/display or TWI sensor expansion. With a 5V supply and -40 C to +85 C industrial temperature range, it survives the under-cabinet and behind-panel thermal environments of microwave ovens, washing machines, and HVAC controllers. The hardware watchdog timer with separate on-chip oscillator provides fail-safe recovery in noisy motor environments.

💡

LED Lighting Controller

The ATTINY2313A-SU drives low-to-medium-density LED strings, addressable pixels (WS2811/WS2812), and PWM-dimmed indicator clusters from a single chip. Timer/Counter0 and Timer/Counter1 generate up to four PWM channels for RGBW color mixing, and the 20 MHz clock supports 800 kbps WS2812 bit-banging without DMA. The wide 1.8V-5.5V VCC range lets a single device drive both 3.3V logic-level LEDs and 5V analog strips. Internal comparator enables direct current sensing for closed-loop LED drivers. Designers typically pair it with a 100 nF supply bypass and a 10 uF bulk cap on the 5V rail for PWM transient handling.

🧩

Compact Sensor Hub Node

The ATTINY2313A-SU serves as a low-cost I2C/SPI sensor aggregator in IoT edge nodes where a larger MCU is overkill. The USI master handles TWI communication with temperature, humidity, and motion sensors, while the USART bridges aggregated telemetry to a parent MCU or radio. With picoPower Power-Down at sub-1 uA, it spends most of its time sleeping and wakes on interrupt-on-pin-change to take measurements. Its 18 GPIO is sufficient for a 4x4 keypad matrix, a status LED bank, and two interrupt-capable sensor lines, all without external glue logic.

🔧

Logic Replacement / Glue Controller

The ATTINY2313A-SU replaces legacy 74HC-series glue logic in designs that need a handful of state-machine behaviors rather than combinational gates. A 2 KB Flash state machine can replace dozens of discrete logic ICs on a legacy motherboard, reducing board area and BOM count. The 18 GPIO lines offer bidirectional buffering with programmable pull-ups, internal timers replace 555-based monostables, and the USART acts as a built-in debug port. With an industrial -40 C to +85 C range, it slots into legacy industrial controller retrofit boards where the original discrete logic has gone EOL.

📱

Battery-Powered Wearable Controller

The ATTINY2313A-SU fits inside coin-cell-powered wearables where board space is tight and current budget is in single-digit microamps average. Its picoPower Power-Down mode draws <1 uA with watchdog disabled, and Power-Save mode retains Timer2 running for periodic wake-ups. The 1.8V VCC floor allows direct operation from a single CR2032 cell through most of its discharge curve. The 18 GPIO drives haptic drivers, RGB indicator LEDs, and a small SPI OLED display via the USI module. The internal 8 MHz calibrated RC oscillator eliminates the need for an external crystal, saving two pins and board space.

What is the program memory size of ATTINY2313A-SU?
The ATTINY2313A-SU contains 2 KB of in-system programmable (ISP) Flash, organized as 1K x 16-bit words. According to the Microchip ATtiny2313A/4313 datasheet (8246S), the Flash has a minimum endurance of 10,000 write/erase cycles and supports Read-While-Write self-programming via the on-chip boot block, simplifying in-field firmware updates.
What is the maximum clock speed of ATTINY2313A-SU?
The ATTINY2313A-SU operates up to 20 MHz at 4.5V to 5.5V supply, delivering up to 20 MIPS throughput because the AVR core executes most instructions in a single clock cycle. At lower VCC the maximum clock is derated per the datasheet DC characteristics (e.g. 10 MHz at 2.7V and 4 MHz at 1.8V).
How many GPIO pins does ATTINY2313A-SU have?
The ATTINY2313A-SU provides 18 general-purpose I/O lines grouped into three ports (Port A: 3 pins, Port B: 8 pins, Port D: 7 pins). All 18 lines support interrupt-on-pin-change, which is one of the device's most popular features for matrix keypads and simple switch scanning.
What is the operating voltage range of ATTINY2313A-SU?
The ATTINY2313A-SU operates from 1.8V to 5.5V across its industrial -40 C to +85 C temperature range. This wide VCC range makes it suitable for both 3V coin-cell designs and 5V regulated systems. Power consumption drops to sub-microamp levels in Power-Down mode with the watchdog disabled.
Where can I download the ATTINY2313A-SU datasheet PDF?
The official Microchip datasheet for the ATtiny2313A/4313 family (document 8246S, revision S) is hosted at https://ww1.microchip.com/downloads/en/DeviceDoc/8246S.pdf. It includes pinout diagrams, electrical characteristics, instruction set summary, and programming specifications for the entire ATtiny2313A/4313 family.
What is the difference between ATTINY2313A-SU and ATTINY4313-SU?
The ATTINY4313-SU is the larger-memory sibling of the ATTINY2313A-SU, doubling the Flash to 4 KB, EEPROM to 256 bytes, and SRAM to 256 bytes. Both share the same 20-pin SOIC pinout and identical peripherals, so the ATTINY4313-SU is a fully drop-in replacement when more code or RAM space is required.
What is the difference between ATTINY2313A-SU and ATTINY2313A-PU?
The ATTINY2313A-SU and ATTINY2313A-PU are identical silicon in different packages: -SU is the 20-pin SOIC (wide-body, surface-mount) while -PU is the 20-pin PDIP (through-hole). Both share the same 2 KB Flash and electrical specs; choose -SU for SMT volume production and -PU for breadboarding and field service.
Is ATTINY2313A-SU RoHS compliant?
Yes, the ATTINY2313A-SU is RoHS compliant and lead-free per Microchip's product page (as of 2026-10-07). It is also REACH compliant. The part is not AEC-Q100 qualified; for automotive applications use the ATtiny2313A automotive-qualified variants or a different member of the AVR family explicitly listed for automotive use.
Where can I buy ATTINY2313A-SU online and what is the price?
The ATTINY2313A-SU is widely stocked at DigiKey (DigiKey PN 2238278-1-ND), Mouser, and Octopart-listed distributors. Per distributor listings as of 2026-10-07, the unit price at qty 1 is approximately USD 1.62, dropping to roughly USD 0.81 at qty 1000 - among the lowest-priced 8-bit AVRs in production at Microchip today.
What is the lead time for ATTINY2313A-SU?
Lead time for the ATTINY2313A-SU is typically 6 to 12 weeks ex-factory, and major distributors including DigiKey and Mouser usually show factory stock at qty 1 to several thousand on the order page. For current stock and ships-today availability, check DigiKey PN 2238278-1-ND directly, as the figure varies with Microchip's allocation cycles.
What are the key specifications of ATTINY2313A-SU that engineers should know?
The ATTINY2313A-SU is an 8-bit AVR MCU in a 20-pin SOIC, running up to 20 MHz at 5V for 20 MIPS throughput, with 2 KB ISP Flash, 128 B EEPROM, 128 B SRAM, 18 GPIO, 1 USART, USI (SPI/TWI), 2 Timer/Counters, debugWIRE, and an internal calibrated RC oscillator. The 1.8V to 5.5V VCC range and picoPower sleep modes make it ideal for compact low-cost embedded designs.
Is ATTINY2313A-SU suitable for USB-to-serial bridge designs?
Yes, the ATTINY2313A-SU is a popular USB-to-UART bridge companion chip thanks to its hardware USART, 20 MHz throughput, and small SOIC-20 footprint. It pairs naturally with CH340, CP2102, or FT232 hosts, and runs V-USB-style bit-banged firmware for low-cost USB peripherals when connected through PB0-PB5.
When should I choose ATTINY2313A-SU over ATMEGA48A-AU?
Choose ATTINY2313A-SU when the design needs the smallest possible package and the lowest cost, accepts 2 KB of Flash, and benefits from a hardware USART plus USI-based SPI/TWI. Choose ATMEGA48A-AU (an AVR 8-bit MCU in TQFP-32 with 4 KB Flash) when the design needs more memory, more GPIO, ADC channels, or a larger pin-count package.
Is ATTINY2313A-SU obsolete or still in production?
The ATTINY2313A-SU is still in active production at Microchip Technology as of 2026-10-07. The ATtiny2313A/4313 family is one of Microchip's longest-running 8-bit AVR lines and remains broadly stocked at major distributors. Microchip's standard longevity program commits to 15+ years of supply for most AVR and SAM devices.
What is the best Microchip equivalent for ATTINY2313A-SU if stock is low?
If ATTINY2313A-SU stock is constrained, the best Microchip equivalent is the ATTINY4313-SU, which shares the identical 20-pin SOIC footprint and full peripheral set, with 2x the Flash/EEPROM/SRAM. For surface-mount designs requiring more headroom, Microchip recommends migrating to ATtiny212 or ATtiny1624 in smaller SOIC/TSSOP packages.

Справочные инженерные данные для ATTINY2313A-SU — сравнение, рекомендации по проектированию и информация о соответствии.

Руководство по выбору

Choose the ATTINY2313A-SU when you need a small, low-cost 8-bit AVR MCU in a 20-pin wide-body SOIC with 2 KB Flash, 128 B SRAM, a hardware USART, USI-based SPI/TWI, and 18 GPIO, all at a unit price near USD 1.62 at qty 1. Migrate to ATTINY4313-SU when the firmware exceeds 2 KB or when more SRAM is needed - it shares the same SOIC-20 footprint and full peripheral set. Choose ATTINY2313A-PU for breadboard and through-hole prototype work where SMT tools are not available. For modern designs requiring more peripherals and a smaller package, evaluate the ATtiny1624 (SOIC-14/TSSOP-20) or ATtiny212 (SOIC-8), but note that these are not pin-compatible drop-in replacements and require PCB redesign plus firmware migration.

Сравнение с аналогами

Параметр Этот товар ATTINY4313-SU ATTINY2313A-PU ATTINY2313A-SUR ATTINY2313-20SU
Package SOIC-20 (wide-body) SOIC-20 - same PDIP-20 (NOT same footprint) SOIC-20 - same SOIC-20 - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Flash 2 KB 4 KB 2 KB 2 KB 2 KB
SRAM 128 B 256 B 128 B 128 B 128 B
EEPROM 128 B 256 B 128 B 128 B 128 B
Max Clock 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz
GPIO 18 18 18 18 18
Operating Voltage 1.8V to 5.5V 1.8V to 5.5V 1.8V to 5.5V 1.8V to 5.5V 2.7V to 5.5V

Ключевые отличия

  • Smallest Microchip 8-bit AVR MCU with hardware USART and 18 GPIO in SOIC-20 (против ATTINY212-SSN)
  • 2x memory headroom over ATTINY2313A-SU without changing the PCB (против ATTINY4313-SU)
  • Surface-mount production-friendly packaging (против ATTINY2313A-PU)

Заметки по проектированию

Decouple VCC (pins 1 and 19) with a 100 nF X7R ceramic capacitor placed within 5 mm of the supply pins; add a 10 uF bulk cap on the same rail if the design drives heavy PWM loads or shares the supply with motors. For battery applications, route both VCC pins to a star point and use separate ground traces back to pin 5/10 GND to keep digital switching currents out of the analog supply path.

ATTINY2313A-SU pins 5 and 10 are both GND - leaving pin 10 floating causes erratic I/O behavior on Port D because the digital ground return is incomplete. Always tie both GND pins to the board ground plane. The RESET pin (20) is also the debugWIRE pin; connect it through a 4.7 kohm pull-up to VCC per Microchip AVR042 recommendations and avoid long traces, which form an antenna that picks up HV programming signals.

If the design uses an external crystal on PB4/XTAL2 and PB3/XTAL1, route the crystal traces symmetrically with at least 0.5 mm clearance to other signals and add a guard ring tied to GND to keep oscillator harmonics from coupling into the ADC or analog comparator. For designs using only the internal RC oscillator, leave PB3/PB4 as general-purpose GPIO; programming the CKSEL fuses to 'Internal 8 MHz' avoids accidentally enabling an external crystal and saves two PCB traces.

The USART pins (PD0/RXD, PD1/TXD) should be routed away from PWM outputs (PD3/PD5/PD6) to avoid switching-noise coupling into the serial link. Keep the ISP programming header within 50 mm of the MCU and follow the 6-pin AVR ISP pinout so the same header works for both production programming and field updates via debugWIRE.

Информация о соответствии

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Без свинца
Yes
Без галогенов
Yes
Конфликтные минералы
Compliant

RoHS compliant per Microchip product page (as of 2026-10-07). Lead-free and halogen-free. Not AEC-Q100 qualified - not recommended for new automotive designs; use ATtiny automotive variants instead.

Данные проверены: 2026-10-07 — данные проверены и курируются командой компонентной инженерии XAIPART

Похожие запросы

ATTINY2313A-SU ATTINY2313A-SU datasheet ATTINY2313A-SU pinout ATTINY2313A-SU SOIC-20 AVR ATTINY2313A-SU vs ATTINY4313 ATTINY2313A-SU USB serial bridge ATTINY2313A-SU price buy ATTINY2313A-SU drop-in replacement AVR 20MHz 8-bit Microchip SOIC ATTINY2313A-SU PWM timer counter how to program ATTINY2313A-SU ATTINY2313A-SU lead time stock ATTINY2313A-SU Arduino compatible

Связанные компоненты & термины

Microchip Technology Atmel ATTINY2313A-SU ATTINY4313-SU ATTINY2313A-PU ATTINY2313A-SUR ATTINY2313-20SU AVR core 8-bit microcontroller RISC architecture picoPower Flash memory EEPROM SRAM USART USI SPI TWI I2C debugWIRE SOIC-20 SOIC wide-body PDIP-20 RoHS REACH AEC-Q100 lead-free halogen-free Timer/Counter PWM interrupt-on-pin-change watchdog timer internal RC oscillator USB-to-serial bridge consumer appliance controller IR remote control LED controller sensor hub
Быстрый запрос цены (RFQ)
Заполните все данные — наша команда продаж ответит в течение 24 часов
Артикул Производитель Корпус QTY Целевая цена Итого
✓
Запрос цены отправлен!

Мы ответим на ваш email в течение 24 часов

1
RFQ отправлен
2
Предложение получено
3
Заказ оформлен
4
Оплата
5
Отправлено
6
Доставлено
Просмотреть детали RFQ