Skip to main content

We use cookies to understand how you use our site and improve your experience. See our Privacy Policy.

ATTINY25

8-bit AVR Microcontroller

The 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.

Package

8-pin PDIP, 8-pin SOIC

ATTINY25 Key Specifications

ParameterValue
Flash2/4/8 KB, 10,000 write/erase cycles
EEPROM128/256/512 B, 100,000 write/erase cycles
SRAM128/256/512 B
Active current300 μA at 1 MHz, 1.8 V
Power-down current0.1 μA at 1.8 V
ADC10-bit, 4 single-ended channels, 2 differential pairs with 1x/20x gain
Timersone 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

SymbolParameterConditionMin.Typ. (1)Max.Units
V ILInput Low-voltage, except XTAL1 and RESET pinV CC = 1.8V - 2.4V V CC = 2.4V - 5.5V-0.5 -0.50.2V CC (3) 0.3V CC (3)V V
V IHInput High-voltage, except XTAL1 and RESET pinV CC = 1.8V - 2.4V V CC = 2.4V - 5.5V0.7V CC (2) 0.6V CC (2)V CC +0.5 V CC +0.5V V
V IL1Input Low-voltage, XTAL1 pin, External Clock SelectedV CC = 1.8V - 5.5V-0.50.1V CC (3)V
V IH1Input High-voltage, XTAL1 pin, External Clock SelectedV CC = 1.8V - 2.4V V CC = 2.4V - 5.5V0.8V CC (2) 0.7V CC (2)V CC +0.5 V CC +0.5V V
V IL2Input Low-voltage, RESET pinV CC = 1.8V - 5.5V-0.50.2V CC (3)V V
V IH2Input High-voltage, RESET pinV CC = 1.8V - 5.5V0.9V CC (2)V CC +0.5V
V IL3Input Low-voltage, RESET pin as I/OV CC = 1.8V - 2.4V V CC = 2.4V - 5.5V-0.5 -0.50.2V CC (3) 0.3V CC (3)V V
V IH3Input High-voltage, RESET pin as I/OV CC = 1.8V - 2.4V V CC = 2.4V - 5.5V0.7V CC (2) 0.6V CC (2)V CC +0.5 V CC +0.5V V
V OLOutput Low-voltage, (4) Port B (except RESET) (6)I OL = 10 mA, V CC = 5V I OL = 5 mA, V CC = 3V0.6 0.5V V
V OHOutput High-voltage, (5) Port B (except RESET) (6)I OH = -10 mA, V CC = 5V I OH = -5 mA, V CC = 3V4.3 2.5V V
I ILInput Leakage Current I/O PinV CC = 5.5V, pin low (absolute value)< 0.051μA
I IHInput Leakage Current I/O PinV CC = 5.5V, pin high (absolute value)< 0.051μA
R RSTReset Pull-up ResistorV CC = 5.5V, input low3060k

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)

SymbolParameterConditionMin.Typ. (1)Max.Units
R puI/O Pin Pull-up ResistorV CC = 5.5V, input low2050k
I CCPower Supply Current (7)Active 1 MHz, V CC = 2V0.30.55mA
I CCPower Supply Current (7)Active 4 MHz, V CC = 3V1.52.5mA
I CCPower Supply Current (7)Active 8 MHz, V CC = 5V58mA
I CCPower Supply Current (7)Idle 1 MHz, V CC = 2V0.10.2mA
I CCPower Supply Current (7)Idle 4 MHz, V CC = 3V0.350.6mA
I CCPower Supply Current (7)Idle 8 MHz, V CC = 5V1.22mA
I CCPower-down mode (8)WDT enabled, V CC = 3V10μA
I CCPower-down mode (8)WDT disabled, V CC = 3V2μA

Notes:

  1. Typical values at 25 C.

  2. 'Min' means the lowest value where the pin is guaranteed to be read as high.

  3. 'Max' means the highest value where the pin is guaranteed to be read as low.

  4. 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:

  5. 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.

  1. 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:
  2. 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.

  1. 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).
  2. 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.
  3. Brown-Out Detection (BOD) disabled.

ATTINY25 Absolute Maximum Ratings

ParameterLimit
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 Voltage6.0V
DC Current per I/O Pin40.0 mA
DC Current V CC and GND Pins200.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 NumberManufacturerPackage
ATTINY25/45/85Microchip Technology—
ATTINY25VMicrochip Technology—
ATTINY45Microchip Technology—
ATTINY45VMicrochip Technology—
ATTINY85Microchip Technology8-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)

Data on this page is extracted from publicly available manufacturer datasheets using automated tools including AI. It may contain errors or omissions. Always verify specifications against the official manufacturer datasheet before making design or purchasing decisions. See our Terms of Service. Rights holders can submit a takedown request.

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.