Opens in a new tab

ATtiny85-20PU

8-bit AVR MCU, 8KB Flash, 512B SRAM, 6 I/O, 8-PDIP, Arduino compatible

8125

Effective Inventory

Image for reference only

Manufacturer Part:

ATtiny85-20PU

Package:

8-PDIP

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Other recommendations you may be interested in.

Description

Product Overview

The ATtiny85-20PU from Microchip Technology is an 8-bit AVR microcontroller with 8KB Flash, 512B SRAM, and 512B EEPROM in an 8-pin DIP package. Running at up to 20MHz with 6 I/O pins, it is the smallest functional AVR for space-constrained and minimalist embedded projects. Ranked #7 on the 2024 PartsBox hobby components list.

Key Specifications

Core 8-bit AVR
Max Frequency 20MHz
Flash 8KB
SRAM 512B
EEPROM 512B
I/O Pins 6 (out of 8 pins)
ADC 4 channels, 10-bit
PWM 2 channels
Timer 2 (8-bit and 16-bit)
Supply Voltage 2.7V to 5.5V (at 20MHz: 4.5-5.5V)
Package 8-PDIP
Operating Temperature -40 to +85 C

Features

  • 8KB Flash for compact firmware
  • 6 usable I/O in tiny 8-pin DIP
  • 10-bit ADC on 4 channels
  • USI (Universal Serial Interface) for SPI/I2C
  • Internal calibrated oscillator (no external crystal needed)
  • Arduino IDE support via ATtinyCore

Applications

  • Minimalist embedded controllers
  • LED animation and lighting controllers
  • Simple sensor reading and logging
  • Hobby projects in ATtiny85 digispark boards
Product Introduction: ATtiny85-20PU Product Introduction

The ATtiny85-20PU from Microchip Technology is the most capable member of the ATtiny25/45/85 family, offering 8KB Flash, 512B SRAM, and 512B EEPROM in a compact 8-pin DIP package. Despite having only 8 pins, 6 are configurable as I/O, with 4 of those supporting 10-bit ADC and 2 supporting PWM output. The USI (Universal Serial Interface) provides hardware support for SPI and I2C protocols, enabling communication with sensors, displays, and other peripherals. The internal calibrated RC oscillator runs at 8MHz (or 16MHz with PLL), eliminating the need for an external crystal. The ATtiny85 is massively popular in the maker community, ranking #7 on the 2024 PartsBox top hobby components list. It is the core of the Digispark USB development board and is fully supported by the Arduino IDE through the ATtinyCore board package.

Working Principle: ATtiny85-20PU Working Principle

The ATtiny85 uses the 8-bit AVR RISC architecture with most instructions executing in a single clock cycle. The 8KB Flash stores the program, 512B SRAM provides working memory, and 512B EEPROM offers non-volatile data storage. The I/O pins serve multiple functions through peripheral multiplexing: PB0-PB5 can be GPIO, ADC inputs, PWM outputs, USI data/clock, or external interrupt sources. The USI block implements a shift register with clock generation, enabling half-duplex SPI or I2C with minimal firmware overhead. The 10-bit ADC uses a successive approximation method with 65us conversion time at 125kHz ADC clock. The internal oscillator is calibrated to +/-10% at factory, with OSCCAL register allowing runtime fine-tuning. Self-programming allows bootloader operation and firmware updates via USI.

Pin Description: ATtiny85-20PU Pin Definition and Functions
Pin Name Function
1 PB5 (RESET/ADC0/dW) Reset (active low), ADC input ch0, debugWIRE
2 PB3 (ADC3/XTAL1/CLKI) ADC input ch3, external clock input
3 PB4 (ADC2/XTAL2) ADC input ch2, external crystal
4 GND Ground
5 PB0 (MOSI/DI/SDA/AIN0/OC0A/OC1A) SPI MOSI, I2C SDA, analog compare+, PWM OC0A/OC1A
6 PB1 (MISO/DO/AIN1/OC0B/OC1A) SPI MISO, analog compare-, PWM OC0B
7 PB2 (SCK/USCK/SCL/ADC1/T0/INT0/OC1A) SPI SCK, I2C SCL, ADC ch1, ext int, PWM OC1A
8 VCC Supply voltage (2.7-5.5V)
Application Scenarios: In which products and applications is ATtiny85-20PU used
  • Minimalist LED animation controller with 2 PWM channels in 8-pin DIP package
  • Digispark USB development board for rapid ATtiny85 prototyping
  • Simple I2C sensor reader with USI hardware and 10-bit ADC
  • Space-constrained embedded controller with 8KB Flash for compact firmware
Alternative Models: What chips are recommended as replacements for ATtiny85-20PU
Model Manufacturer Key Difference
ATtiny45-20PU Microchip 4KB Flash, 256B SRAM, half the memory
ATtiny84A-PU Microchip 14-pin, 8KB Flash, 12 I/O, more pins
ATmega328P-PU Microchip 28-pin DIP, 32KB Flash, full Arduino Uno
PIC12F675-I/P Microchip 8-pin PIC, 1.75KB Flash, smaller

Recommend Parts

IRFS4310ZTRLPBF

IRFS4310ZTRLPBF – 100V N-Channel HEXFET Power MOSFET, 7 mΩ RDS(on), D2PAK (TO-263AB)

Brand: infineon

Package: D2PAK (TO-263AB)

IN STOCK: 11137pcs

Cargo cycle: 3-7 Days

The minimum order is 1

MSASJ105BB5475MFNA01

4.7uF 6.3V X5R MLCC, 0402, Taiyo Yuden

Brand: gigadevice

Package: 0402 (1005 Metric, 1.0 x 0.5 x 0.5 mm)

IN STOCK: 9701pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRF3415PBF

150V N-channel power MOSFET, 43A, 41mΩ RDS(on), TO-220AB package

Brand: infineon

Package: TO-220AB

IN STOCK: 2940pcs

Cargo cycle: 3-7 Days

The minimum order is 1

105017-1001

USB Type-C receptacle connector, 24-pin, SMD

Brand: Amphenol

Package: SMD (8.9 x 7.3 x 3.2 mm, right angle)

IN STOCK: 5335pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRLB3034PBF

IRLB3034PBF – 40V N-Channel StrongIRFET Power MOSFET (Logic Level), 1.7 mΩ (max) @ 10V; 2.0 mΩ @ 4.5V RDS(on), TO-220AB

Brand: infineon

Package: TO-220AB

IN STOCK: 9724pcs

Cargo cycle: 3-7 Days

The minimum order is 1

XC6SLX75-2FGG484I

Spartan-6 LX75 FPGA, 74637 logic cells, 132 DSP, 3096KB BRAM, 408 I/O, FBGA-484 23x23mm, -2 speed, industrial -40~100C, AMD Xilinx

Brand: xilinx

Package: FGG484 (484-ball fine-pitch BGA, 23x23mm body, 1.0mm ball pitch, 22×22 ball array, 6 I/O banks, lead-free)

IN STOCK: 890pcs

Cargo cycle: 3-7 Days

The minimum order is 1