ATTINY2313A-SU


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

6800

Effective Inventory
Go to Inquiry

Image for reference only

Manufacturer Part:

ATTINY2313A-SU

Package:

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

Brand:
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

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.

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 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
  • 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
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
NOVATEK 8-bit 6502 monitor MCU, 32KB Flash, 13x 8-bit PWM, 4ch ADC, I2C, OSD, PLCC-44

Brand:

Package:

PLCC-44 (16.5 x 16.5 mm, 1.27mm pitch)

In stock:

3200pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Quad-core Cortex-A53 SoC, 1.5GHz, Mali-T720 GPU, LTE Cat4, 28nm, 13MP ISP, VFBGA

Brand:

Package:

VFBGA-399 (12.6 x 12.6 mm)

In stock:

2800pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Dual Cortex-A9 at 800MHz, 3D GPU, 1080p VPU, DDR3-1066, PCIe/SATA/GbE, 624-LFBGA, industrial

Brand:

Package:

624-LFBGA (19 x 19 x 1.5 mm, 0.8mm pitch)

In stock:

2850pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
i.MXL applications processor, ARM920T 200MHz, LCD ctrl, USB, MMC/SD, 256-LFBGA, commercial temp

Brand:

Package:

256-LFBGA (Mold Array Process BGA, 0.8mm pitch)

In stock:

3420pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
32-bit FR60 RISC MCU, 100MHz, 544KB Flash, 40KB RAM, 3xCAN, 12xUSART, LQFP-176

Brand:

Package:

LQFP-176 (24 x 24 x 1.4 mm, 0.5mm pitch)

In stock:

5680pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Zigbee/IEEE802.15.4 wireless MCU, 512KB Flash, 32KB RAM, HVQFN40

Brand:

Package:

HVQFN40 (5×5 mm, SOT618-7, exposed pad)

In stock:

5632pcs

Cargo cycle: 3~7 Days
The minimum order is 1

Go to Inquiry
Quality Assurance

Quality is the core foundation of our long-term global cooperation. With over 20 years of experience in the electronic component industry, Materialparts has built a strict and standardized quality management system covering component sourcing, incoming inspection, full-batch testing, packaging and delivery. We are committed to delivering 100% genuine, high-reliability electronic components for industrial control, automotive electronics, consumer electronics and medical device industries, and fully safeguarding your production and R&D projects.

1. Authorized & Genuine Sourcing Promise

All of our electronic components are procured from official authorized distributors and original manufacturers. We strictly reject counterfeits, refurbished parts, disassembled components and gray-market goods. Every product is guaranteed to be brand-new original parts and fully consistent with the original technical parameters. For branded products such as NXP IC series, we maintain complete supply channel documents to realize full product traceability.

2. Strict Full-batch Quality Inspection

We implement 100% full-batch quality control for all goods before shipment. Our professional QC team conducts multi-dimensional tests including appearance inspection, electrical parameter testing, performance verification and packaging check. Each batch of components is attached with complete inspection reports and batch records. We stick to zero-tolerance standards for defective products to ensure every piece of component meets industrial application requirements.

3. Industry Standard Compliance

Our products comply with a variety of international industry quality standards to adapt to high-standard application scenarios:
  • Automotive Electronics: All automotive-grade components pass AEC-Q series certification, featuring excellent stability and durability to adapt to complex vehicle operating environments.
  • Medical Devices: High-reliability components meet medical industry safety and compliance regulations, ensuring stable operation for medical equipment.
  • Industrial Control & Consumer Electronics: Products conform to universal international electronic industry standards, suitable for long-term continuous operation of various equipment.

4. Professional Reliability Control

For static-sensitive, moisture-sensitive and precision components such as ICs, PCBs, sensors and connectors, we carry out reliability screening in advance. Combined with standardized ESD anti-static packaging and vacuum moisture-proof packaging, we avoid component damage caused by static electricity, dampness or collision during storage and transportation, and retain the original performance of products.

5. Traceability Management System

We establish a complete product traceability system. Each batch of goods corresponds to independent batch number, sourcing record, inspection record and delivery record. Customers can query the whole lifecycle information of components at any time. This system effectively solves quality risks and facilitates after-sales handling and production quality control for your company.

6. After-sales Quality Guarantee

