ATTINY4313-SU

8-bit AVR microcontrollers with 4KB Flash, 256B RAM, 20MHz, SOIC package

Manufacturer: ['microchip', 'atmel']

series introduction

# Introduction to the ATTINY4313 - SU Product Series

## 1. Overview
The ATTINY4313 - SU is a member of the highly regarded AVR® microcontroller family developed by Microchip Technology. This product series is specifically designed to offer a cost - effective, high - performance solution for a wide range of embedded applications. With its compact size and rich set of features, the ATTINY4313 - SU is an ideal choice for projects where space, power consumption, and functionality are crucial considerations.

## 2. Key Features

### 2.1 Microcontroller Core
- **AVR RISC Architecture**: The ATTINY4313 - SU is based on the AVR Reduced Instruction Set Computer (RISC) architecture. This architecture allows for efficient execution of instructions, enabling the microcontroller to perform complex tasks with high speed. It has a large number of general - purpose working registers, which reduces the need for memory access during instruction execution, thereby improving overall performance.
- **High - Speed Processing**: It can operate at clock frequencies up to 20 MHz, providing fast processing capabilities for real - time applications. This high - speed operation makes it suitable for tasks such as sensor data acquisition, control algorithms, and communication protocols.

### 2.2 Memory
- **Flash Program Memory**: The microcontroller comes with 4 KB of in - system self - programmable Flash memory. This non - volatile memory is used to store the program code, allowing for easy reprogramming and updates. The Flash memory has a high endurance, with a specified number of write/erase cycles, ensuring long - term reliability of the stored program.
- **SRAM**: There is 256 bytes of Static Random - Access Memory (SRAM) available for data storage during program execution. This SRAM provides a fast and temporary storage area for variables, buffers, and intermediate results, enabling efficient data handling.
- **EEPROM**: A 128 - byte Electrically Erasable Programmable Read - Only Memory (EEPROM) is also included. EEPROM is useful for storing non - volatile data such as calibration values, configuration settings, and user - specific data that need to be retained even when the power is turned off.

### 2.3 I/O Ports
- **Multiple General - Purpose I/O Pins**: The ATTINY4313 - SU features a total of 18 general - purpose input/output (GPIO) pins. These pins can be configured as either inputs or outputs, allowing for easy interfacing with external devices such as sensors, actuators, displays, and communication modules.
- **Pull - Up Resistors**: Each GPIO pin can be individually configured with an internal pull - up resistor. This feature is useful when connecting external switches or sensors that require a pull - up to a high logic level, reducing the need for external components.

### 2.4 Peripherals

#### 2.4.1 Timer/Counters
- **Two 8 - Bit Timer/Counters**: The microcontroller is equipped with two 8 - bit timer/counters (Timer0 and Timer2). These timer/counters can be used for a variety of applications, such as generating precise time delays, PWM (Pulse Width Modulation) signal generation for motor control or LED dimming, and event counting.
- **One 16 - Bit Timer/Counter**: There is also a 16 - bit timer/counter (Timer1). The 16 - bit resolution of Timer1 allows for more precise timing and counting operations, making it suitable for applications that require high - accuracy timekeeping or frequency measurement.

#### 2.4.2 Analog - to - Digital Converter (ADC)
- **10 - Bit ADC**: The ATTINY431

Images for reference

20-SOIC 0.295

20-SOIC 0.295

20-SOIC 0.295

20-SOIC 0.295

20-SOIC

20-SOIC

Datasheets

Partlist

ATTINY4313-SU
ATTINY4313-SUR