ATTINY25-20SN

8-bit microcontrollers with 2KB flash memory for embedded systems

Manufacturer: ['microchip', 'atmel']

series introduction

# Introduction to the ATTINY25 - 20SN Product Series

## 1. Overview
The ATTINY25 - 20SN is a member of the highly regarded AVR® 8 - bit microcontroller family developed by Microchip Technology. This product series is specifically designed to offer a cost - effective, low - power, and high - performance solution for a wide range of embedded applications. With its compact size and rich feature set, the ATTINY25 - 20SN is an ideal choice for projects where space, power consumption, and cost are critical factors.

## 2. Key Features

### 2.1 Microcontroller Core
- **AVR Architecture**: Based on the AVR RISC (Reduced Instruction Set Computing) architecture, the ATTINY25 - 20SN provides a high - level of code efficiency. It can execute most instructions in a single clock cycle, enabling fast processing speeds and efficient use of system resources.
- **8 - bit CPU**: The 8 - bit central processing unit offers sufficient processing power for a variety of applications, including sensor data acquisition, simple control systems, and small - scale automation tasks.

### 2.2 Memory
- **Flash Memory**: It comes with 2KB of in - system self - programmable Flash memory. This non - volatile memory allows for easy firmware updates and storage of the application code. The Flash memory has a high endurance, typically supporting up to 10,000 write/erase cycles, ensuring long - term reliability.
- **SRAM**: There is 128 bytes of static random - access memory (SRAM) available for data storage during program execution. This SRAM provides a fast and temporary storage space for variables, buffers, and intermediate results, facilitating smooth program operation.
- **EEPROM**: The device also includes 128 bytes of electrically erasable programmable read - only memory (EEPROM). EEPROM is useful for storing critical data such as calibration values, configuration settings, and user preferences that need to be retained even when the power is turned off.

### 2.3 I/O Ports
- **Multiple I/O Pins**: The ATTINY25 - 20SN features a total of 6 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 simplifies the circuit design when interfacing with external devices that require a pull - up connection, reducing the need for external components.

### 2.4 Peripherals

#### 2.4.1 Timer/Counters
- **8 - bit Timer/Counter0**: This timer/counter can be used for a variety of timing and counting applications, such as generating PWM (Pulse Width Modulation) signals for motor control, measuring time intervals, and implementing delay functions. It offers multiple operating modes, including normal mode, phase - correct PWM mode, and fast PWM mode, providing flexibility in different application scenarios.
- **8 - bit Timer/Counter1**: Similar to Timer/Counter0, Timer/Counter1 also provides timing and counting capabilities. It can be used in conjunction with Timer/Counter0 to expand the timing and control functions of the microcontroller.

#### 2.4.2 Analog - to - Digital Converter (ADC)
- **8 - channel ADC**: The ATTINY25 - 20SN is equipped with an 8 - channel 10 - bit ADC. This allows for the conversion of analog signals from external sensors (such as temperature sensors, light sensors, and pressure sensors) into digital values that

Images for reference

8-SOIC

8-SOIC

Image Preview

Image Preview

related Documents

Datasheets

Partlist

ATTINY25-20SN
ATTINY25-20SNR