If any product is confirmed to have non-conformity quality problems due to our reasons after receipt, we provide free return, exchange and supplementary delivery services. Our professional quality team will also conduct root cause analysis to optimize our quality control process. We respond to quality feedback within 24 hours to resolve your worries efficiently.

Contact Us

If you have inquiries about our quality standards, inspection procedures or product certification documents, please feel free to contact us:

 

Email: info@ic-vendor.com
Tel / WhatsApp: +86 13760382860
Address: Room 2919, Guoli Building, Huaqiang North, Futian District, Shenzhen, Guangdong, China

 

Shipping & Payment

Materialparts is a professional global supplier of electronic components with over 20 years of industry experience. We provide one-stop supply of passive components, integrated circuits, as well as parts for industrial control, automotive electronics, consumer electronics and medical devices. Below are the unified shipping and payment policies applicable to all orders, samples and bulk purchases worldwide.

1. Payment Terms

We offer a variety of secure and convenient payment methods to meet diverse business cooperation needs. Details are as follows:
  1. Accepted Payment Methods
  • T/T (Bank Wire Transfer): The primary settlement method for bulk orders and a widely used international payment channel.
  • PayPal: Ideal for small orders, sample orders and quick payments.
  1. Settlement Currency

     

    US Dollar (USD) is the default settlement currency. RMB is available for domestic customers.

  2. Bank Charges

     

    All transfer fees, intermediary bank charges and other remittance-related expenses shall be borne by the buyer.

  3. Payment Requirements
  • Sample and small orders: Shipment will be arranged upon full payment.
  • In-stock bulk orders: Goods will be delivered within 2 to 3 working days after full payment.

2. Shipping & Delivery

We partner with leading global logistics providers to ensure safe and fast delivery worldwide. Relevant details are listed below:
  1. Logistics Partners
  • International Express: DHL, FedEx, UPS, TNT
  • Economy Logistics: Air freight and sea freight for large-volume cargo
  • Domestic Delivery: SF Express, Yunda Express
  1. Order Processing Time
  • In-stock items: Orders confirmed and fully paid before 14:00 (GMT+8) will be shipped on the same day. All other orders will be dispatched within 1 to 2 working days.
  • Out-of-stock or sourced items: The delivery lead time will be confirmed separately according to brand and inventory status.
  1. Estimated Transit Time
  • International Express: 3 – 7 working days globally
  • Air Freight: 7 – 12 working days
  • Sea Freight: 25 – 40 working days for heavy and large bulk cargo
  1. Shipping Fee Rules
  • Shipping cost is calculated based on package weight, volume, destination and delivery method.
  • Both freight prepaid and freight collect are available. Please provide your courier account number in advance if you choose freight collect.
  • Free international express delivery is offered for large orders. Terms for long-term partners can be negotiated separately.
  1. Shipment Tracking
     

    Within 24 hours after dispatch, we will send the tracking number, commercial invoice, packing list and other documents to your email or communication account. You may check the shipment status online in real time.

3. General Order Rules & Notes

  1. MOQ & Sample Service

     

    We support flexible minimum order quantities for samples, small-batch and large-batch orders. All sample orders shall comply with the above shipping and payment policies.

  2. Packaging Standard

     

    All electronic components are packed with professional anti-static and shockproof materials. Original factory packaging is available for branded chips and integrated circuits.

4. Customs & Liability Statement

  1. Import Duties & Taxes

     

    All import duties, customs clearance fees and local taxes incurred for international shipments shall be borne by the buyer. We will provide complete customs documents to assist you with clearance procedures.

  2. Handling of Lost or Damaged Goods
  • In case of loss or severe damage during transit, please contact us within 48 hours after receiving the tracking information. We will assist you in filing a claim with the logistics provider.
  • We shall not be liable for any losses caused by incorrect delivery address, wrong contact information or the buyer’s refusal to complete customs clearance.

5. Local Pickup in Shenzhen

Local pickup service is available for customers in Shenzhen and surrounding areas:
  • Address: Room 2919, Guoli Building, Huaqiang North, Futian District, Shenzhen, Guangdong Province, China
  • Business Hours: 09:00 – 18:00, Monday to Friday. Closed on weekends and official public holidays.
  • Notice: Please make an appointment via email or communication tools one day in advance, and present your order information upon pickup.

