Skip to the content
12345678

ATTINY85-20PU

Microchip TechnologyExtended

-40℃~+85℃ 10bit 2.7V~5.5V 20MHz 512Byte 512Byte 6 8 Bit 8KB AVR Built-in FLASH PDIP-8 Microcontrollers (MCU/MPU/SOC) ROHS

Part id
microchip/ATTINY85-20PU
Category
Microcontrollers (MCU, MPU, SOC)
Package
PDIP-8
Pins
8
In stock
504 at JLCPCB (C965497)
Used on
263 open-source boards

Overview

The ATTINY85-20PU is a microcontroller made by Microchip Technology in a PDIP-8 package with 8 pins. -40℃~+85℃ 10bit 2.7V~5.5V 20MHz 512Byte 512Byte 6 8 Bit 8KB AVR Built-in FLASH PDIP-8 Microcontrollers (MCU/MPU/SOC) ROHS.

PCBKit's library has its KiCad symbol (MCU_Microchip_ATtiny:ATtiny85-20P, from KiCad's library) and its footprint (Package_DIP:DIP-8_W7.62mm, from KiCad's library), ready for a KiCad board. 504 are in stock at JLCPCB (part C965497). 263 open-source boards in 215 repositories on GitHub use it.

Symbol

1RESET/PB52XTAL1/PB33XTAL2/PB44GND5AREF/PB06PB17PB28VCC
MCU_Microchip_ATtiny:ATtiny85-20PFrom KiCad's library

Footprint

12345678
Package_DIP:DIP-8_W7.62mmFrom KiCad's library

From the datasheet

11
Supply, least
2.7 V · VCC, recommended operating min · p. 1
Supply, most
5.5 V · VCC, recommended operating max · p. 1
Supply, least
4.5 V · VCC, 20 MHz operation min · p. 1
Supply, absolute maximum
6 V · VCC, absolute max · p. 161
Works from
-40 °C · Ambient, DC characteristics min · p. 161
Works up to
85 °C · Ambient, DC characteristics max · p. 161
Takes working
5 mA · VCC, active 8 MHz at 5 V typical; external clock, PRR = 0xFF, no I/O drive · p. 162
Takes at most
8 mA · VCC, active 8 MHz at 5 V max; external clock, PRR = 0xFF, no I/O drive · p. 162
Takes asleep
2 µA · VCC, power-down at 3 V, WDT and BOD disabled max · p. 162
Takes asleep
10 µA · VCC, power-down at 3 V, WDT enabled, BOD disabled max · p. 162
A pin gives at most
40 mA · Per I/O pin, absolute max · p. 161

What it is and has

47
Core
AVR 8-bit, RISC · p. 1
Instruction set
120 instructions, most single clock cycle · p. 1
Working registers
32 x 8 · p. 1
Flash memory
8K Bytes · p. 1
Flash endurance
10,000 Write/Erase Cycles · p. 1
EEPROM
512 Bytes · p. 1
EEPROM endurance
100,000 Write/Erase Cycles · p. 1
SRAM
512 Bytes · p. 1
Timer/Counter0
8-bit with prescaler and two PWM channels · p. 1
Timer/Counter1
8-bit high speed with separate prescaler · p. 1
High frequency PWM
2 outputs with separate output compare registers · p. 1
Dead time generator
Programmable · p. 1
USI
Universal Serial Interface with Start Condition Detector · p. 1
ADC resolution
10-bit · p. 1
ADC single ended channels
4 · p. 1
ADC differential channels
2 pairs, programmable gain 1x or 20x · p. 1
Temperature measurement
Supported · p. 1
Watchdog
Programmable, separate on-chip oscillator · p. 1
Analog comparator
On-chip · p. 1
Debug
debugWIRE on-chip debug system · p. 1
Programming
In-system programmable via SPI · p. 1
Interrupts
External and internal sources · p. 1
Sleep modes
Idle, ADC Noise Reduction, Power-down · p. 1
Power-on reset
Enhanced power-on reset circuit · p. 1
Brown-out detection
Programmable · p. 1
Oscillator
Internal calibrated oscillator · p. 1
GPIO
6 programmable lines · p. 1
Package options
8-pin PDIP, 8-pin SOIC, 20-pad QFN/MLF · p. 1
Speed grade
Up to 10 MHz at 2.7–5.5 V; up to 20 MHz at 4.5–5.5 V · p. 1
ADC integral non-linearity
1 LSB · p. 122
ADC absolute accuracy
± 2 LSB · p. 122
ADC conversion time
65 - 260 µs · p. 122
ADC sample rate
Up to 15 kSPS at maximum resolution · p. 122
ADC reference
Selectable 1.1V / 2.56V · p. 122
Core
AVR 8-bit microcontroller · p. 1
Instruction set
120 instructions; most execute in a single clock cycle · p. 1
Flash memory
8K Bytes, in-system programmable · p. 1
Flash endurance
10,000 write/erase cycles · p. 1
EEPROM
512 Bytes, in-system programmable · p. 1
EEPROM endurance
100,000 write/erase cycles · p. 1
Timer/Counter
8-bit, with prescaler and two PWM channels · p. 1
High speed Timer/Counter
8-bit, with separate prescaler · p. 1
USI
Universal Serial Interface with start condition detector · p. 1
ADC
10-bit · p. 1
Watchdog timer
Programmable, with separate on-chip oscillator · p. 1
Debug interface
debugWIRE · p. 1
Programming interface
In-system programmable via SPI · p. 1

Around it

1
cap unspecified
between VCC and GND; Place bypass capacitors as close to the supply and ground pins as possible. · p. 129

Specifications

98
ParameterConditionsAs printedPage
Operating Temperaturemin -55 · max 125 °C161
Storage Temperaturemin -65 · max 150 °C161
Voltage on any Pin except RESET with respect to Groundmin -0.5 V161
Voltage on RESET with respect to Groundmin -0.5 · max 13 V161
Maximum Operating Voltagemax 6 V161
DC Current per I/O Pinmax 40 mA161
DC Current VCC and GND Pinsmax 200 mA161
Input Low-voltage, except XTAL1 and RESET pin VILVCC = 1.8V - 2.4Vmin -0.5 V161
Input Low-voltage, except XTAL1 and RESET pin VILVCC = 2.4V - 5.5Vmin -0.5 V161
Input Low-voltage, XTAL1 pin, External Clock Selected VIL1VCC = 1.8V - 5.5Vmin -0.5 V161
Input Low-voltage, RESET pin VIL2VCC = 1.8V - 5.5Vmin -0.5 V161
Input Low-voltage, RESET pin as I/O VIL3VCC = 1.8V - 2.4Vmin -0.5 V161
Input Low-voltage, RESET pin as I/O VIL3VCC = 2.4V - 5.5Vmin -0.5 V161
Output Low-voltage, Port B (except RESET) VOLIOL = 10 mA, VCC = 5Vmax 0.6 V161
Output Low-voltage, Port B (except RESET) VOLIOL = 5 mA, VCC = 3Vmax 0.5 V161
Output High-voltage, Port B (except RESET) VOHIOH = -10 mA, VCC = 5Vmin 4.3 V161
Output High-voltage, Port B (except RESET) VOHIOH = -5 mA, VCC = 3Vmin 2.5 V161
Input Leakage Current I/O Pin IILVCC = 5.5V, pin low (absolute value)max 1 uA161
Input Leakage Current I/O Pin IIHVCC = 5.5V, pin high (absolute value)max 1 uA161
Reset Pull-up Resistor RRSTVCC = 5.5V, input lowmin 30 · max 60 k161
I/O Pin Pull-up Resistor RpuVCC = 5.5V, input lowmin 20 · max 50 k162
Power Supply Current ICCActive 1 MHz, VCC = 2V; external clock, PRR = 0xFF, no I/O drivetyp 0.3 · max 0.55 mA162
Power Supply Current ICCActive 4 MHz, VCC = 3V; external clock, PRR = 0xFF, no I/O drivetyp 1.5 · max 2.5 mA162
Power Supply Current ICCActive 8 MHz, VCC = 5V; external clock, PRR = 0xFF, no I/O drivetyp 5 · max 8 mA162
Power Supply Current ICCIdle 1 MHz, VCC = 2V; external clock, PRR = 0xFF, no I/O drivetyp 0.1 · max 0.2 mA162
Power Supply Current ICCIdle 4 MHz, VCC = 3V; external clock, PRR = 0xFF, no I/O drivetyp 0.35 · max 0.6 mA162
Power Supply Current ICCIdle 8 MHz, VCC = 5V; external clock, PRR = 0xFF, no I/O drivetyp 1.2 · max 2 mA162
Power-down mode ICCWDT enabled, VCC = 3V; BOD disabledmax 10 uA162
Power-down mode ICCWDT disabled, VCC = 3V; BOD disabledmax 2 uA162
Calibration accuracyFactory calibration; target frequency 8.0 MHz; VCC = 3V; temperature = 25°Cmax 10 %164
Clock Frequency 1/tCLCLVCC = 1.8 - 5.5Vmin 0 · max 4 MHz164
Clock Frequency 1/tCLCLVCC = 2.7 - 5.5Vmin 0 · max 10 MHz164
Clock Frequency 1/tCLCLVCC = 4.5 - 5.5Vmin 0 · max 20 MHz164
Clock Period tCLCLVCC = 1.8 - 5.5Vmin 250 ns164
Clock Period tCLCLVCC = 2.7 - 5.5Vmin 100 ns164
Clock Period tCLCLVCC = 4.5 - 5.5Vmin 50 ns164
High Time tCHCXVCC = 1.8 - 5.5Vmin 100 ns164
High Time tCHCXVCC = 2.7 - 5.5Vmin 40 ns164
High Time tCHCXVCC = 4.5 - 5.5Vmin 20 ns164
Low Time tCLCXVCC = 1.8 - 5.5Vmin 100 ns164
Low Time tCLCXVCC = 2.7 - 5.5Vmin 40 ns164
Low Time tCLCXVCC = 4.5 - 5.5Vmin 20 ns164
Rise Time tCLCHVCC = 1.8 - 5.5Vmax 2 us164
Rise Time tCLCHVCC = 2.7 - 5.5Vmax 1.6 us164
Rise Time tCLCHVCC = 4.5 - 5.5Vmax 0.5 us164
Fall Time tCHCLVCC = 1.8 - 5.5Vmax 2 us164
Fall Time tCHCLVCC = 2.7 - 5.5Vmax 1.6 us164
Fall Time tCHCLVCC = 4.5 - 5.5Vmax 0.5 us164
Change in period from one clock cycle to the next tCLCLVCC = 1.8 - 5.5Vmax 2 %164
Change in period from one clock cycle to the next tCLCLVCC = 2.7 - 5.5Vmax 2 %164
Change in period from one clock cycle to the next tCLCLVCC = 4.5 - 5.5Vmax 2 %164
Minimum pulse width on RESET Pin tRSTVCC = 3V; values are guidelines onlymax 2.5 us165
Brown-out Detector Hysteresis VHYSTValues are guidelines onlytyp 50 mV165
Min Pulse Width on Brown-out Reset tBODValues are guidelines onlytyp 2 us165
Bandgap reference voltage VBGVCC = 5.5V; TA = 25°C; values are guidelines onlymin 1 · typ 1.1 · max 1.2 V165
Bandgap reference start-up time tBGVCC = 2.7V; TA = 25°C; values are guidelines onlytyp 40 · max 70 us165
Bandgap reference current consumption IBGVCC = 2.7V; TA = 25°C; values are guidelines onlytyp 15 uA165
Release threshold of power-on reset VPORATtiny85, revision B and newer; TA = -40°C to +85°C; rising supply voltage; values are guidelines onlymin 0.7 · typ 1 · max 1.4 V165
Activation threshold of power-on reset VPOAATtiny85, revision B and newer; TA = -40°C to +85°C; values are guidelines onlymin 0.05 · typ 0.9 · max 1.3 V165
Power-on slope rate SRONATtiny85, revision B and newer; TA = -40°C to +85°C; values are guidelines onlymin 0.01 · max 4.5 V/ms165
ResolutionTA = -40°C to +85°Cmax 10 Bits167
Absolute accuracy (Including INL, DNL, and Quantization, Gain and Offset errors)TA = -40°C to +85°C; VREF = 4V; VCC = 4V; ADC clock = 200 kHztyp 2 LSB167
Absolute accuracy (Including INL, DNL, and Quantization, Gain and Offset errors)TA = -40°C to +85°C; VREF = 4V; VCC = 4V; ADC clock = 1 MHztyp 3 LSB167
Absolute accuracy (Including INL, DNL, and Quantization, Gain and Offset errors)TA = -40°C to +85°C; VREF = 4V; VCC = 4V; ADC clock = 200 kHz; Noise Reduction Modetyp 1.5 LSB167
Absolute accuracy (Including INL, DNL, and Quantization, Gain and Offset errors)TA = -40°C to +85°C; VREF = 4V; VCC = 4V; ADC clock = 1 MHz; Noise Reduction Modetyp 2.5 LSB167
Integral Non-linearity (INL) (Accuracy after offset and gain calibration)TA = -40°C to +85°C; VREF = 4V; VCC = 4V; ADC clock = 200 kHztyp 1 LSB167
Differential Non-linearity (DNL)TA = -40°C to +85°C; VREF = 4V; VCC = 4V; ADC clock = 200 kHztyp 0.5 LSB167
Gain ErrorTA = -40°C to +85°C; VREF = 4V; VCC = 4V; ADC clock = 200 kHztyp 2.5 LSB167
Offset ErrorTA = -40°C to +85°C; VREF = 4V; VCC = 4V; ADC clock = 200 kHztyp 1.5 LSB167
Conversion TimeTA = -40°C to +85°C; Free Running Conversionmin 14 · max 280 us167
Clock FrequencyTA = -40°C to +85°Cmin 50 · max 1000 kHz167
Input BandwidthTA = -40°C to +85°Ctyp 38.4 kHz167
External Reference Voltage AREFTA = -40°C to +85°Cmin 2 V167
Internal Voltage Reference VINTTA = -40°C to +85°Cmin 1 · typ 1.1 · max 1.2 V167
Internal 2.56V Reference VINTTA = -40°C to +85°C; VCC > 3.0V; values are guidelines onlymin 2.3 · typ 2.56 · max 2.8 V167
RREF RREFTA = -40°C to +85°Ctyp 32 k167
Analog Input Resistance RAINTA = -40°C to +85°Ctyp 100 M167
ADC OutputTA = -40°C to +85°Cmin 0 · max 1023 LSB167
PRTIM1 PRTIM1VCC = 2V, f = 1 MHztyp 45 uA177
PRTIM1 PRTIM1VCC = 3V, f = 4 MHztyp 300 uA177
PRTIM1 PRTIM1VCC = 5V, f = 8 MHztyp 1100 uA177
PRTIM0 PRTIM0VCC = 2V, f = 1 MHztyp 5 uA177
PRTIM0 PRTIM0VCC = 3V, f = 4 MHztyp 30 uA177
PRTIM0 PRTIM0VCC = 5V, f = 8 MHztyp 110 uA177
PRUSI PRUSIVCC = 2V, f = 1 MHztyp 5 uA177
PRUSI PRUSIVCC = 3V, f = 4 MHztyp 25 uA177
PRUSI PRUSIVCC = 5V, f = 8 MHztyp 100 uA177
PRADC PRADCVCC = 2V, f = 1 MHztyp 15 uA177
PRADC PRADCVCC = 3V, f = 4 MHztyp 85 uA177
PRADC PRADCVCC = 5V, f = 8 MHztyp 340 uA177
PRTIM1 PRTIM1Additional current compared to Active with external clocktyp 20 %177
PRTIM1 PRTIM1Additional current compared to Idle with external clocktyp 80 %177
PRTIM0 PRTIM0Additional current compared to Active with external clocktyp 2 %177
PRTIM0 PRTIM0Additional current compared to Idle with external clocktyp 10 %177
PRUSI PRUSIAdditional current compared to Active with external clocktyp 2 %177
PRUSI PRUSIAdditional current compared to Idle with external clocktyp 10 %177
PRADC PRADCAdditional current compared to Active with external clocktyp 5 %177
PRADC PRADCAdditional current compared to Idle with external clocktyp 25 %177

Pins, by the datasheet

8
1 PB5
Port B I/O with internal pull-up; PCINT5, RESET, ADC0, dW. · p. 2
2 PB3
Port B I/O with internal pull-up; PCINT3, XTAL1, CLKI, OC1B, ADC3. · p. 2
3 PB4
Port B I/O with internal pull-up; PCINT4, XTAL2, CLKO, OC1B, ADC2. · p. 2
4 GND
Ground. · p. 2
5 PB0
Port B I/O with internal pull-up; MOSI, DI, SDA, AIN0, OC0A, OC1A, AREF, PCINT0. · p. 2
6 PB1
Port B I/O with internal pull-up; MISO, DO, AIN1, OC0B, OC1A, PCINT1. · p. 2
7 PB2
Port B I/O with internal pull-up; SCK, USCK, SCL, ADC1, T0, INT0, PCINT2. · p. 2
8 VCC
Supply voltage. · p. 2

Open-source boards using it

263See all 263
  • 2 layers30.7 × 76.1 mmRepeater v2, the printed circuit board in 3D

    Repeater v2

    plusvic/simplebus2-intercom

    General description of the Simplebus2 protocol used by some Comelit's intercoms. Hardware for retransmitting Simplebus2 messages over UART.

    17 parts95CC0-1.0
  • 2 layers101.5 × 54 mmSimkarte, the printed circuit board in 3D

    Simkarte

    osmocom/osmocom-analog

    Software Implementation of analog cellular telephony systems like NMT, TACS, IMTS, A/B/C-Netz; mirror of https://gitea.osmocom.org/cellular-infrastructure/osmocom-analog

    15 parts32GPL-3.0
  • 2 layers76.2 × 50.8 mmJerboa-8, the printed circuit board in 3D

    Jerboa-8

    strickyak/jerboa-attiny85-mod-synth

    Modular Synthesizer using an ATtiny85 chip for each module.

    23 parts31MIT
  • 2 layersCastVolumeKnob, the printed circuit board in 3D

    CastVolumeKnob

    WebmasterTD/CastVolumeKnob

    Hardware Volume Knob for Google Cast devices

    18 parts25
  • 2 layers55.9 × 55.9 mmPrintplaat, the printed circuit board in 3D

    Printplaat

    floriaanpost/wonderfoon

    Een nieuwe implementatie van de wonderfoon

    14 parts24
  • 2 layers71.1 × 40.6 mmTiny blinky, the printed circuit board in 3D

    Tiny blinky

    Hack-a-Day/Remoticon_KiCad_Blender

    support files for the 2020 Remoticon KiCad to Blender > PCB renders workshop

    21 parts22
  • 2 layers242 × 60 mmRoothubs, the printed circuit board in 3D

    Roothubs

    gkiefer/home2l

    The Home2Ls - Smart Tools for a Private Home

    178 parts21

Parts like it

7

Questions

Is there a KiCad symbol and footprint for the ATTINY85-20PU?

Yes. The symbol is MCU_Microchip_ATtiny:ATtiny85-20P and the footprint Package_DIP:DIP-8_W7.62mm, both drawn on this page. PCBKit places them on a board for you when you design with it.

What package is the ATTINY85-20PU?

PDIP-8, with 8 pins. Its footprint is drawn on this page.

Where is the ATTINY85-20PU datasheet?

Microchip Technology publishes it: the Datasheet link on this page opens it.

Where can I order the ATTINY85-20PU?

JLCPCB lists it as part C965497, with 504 in stock; the sellers' links on this page open their listings.

What can replace the ATTINY85-20PU?

Parts like it in the library: the ATTINY13A-PU by Microchip Technology, the ATTINY45-20PU by Microchip Technology, the ATTINY13-20PU by Microchip Technology and the ATTINY25-20PU by Microchip Technology. Check their datasheets: a part that fits the footprint may still differ in its ratings.

Which open-source boards use the ATTINY85-20PU?

263 boards in 215 repositories on GitHub; the most starred are listed on this page, with their KiCad files.