ATTINY25
8-bit AVR MicrocontrollerThe ATTINY25 is a 8-bit avr microcontroller from Microchip Technology. View the full ATTINY25 datasheet below including key specifications, electrical characteristics, absolute maximum ratings.
ATTINY25 shares its datasheet with ATTINY85, whose page lists every part number it covers.
Official ATTINY25 datasheet (PDF) — the source this page was extracted from.
ATTINY25 Key Specifications
| Parameter | Value |
|---|---|
| Flash | 2/4/8 KB, 10,000 write/erase cycles |
| EEPROM | 128/256/512 B, 100,000 write/erase cycles |
| SRAM | 128/256/512 B |
| Active current | 300 μA at 1 MHz, 1.8 V |
| Power-down current | 0.1 μA at 1.8 V |
| ADC | 10-bit, 4 single-ended channels, 2 differential pairs with 1x/20x gain |
| Timers | one 8-bit Timer/Counter with two PWM channels; one 8-bit high-speed Timer/Counter with 2 high-frequency PWM outputs and a dead time generator |
ATTINY25 Overview
Part: ATtiny25/V / ATtiny45/V / ATtiny85/V — Atmel
Type: 8-bit AVR Microcontroller
Description: Low-power 8-bit AVR RISC microcontroller with 2/4/8 KB in-system programmable Flash, 128/256/512 B EEPROM, up to 20 MHz (4.5–5.5 V), 6 I/O lines and a 10-bit ADC.
Operating Conditions:
- Supply voltage: 1.8–5.5 V (ATtiny25V/45V/85V); 2.7–5.5 V (ATtiny25/45/85)
- Operating temperature: -55 to +125 °C (per the absolute maximum ratings table; the features list states "Industrial Temperature Range")
- Speed grade, ATtiny25V/45V/85V: 0–4 MHz at 1.8–5.5 V, 0–10 MHz at 2.7–5.5 V
- Speed grade, ATtiny25/45/85: 0–10 MHz at 2.7–5.5 V, 0–20 MHz at 4.5–5.5 V
Absolute Maximum Ratings:
- Max operating voltage: 6.0 V
- Voltage on any pin except RESET: -0.5 V to VCC + 0.5 V
- Voltage on RESET: -0.5 V to +13.0 V
- DC current per I/O pin: 40.0 mA
- DC current VCC and GND pins: 200.0 mA
- Storage temperature: -65 to +150 °C
Key Specs:
- Flash: 2/4/8 KB, 10,000 write/erase cycles
- EEPROM: 128/256/512 B, 100,000 write/erase cycles
- SRAM: 128/256/512 B
- Active current: 300 μA at 1 MHz, 1.8 V
- Power-down current: 0.1 μA at 1.8 V
- ADC: 10-bit, 4 single-ended channels, 2 differential pairs with 1x/20x gain
- Timers: one 8-bit Timer/Counter with two PWM channels; one 8-bit high-speed Timer/Counter with 2 high-frequency PWM outputs and a dead time generator
- Throughput approaching 1 MIPS per MHz
Features:
- Advanced RISC architecture with 120 instructions and 32 x 8 general purpose registers
- USI (Universal Serial Interface) with start condition detector
- Programmable watchdog timer with separate on-chip oscillator
- On-chip analog comparator and temperature measurement
- debugWIRE on-chip debug system
- In-system programmable via SPI port
- Idle, ADC Noise Reduction and Power-down modes
- Enhanced power-on reset and programmable brown-out detection
- Internal calibrated oscillator
- Six programmable I/O lines
Applications:
- Low-power embedded control
- Capacitive touch sensing (via the Atmel QTouch Library)
Package:
- 8-pin PDIP
- 8-pin SOIC
- 20-pad QFN/MLF
- 8-pin TSSOP (ATtiny45/V only)
ATTINY25 Features
- High Performance, Low Power AVR ® 8-Bit Microcontroller
- Advanced RISC Architecture
- -120 Powerful Instructions - Most Single Clock Cycle Execution
- -32 x 8 General Purpose Working Registers
- -Fully Static Operation
- Non-volatile Program and Data Memories
- -2/4/8K Bytes of In-System Programmable Program Memory Flash
- Endurance: 10,000 Write/Erase Cycles
- -128/256/512 Bytes In-System Programmable EEPROM
- Endurance: 100,000 Write/Erase Cycles
- -128/256/512 Bytes Internal SRAM
- -Programming Lock for Self-Programming Flash Program and EEPROM Data Security
- Peripheral Features
- -8-bit Timer/Counter with Prescaler and Two PWM Channels
- -8-bit High Speed Timer/Counter with Separate Prescaler
- 2 High Frequency PWM Outputs with Separate Output Compare Registers
- Programmable Dead Time Generator
- -USI - Universal Serial Interface with Start Condition Detector
- -10-bit ADC
- 4 Single Ended Channels
- 2 Differential ADC Channel Pairs with Programmable Gain (1x, 20x)
- Temperature Measurement
- -Programmable Watchdog Timer with Separate On-chip Oscillator
- -On-chip Analog Comparator
- Special Microcontroller Features
- -debugWIRE On-chip Debug System
- -In-System Programmable via SPI Port
- -External and Internal Interrupt Sources
- -Low Power Idle, ADC Noise Reduction, and Power-down Modes
- -Enhanced Power-on Reset Circuit
- -Programmable Brown-out Detection Circuit
- -Internal Calibrated Oscillator
- I/O and Packages
- -Six Programmable I/O Lines
- -8-pin PDIP, 8-pin SOIC, 20-pad QFN/MLF, and 8-pin TSSOP (only ATtiny45/V)
- Operating Voltage
- -1.8 - 5.5V for ATtiny25V/45V/85V
- -2.7 - 5.5V for ATtiny25/45/85
- Speed Grade
- -ATtiny25V/45V/85V: 0 - 4 MHz @ 1.8 - 5.5V, 0 - 10 MHz @ 2.7 - 5.5V
- -ATtiny25/45/85: 0 - 10 MHz @ 2.7 - 5.5V, 0 - 20 MHz @ 4.5 - 5.5V
- Industrial Temperature Range
- Low Power Consumption
- -Active Mode:
- 1 MHz, 1.8V: 300 μA
- Power-down Mode:
- 0.1 μA at 1.8V
ATTINY25 Pin Configuration
Figure 1-1. Pinout ATtiny25/45/85
NOTE: TSSOP only for ATtiny45/V
NOTE: Bottom pad should be soldered to ground.
DNC: Do Not Connect
ATTINY25 Electrical Characteristics
Table 21-1. DC Characteristics. T A = -40 C to +85 C
| Symbol | Parameter | Condition | Min. | Typ. (1) | Max. | Units |
|---|---|---|---|---|---|---|
| V IL | Input Low-voltage, except XTAL1 and RESET pin | V CC = 1.8V - 2.4V V CC = 2.4V - 5.5V | -0.5 -0.5 | 0.2V CC (3) 0.3V CC (3) | V V | |
| V IH | Input High-voltage, except XTAL1 and RESET pin | V CC = 1.8V - 2.4V V CC = 2.4V - 5.5V | 0.7V CC (2) 0.6V CC (2) | V CC +0.5 V CC +0.5 | V V | |
| V IL1 | Input Low-voltage, XTAL1 pin, External Clock Selected | V CC = 1.8V - 5.5V | -0.5 | 0.1V CC (3) | V | |
| V IH1 | Input High-voltage, XTAL1 pin, External Clock Selected | V CC = 1.8V - 2.4V V CC = 2.4V - 5.5V | 0.8V CC (2) 0.7V CC (2) | V CC +0.5 V CC +0.5 | V V | |
| V IL2 | Input Low-voltage, RESET pin | V CC = 1.8V - 5.5V | -0.5 | 0.2V CC (3) | V V | |
| V IH2 | Input High-voltage, RESET pin | V CC = 1.8V - 5.5V | 0.9V CC (2) | V CC +0.5 | V | |
| V IL3 | Input Low-voltage, RESET pin as I/O | V CC = 1.8V - 2.4V V CC = 2.4V - 5.5V | -0.5 -0.5 | 0.2V CC (3) 0.3V CC (3) | V V | |
| V IH3 | Input High-voltage, RESET pin as I/O | V CC = 1.8V - 2.4V V CC = 2.4V - 5.5V | 0.7V CC (2) 0.6V CC (2) | V CC +0.5 V CC +0.5 | V V | |
| V OL | Output Low-voltage, (4) Port B (except RESET) (6) | I OL = 10 mA, V CC = 5V I OL = 5 mA, V CC = 3V | 0.6 0.5 | V V | ||
| V OH | Output High-voltage, (5) Port B (except RESET) (6) | I OH = -10 mA, V CC = 5V I OH = -5 mA, V CC = 3V | 4.3 2.5 | V V | ||
| I IL | Input Leakage Current I/O Pin | V CC = 5.5V, pin low (absolute value) | < 0.05 | 1 | μA | |
| I IH | Input Leakage Current I/O Pin | V CC = 5.5V, pin high (absolute value) | < 0.05 | 1 | μA | |
| R RST | Reset Pull-up Resistor | V CC = 5.5V, input low | 30 | 60 | k |
Table 21-1. DC Characteristics. T A = -40 C to +85 C
*NOTICE:
Stresses beyond those listed under 'Absolute Maximum Ratings' may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or other conditions beyond those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Table 21-1. DC Characteristics. T A = -40 C to +85 C (Continued)
| Symbol | Parameter | Condition | Min. | Typ. (1) | Max. | Units |
|---|---|---|---|---|---|---|
| R pu | I/O Pin Pull-up Resistor | V CC = 5.5V, input low | 20 | 50 | k | |
| I CC | Power Supply Current (7) | Active 1 MHz, V CC = 2V | 0.3 | 0.55 | mA | |
| I CC | Power Supply Current (7) | Active 4 MHz, V CC = 3V | 1.5 | 2.5 | mA | |
| I CC | Power Supply Current (7) | Active 8 MHz, V CC = 5V | 5 | 8 | mA | |
| I CC | Power Supply Current (7) | Idle 1 MHz, V CC = 2V | 0.1 | 0.2 | mA | |
| I CC | Power Supply Current (7) | Idle 4 MHz, V CC = 3V | 0.35 | 0.6 | mA | |
| I CC | Power Supply Current (7) | Idle 8 MHz, V CC = 5V | 1.2 | 2 | mA | |
| I CC | Power-down mode (8) | WDT enabled, V CC = 3V | 10 | μA | ||
| I CC | Power-down mode (8) | WDT disabled, V CC = 3V | 2 | μA |
Notes:
-
Typical values at 25 C.
-
'Min' means the lowest value where the pin is guaranteed to be read as high.
-
'Max' means the highest value where the pin is guaranteed to be read as low.
-
Although each I/O port can sink more than the test conditions (10 mA at V CC = 5V, 5 mA at V CC = 3V) under steady state conditions (non-transient), the following must be observed:
-
1] The sum of all IOL, for all ports, should not exceed 60 mA.
If IOL exceeds the test condition, VOL may exceed the related specification. Pins are not guaranteed to sink current greater than the listed test condition.
- Although each I/O port can source more than the test conditions (10 mA at V CC = 5V, 5 mA at V CC = 3V) under steady state conditions (non-transient), the following must be observed:
- 1] The sum of all IOH, for all ports, should not exceed 60 mA.
If IOH exceeds the test condition, VOH may exceed the related specification. Pins are not guaranteed to source current greater than the listed test condition.
- The RESET pin must tolerate high voltages when entering and operating in programming modes and, as a consequence, has a weak drive strength as compared to regular I/O pins. See Figure 22-23, Figure 22-24, Figure 22-25, and Figure 22-26 (starting on page 184).
- Values are with external clock using methods described in 'Minimizing Power Consumption' on page 36. Power Reduction is enabled (PRR = 0xFF) and there is no I/O drive.
- Brown-Out Detection (BOD) disabled.
ATTINY25 Absolute Maximum Ratings
| Parameter | Limit |
|---|---|
| Operating Temperature | -55 C to +125 C |
| Storage Temperature | -65°C to +150°C |
| Voltage on any Pin except RESET with respect to Ground | -0.5V to V CC +0.5V |
| Voltage on RESET with respect to Ground | -0.5V to +13.0V |
| Maximum Operating Voltage | 6.0V |
| DC Current per I/O Pin | 40.0 mA |
| DC Current V CC and GND Pins | 200.0 mA |
Variants on the same datasheet
These parts have exact links to the same datasheet. They are candidates to compare, not verified drop-in replacements; check package, pinout and electrical limits.
| Part Number | Manufacturer | Package |
|---|---|---|
| ATTINY25/45/85 | Microchip Technology | — |
| ATTINY25V | Microchip Technology | — |
| ATTINY45 | Microchip Technology | — |
| ATTINY45V | Microchip Technology | — |
| ATTINY85 | Microchip Technology | 8-pin PDIP |
Other Microcontrollers (MCU)
- STM32F407VET6 – STMicroelectronics, ARM Cortex-M4 MCU
- STM32H563ZIT6 – STMicroelectronics, Arm Cortex-M33 32-bit MCU
- RP2040 – Raspberry Pi, Microcontroller
- STM32H743VIT6 – STMicroelectronics, Microcontroller Unit (MCU)
- STM32U575RIT6 – STMicroelectronics, Ultra-low-power Arm Cortex-M33 32-bit MCU
- STM32L011F4U6 – STMicroelectronics, Ultra-low-power Arm Cortex-M0+ MCU
- GD32F103C8T6 – GigaDevice, Arm Cortex-M3 32-bit MCU
- CH32H417QEU6 – WCH, Dual-Core RISC-V Microcontroller
All Microcontrollers (MCU) datasheetsAll Microchip Technology datasheets (599)
Ask your AI agent about the ATTINY25
Connect SheetsData to Claude, Cursor, Codex or any MCP client and your agent reads this datasheet for you: pinout, limits, register maps and design checks, with the numbers taken from the PDF.
claude mcp add --transport http sheetsdata https://mcp.sheetsdata.com/mcp
Then ask: "Can the ATTINY25 run from my 12 V rail? Check it against the datasheet limits."
Create a free account $2 of usage every month, no card needed.