Contact Information

Email: info@ic-vendor.com

Tel / WhatsApp: +86 13760382860

Service & Packaging

Materialparts is a professional electronic component supplier based in Shenzhen, China, with over 20 years of global trading experience. We integrate component procurement, quality inspection, technical support, customized packaging, and global delivery services to provide one-stop supply chain solutions. Our business covers industrial control, automotive electronics, consumer electronics, medical devices and other industries. We always adhere to genuine sources, stable supply and considerate after-sales service.

Core Services

1. One-stop Sourcing & BOM Support

We specialize in a full range of passive and active electronic components, including SMD resistors, power resistors, connectors, aviation connectors, LED beads, flexible circuit boards, printed circuit boards, and integrated circuits. Our professional team provides BOM list consolidation, component matching, and alternative model recommendation services. We support sample orders, small-batch trial production, and mass production orders with flexible MOQs to meet diverse procurement needs.

2. Genuine Product Guarantee & Full-process Quality Inspection

All products are sourced from official authorized channels and are 100% original genuine parts. Every batch of goods undergoes strict full-process quality inspection before delivery, with complete batch records and traceability documents provided. Our products comply with AEC-Q standards for automotive electronics and high-reliability specifications for medical devices. We eliminate counterfeits, refurbished parts and defective products from the source to secure your project production.

3. Fast Quotation & Order Processing

Our customer service team responds promptly to inquiries and quotation requests. All in-stock orders will be processed within one working day. We provide stocking reservation services for long-term cooperative customers, effectively solving problems such as component shortages and unstable supply chains.

4. Professional Technical Support

Our senior engineer team provides free technical consultation, model selection guidance and original manufacturer datasheets. We assist customers in solving problems related to product R&D, circuit design and component application, providing reliable technical support for project progress.

5. Sourcing for Special Components

Relying on our global supply chain network, we professionally source scarce components, obsolete parts and customized special components to efficiently solve your procurement difficulties.

6. Global Logistics & Document Services

We cooperate with mainstream international logistics providers including DHL, FedEx, UPS and TNT to achieve fast global delivery. We can provide complete export documents such as customs declaration files, commercial invoices and packing lists to ensure smooth customs clearance for international shipments. Local pickup is also available for customers in Shenzhen, China.

Professional Packaging Standards

Electronic components are sensitive to static electricity, collision, moisture and dust. We adopt industry-standard anti-static packaging solutions to fully ensure the integrity of goods during transportation and storage.

1. General Packaging Specifications

  • All components are packed separately to avoid damage caused by friction and collision;
  • Shockproof buffer materials are added for fragile products to ensure transportation safety;
  • Each package is clearly marked with part number, quantity, batch number and specifications for easy inventory counting and management.

2. Classified Professional Packaging

  • Anti-static Packaging: Static-sensitive components such as chips, circuit boards and sensors are packaged with anti-static bags, shielding boxes and conductive foam in strict accordance with international anti-static standards to prevent static damage.
  • Vacuum Moisture-proof Packaging: Moisture-sensitive components are vacuum-sealed with desiccants to isolate humid air, suitable for ocean transportation and long-term storage.
  • Original Factory Packaging: Integrated circuits of brands such as NXP are delivered with original reels, trays or tubes by default, retaining complete original packaging and adapting to automated SMT production lines.
  • Discrete Device Packaging: Discrete devices such as SMD resistors, power resistors and LEDs are quantitatively and classifiedly packaged with accurate quantity and clear marking.
  • Connector / Aviation Connector Packaging: Hard outer packaging is adopted to prevent pin bending and structural deformation.

3. Custom Packaging Services

We provide value-added services including personalized packaging, custom labeling and re-reeling according to customer requirements, fully matching your production and warehouse management standards.

Contact Information

For service consultation or packaging customization, please feel free to contact us:
Email: info@ic-vendor.com
Tel / WhatsApp: +86 13760382860
Address: Room 2919, Guoli Building, Huaqiang North, Futian District, Shenzhen, Guangdong, China
 

Online Inquiry Form

Support Excel, PDF, CSV format files for full BOM list quotation

Submit your component procurement and custom packaging needs via the form below. We will provide a detailed quotation and professional solution within 1–8 working hours.