ATTINY2313A-SU - 20MHz 8-bit AVR MCU, 2KB Flash | Microchip
부품 번호: ATTINY2313A-SU ✓ 활성ATTINY2313A-SU 개요
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 — 동일 패키지, 핀 호환. PCB 재작업이 필요한 다른 패키지 부품은 제외됩니다.
ATTINY4313-SU
✅ 드롭인📋 참조 대체품 (카탈로그에 없음)
ATTINY2313A-PU
✅ 드롭인📋 참조 대체품 (카탈로그에 없음)
ATTINY2313A-SUR
✅ 드롭인📋 참조 대체품 (카탈로그에 없음)
ATTINY2313-20SU
✅ 드롭인📋 참조 대체품 (카탈로그에 없음)
ATTINY2313A-SU
✅ 드롭인가격 문의
데이터시트 보기 →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 핀 구성
| 핀 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.
추천
추천 제품 요약
엔지니어링 참조 데이터: ATTINY2313A-SU — 비교, 설계 지침 및 규정 준수 정보.
선택 가이드
대체품과의 비교
| 파라미터 | 이 제품 | 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 (vs ATTINY212-SSN)
- 2x memory headroom over ATTINY2313A-SU without changing the PCB (vs ATTINY4313-SU)
- Surface-mount production-friendly packaging (vs 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 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.