Opens in a new tab

ATTINY2313A-SU

8-bit AVR tinyAVR MCU, 2KB Flash, 128B EEPROM, 20MHz, USART, 20-SOIC, Microchip ATtiny2313A

6800

Effective Inventory

{"AIGC":{"Label":1,"ContentProducer":"001191350200MA31G8XQ5H10000","ProduceID":"37583171448064095","ContentPropagator":"001191350200MA31G8XQ5H20000","PropagateID":"37583171448064095"}}

Image for reference only

Manufacturer Part:

ATTINY2313A-SU

Package:

20-SOIC (0.295″, 7.50mm Width), 12.8×7.6×2.35mm

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Other recommendations you may be interested in.

Description

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
Product Introduction: ATTINY2313A-SU Product Introduction

The ATTINY2313A-SU from Microchip Technology is a low-cost, high-performance 8-bit AVR microcontroller that delivers an excellent balance of features, power efficiency, and packaging flexibility. Built on the AVR enhanced RISC architecture with 120 powerful instructions (most executing in a single clock cycle), it achieves 20 MIPS of throughput at 20MHz operating frequency. The device integrates 2KB of in-system self-programmable Flash memory, 128 bytes of EEPROM (rated for 100,000 write cycles), and 128 bytes of internal SRAM. The peripheral set includes an 8-bit timer/counter, a 16-bit timer/counter with input capture and PWM, a full duplex USART, and a Universal Serial Interface (USI) that can be configured for SPI or TWI operation. An on-chip analog comparator with multiplexed inputs provides analog signal monitoring capability. The internal calibrated 8MHz RC oscillator eliminates the need for external crystal components in many applications, while still supporting external crystal/ceramic resonator and external clock inputs. The debugWIRE on-chip debug system enables in-circuit programming and debugging through a single I/O pin, reducing development time and cost. Operating from 1.8V to 5.5V with multiple power-saving modes, the ATtiny2313A is well-suited for battery-powered and low-power applications. With its 20-pin SOIC package and -40°C to +85°C temperature range, this tinyAVR device serves a broad range of applications including industrial control, automotive body electronics, consumer appliances, LED lighting, and battery management systems.

Working Principle: ATTINY2313A-SU Working Principle

The ATtiny2313A is based on the AVR Harvard architecture, which features separate memory buses for program and data, allowing instruction fetch and operand access to occur in parallel (pipelined). During a single clock cycle, one instruction is fetched from program memory while the previous instruction is executing, resulting in nearly one instruction per clock cycle execution. The 32 general-purpose working registers are directly connected to the ALU, enabling fast access and single-cycle arithmetic operations. The Flash memory is in-system programmable through the SPI interface, allowing firmware updates without removing the device from the target board. The EEPROM provides non-volatile data storage for configuration parameters and calibration data, with a separate address space and independent write/erase controller. The two timer/counter modules (8-bit and 16-bit) support multiple operating modes including normal counting, Clear Timer on Compare Match (CTC), and Pulse Width Modulation (PWM) for motor control, LED dimming, and timing applications. The USART provides full-duplex asynchronous serial communication, while the USI module can be configured for SPI or two-wire serial communication. The analog comparator compares voltages on the AIN0 and AIN1 pins and can generate interrupts or trigger timer events based on the comparison result. Power management is handled through multiple sleep modes (Idle, ADC Noise Reduction, Power-down, and Standby), allowing significant power savings by disabling unused peripherals and clock domains.

Pin Description: ATTINY2313A-SU Pin Definition and Functions
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
Application Scenarios: In which products and applications is ATTINY2313A-SU used
  • 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
Alternative Models: What chips are recommended as replacements for ATTINY2313A-SU
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

Recommend Parts

RK73B2ATTD100J

10Ohm +/-5% 0.125W thick film resistor, 0805, +/-200 ppm/C, AEC-Q200

Brand: KOA Speer

Package: 0805 (2012 Metric) 2.0 x 1.25 x 0.55 mm

IN STOCK: 26435pcs

Cargo cycle: 3-7 Days

The minimum order is 1

TPS77001DBVR

50mA LDO, adjustable 1.2-5.5V out, 35mV dropout, 17µA IQ, SOT-23-5

Brand: TI

Package: SOT-23-5 (2.9 x 1.6 x 1.45 mm)

IN STOCK: 5000pcs

Cargo cycle: 3-7 Days

The minimum order is 1

TPL5010DDCR

Nano-power watchdog timer with power good, SOT-23-6

Brand: TI

Package: SOT-23-6 (2.9 x 1.6 x 1.1 mm, DDC package)

IN STOCK: 12122pcs

Cargo cycle: 3-7 Days

The minimum order is 1

S1MB-13-F

1A 1000V GPP rectifier, 1.1V VF, 3μs trr, SMB/DO-214AA, -65~150°C

Brand: Diodes Inc

Package: SMB / DO-214AA (4.57 x 3.94 x 2.50mm)

IN STOCK: 3679pcs

Cargo cycle: 3-7 Days

The minimum order is 1

WS2811

3-channel LED driver IC with built-in oscillator, SOP-8

Brand: Worldsemi

Package: SOP-8 (5.2 x 4.0 mm)

IN STOCK: 7374pcs

Cargo cycle: 3-7 Days

The minimum order is 1

AD9912ABCPZ

1GSPS direct digital synthesizer with 14-bit DAC, LFCSP-64

Brand: ADI

Package: LFCSP-64 (9.0 x 9.0 mm, BCPZ package)

IN STOCK: 3719pcs

Cargo cycle: 3-7 Days

The minimum order is 1