Microchip Technology

ATTINY85-20SH 8-Bit AVR MCU, 20 MHz | Microchip Technology

부품 번호: ATTINY85-20SH ✓ 활성
2.7 V to 5.5 V Vdss 8-pin SOIC Package 20 MHz Speed 8 KB Memory
MOQ: 1 |

ATTINY85-20SH 개요

The Microchip Technology ATTINY85-20SH is an 8-bit AVR microcontroller designed for compact embedded-control applications, with a 20 MHz maximum clock speed in an 8-pin SOIC package. It combines 8 KB of flash program memory, 512 bytes of SRAM, 512 bytes of EEPROM, and a two-wire serial interface within a small, low-pin-count device.

An AVR microcontroller is a programmable semiconductor that combines a processor core, flash memory, static RAM, data EEPROM, and peripherals in one integrated circuit. The ATtiny85 family belongs to the low-pin-count AVR hierarchy: 8-bit MCU, embedded controller, and programmable logic platform. Its compact footprint makes it especially useful when a design needs more control capability than a simple fixed-function device but cannot justify a larger microcontroller package.

The ATTINY85-20SH provides two 8-bit timers, an 8-bit ADC with four single-ended inputs, a high-speed timer with dedicated compare outputs, and communication interfaces including SPI, I²C, and UART. Its 20 MHz operating rating supports faster instruction execution than 10 MHz ATtiny85 variants, while the two 5.8 GHz and 8.4 GHz PLL-based oscillators support timing and clock-generation functions.

The device uses the AVR 8-bit architecture and supports the AVR instruction set through its 8 KB flash memory. Six general-purpose I/O pins are available because two package pins are dedicated to VCC and GND. The ADC, timers, serial peripherals, and GPIO resources can be combined for compact products such as sensor nodes, dimmers, motor controllers, compact instruments, and USB-connected development platforms.

Typical applications include LED dimmers, temperature controllers, battery-powered monitors, motor-speed controls, hobby robotics, and small automation modules. The 8-pin package simplifies PCB layout, but the limited GPIO count requires careful pin multiplexing. Designers should check the pin-description table before assigning functions, particularly when using ADC inputs alongside external programming or serial communication.

Place decoupling capacitance close to VCC and GND, connect the programming interface to the documented ISP pins, and route sensitive analog inputs away from switching nodes. Because the ATtiny85 offers limited I/O, prioritize functions according to pin multiplexing requirements. Review the manufacturer datasheet for the exact ordering-code temperature range, exposed-pad requirements, clock limits, and electrical operating conditions.

This page organizes the ATTINY85-20SH’s core resources, pin assignment, application guidance, and same-package alternatives into a design-focused reference. It also distinguishes electrically similar devices by memory capacity, clock speed, peripheral coverage, and package constraints so engineers can evaluate replacement choices before modifying an existing PCB.

드롭인 대체품: ATTINY85-20SH — 동일 패키지, 핀 호환. PCB 재작업이 필요한 다른 패키지 부품은 제외됩니다.

이 시리즈의 변형

다음과 드롭인 호환되는 동일 시리즈 모델: ATTINY85-20SH (동일 폼 팩터 및 풋프린트) — 차이점: Product Type, SRAM, Flash Memory, Package, ADC Resolution.

Microchip Technology
Product Type: 8-bit RISC-based CMOS microcontroller
SRAM: 128 bytes
Flash Memory: 2 KB
비교 대상: ATTINY85-20SH →
Microchip Technology
Product Type: 8-bit AVR RISC-based microcontroller
SRAM: 256 bytes
Flash Memory: 4 KB
비교 대상: ATTINY85-20SH →
Microchip Technology
Product Type: 8-bit RISC-based microcontroller
Flash Memory: 8 KB (4K × 16)
Package: 8-SOIC
비교 대상: ATTINY85-20SH →

ATTINY85-20SU

✅ 드롭인 ⚠️ 사양 미검증
Microchip Technology
📦 8-pin SOIC
8-bit RISC-based microcontroller · AVR enhanced RISC · 20 MHz · 8 KB (4K × 16) · 512 bytes · 512 bytes · 6 lines · 32 registers

가격 문의

데이터시트 보기 →

ATTINY85-20SS

✅ 드롭인 ⚠️ 사양 미검증
📦 8-pin SOIC
Same 20 MHz ATtiny85 core and 8 KB flash configuration; ordering-suffix qualification differs by 0 percent in core speed and program memory.

📋 참조 대체품 (카탈로그에 없음)

ATTINY45-20SU

✅ 드롭인 ⚠️ 사양 미검증
Microchip Technology
📦 8-pin SOIC
8-bit AVR RISC-based microcontroller · 20 MHz · 4 KB · 2K x 16 words · 256 bytes · 256 bytes · 6 lines · 32 registers

가격 문의

데이터시트 보기 →

ATTINY25-20SU

✅ 드롭인 ⚠️ 사양 미검증
Microchip Technology
📦 8-pin SOIC
8-bit RISC-based CMOS microcontroller · AVR enhanced RISC · 20 MHz · 2 KB · 1K x 16 · 128 bytes · 128 bytes · 6

가격 문의

데이터시트 보기 →

ATTINY13A-20SU

✅ 드롭인 ⚠️ 사양 미검증
📦 8-pin SOIC
Shares the 20 MHz class and 8-pin form factor but reduces flash from 8 KB to 1 KB, an 87.5 percent decrease, so it is restricted to very small programs.

📋 참조 대체품 (카탈로그에 없음)

ATTINY85-20SH 최대 정격 & 전기적 특성

Product Type 8-bit AVR microcontroller
Maximum Clock Speed 20 MHz
Flash Program Memory 8 KB
SRAM 512 bytes
EEPROM 512 bytes
General-Purpose I/O Pins 6 pins
ADC Resolution 8 bits
ADC Single-Ended Inputs 4 channels
Timer Count 2 timers
Serial Interfaces SPI, I2C, and UART
Supply Voltage Range 2.7 V to 5.5 V
External Clock Options 8 MHz or 9.8 MHz maximum, depending on oscillator configuration
Internal RC Oscillator 8.0 MHz calibrated RC oscillator
Internal High-Speed Oscillator 64 MHz calibrated RC oscillator
Watchdog Timer Yes
Brownout Detection Yes
패키지 8-pin SOIC
실장 유형 Surface mount
Program Memory Type Flash
RoHS 상태 Compliant
REACH Status Compliant

ATTINY85-20SH 핀 구성

SOIC-8 Package Pinout Diagram SOIC-8 8-pin small outline IC, 3.9x4.9mm, P1.27mm, JEDEC MS-012. 1 8 2 7 3 6 4 5 SOIC-8
핀 1 PB5 — Bidirectional I/O pin with ADC and timer alternate functions
핀 2 PB4 — Bidirectional I/O pin with ADC and timer alternate functions
핀 3 GND — Ground connection
핀 4 PB3 — Bidirectional I/O pin with ADC and timer alternate functions
핀 5 PB2 — Bidirectional I/O pin with serial and timer alternate functions
핀 6 PB1 — Bidirectional I/O pin with serial and timer alternate functions
핀 7 PB0 — Bidirectional I/O pin with serial programming function
핀 8 VCC — Power supply input

일반적인 애플리케이션

ATTINY85-20SH 적합 용도: 6 애플리케이션s: LED Dimming and Lighting Control, Temperature Monitoring Node, Battery-Powered Sensor Interface, Compact Motor Controller, USB Development and Programming Platform, Compact Automation and Hobby Controller.

💡

LED Dimming and Lighting Control

The ATTINY85-20SH fits compact LED dimmers because its 20 MHz clock and timer resources can generate accurate PWM timing while six GPIO pins control status indicators, buttons, and logic-level gate drivers. The 8-bit ADC can monitor a dimmer position or current feedback, and 8 KB of flash is sufficient for compact dimming algorithms and user-interface logic. Compared with a larger AVR, the 8-pin SOIC reduces board area, although designers must allocate pins carefully because timer, UART, and programming functions share several I/O lines. A suitable external MOSFET or LED-driver stage is required when the load current exceeds the microcontroller pin limit.

🧩

Temperature Monitoring Node

The ATTINY85-20SH is appropriate for a small temperature-monitoring node that combines an analog sensor, local status indication, and a serial data link. Its four single-ended ADC channels provide inputs for a sensor and optional threshold references, while the 20 MHz execution rate permits responsive sampling and filtering in 512 bytes of SRAM. The 8 KB flash budget can hold calibration logic, conversion routines, and a compact communication protocol. Because only six I/O pins remain after VCC and GND, the design should prioritize the sensor input, one communication interface, and any local user controls while checking alternate-function mappings in the manufacturer pin-description table.

📱

Battery-Powered Sensor Interface

The ATTINY85-20SH works well in a battery-powered sensor interface where compactness, low component count, and flexible serial connectivity are important. Its calibrated internal oscillators allow clocking without an external crystal, while the ADC can digitize sensor outputs and the UART or I²C interface can report measurements to a host. The 8-pin package helps minimize PCB area in wearable or distributed-sensing products. Power consumption must be managed through the device’s sleep modes, peripheral disabling, and careful GPIO states. Firmware size also matters because 8 KB of flash must accommodate the sensor routine, communications, and power-management code without exhausting the available memory.

🏭

Compact Motor Controller

The ATTINY85-20SH can serve as the logic controller in a compact brushed-motor or actuator system. Its PWM-capable timer outputs support speed or position control, the ADC can sample speed sensors or potentiometers, and the 20 MHz clock provides sufficient timing resolution for common hobby and small-equipment motor duties. Because only six GPIO pins are available, external latching, direction-control, and driver-interface signals must be mapped against the alternate timer functions documented in the datasheet. Power transistors, flyback protection, and a separate motor supply are required; the microcontroller should not directly drive a motor winding. The ATtiny85 family is better suited to low-voltage, modest-current controls than to large industrial motor systems.

🖥️

USB Development and Programming Platform

The ATTINY85-20SH is widely used in compact USB development boards because software-based USB control can fit within the available 8 KB flash while the small SOIC package leaves board space for connectors and level-shifting circuitry. It is particularly useful for USB input devices, bootloaders, and compact programmers. Implementation requires a suitable USB data path, protection resistors, connector routing, and firmware that handles enumeration and bus signaling. The 512-byte SRAM limit makes efficient buffer and endpoint management important. Engineers should follow the device’s programming-interface and clock guidance from the manufacturer datasheet and confirm that their host software supports the selected USB firmware before laying out the PCB.

🔧

Compact Automation and Hobby Controller

The ATTINY85-20SH offers a practical platform for hobby robotics, laboratory fixtures, and small automation modules where the controller must combine timing, analog measurement, and serial communication in a limited footprint. The 8-bit ADC can read potentiometers, light sensors, or position elements, while the timers can produce repeatable step, pulse-width, or debounce timing. Its 8 KB flash and 512-byte SRAM are adequate for focused control tasks but favor modular, concise firmware. Because six GPIO pins must support sensing, actuation, indicators, and programming, a pin-budget matrix should be prepared before adding features. For projects requiring more expansion, a larger AVR becomes preferable once the added logic no longer fits the available memory and I/O.

What is the ATTINY85-20SH?
The ATTINY85-20SH is an 8-bit AVR microcontroller from Microchip Technology that operates at up to 20 MHz and provides 8 KB of flash memory, 512 bytes of SRAM, and 512 bytes of EEPROM. It is packaged in an 8-pin SOIC and combines six GPIO pins with ADC, timer, SPI, I²C, and UART peripherals. According to the manufacturer datasheet, its architecture is intended for low-cost, low-power embedded-control designs.
What is the operating voltage of ATTINY85-20SH?
The ATTINY85-20SH operates from 2.7 V to 5.5 V, allowing it to work with common 3.3 V and 5 V systems. The manufacturer datasheet identifies this range as the device operating-voltage specification. Designers should also account for the voltage thresholds of connected sensors, programming tools, and peripherals, because an acceptable interface signal may require level conversion.
Where can I download the ATTINY85-20SH datasheet PDF?
The official ATTINY85-20SH datasheet PDF is available from Microchip Technology through the product-document link on this page. The datasheet contains the ordering-information table, electrical characteristics, memory map, GPIO list, ADC and timer details, programming interface, and package drawings. Use the pin-description and ordering-information tables to confirm the exact SOIC footprint and temperature grade represented by the -20SH suffix.
Where can I find the ATTINY85-20SH pinout?
The ATTINY85-20SH pinout is arranged across eight SOIC pins: PB5, PB4, GND, PB3, PB2, PB1, PB0, and VCC from pin 1 through pin 8 in counter-clockwise order. According to the manufacturer datasheet, PB3 and PB4 provide alternate ADC and timer functions when their peripheral multiplexing options are enabled. Verify the exact pin-description table before assigning a new PCB footprint.
What are the key specifications of ATTINY85-20SH that engineers should know?
The key ATTINY85-20SH specifications are a 20 MHz maximum clock, 8 KB of flash, 512 bytes of SRAM, 512 bytes of EEPROM, six GPIO pins, and an 8-bit ADC with four single-ended inputs. It also includes two timers plus SPI, I²C, and UART interfaces. According to the manufacturer datasheet, these resources support compact embedded systems requiring programmable control, serial communication, and analog measurement without a larger MCU package.
How many pins and GPIO pins does ATTINY85-20SH have?
The ATTINY85-20SH has eight physical pins, of which six are general-purpose I/O pins; VCC and GND occupy the other two positions. The I/O pins can also serve the ADC, timers, SPI, I²C, UART, and interrupt functions documented by the manufacturer. Because several peripheral functions share the same six pins, a preliminary pin-allocation table should be completed before schematic capture.
Can ATTINY85-20SH be used for motor control and dimming applications?
Yes, the ATTINY85-20SH is suitable for compact motor-control, LED-dimming, and light-sequencing systems because it combines timers, PWM-capable I/O, ADC inputs, and fast GPIO in an 8-pin package. The 20 MHz clock supports efficient event timing, while the ADC can monitor current, temperature, or a potentiometer. External power transistors and appropriate current-limiting protection are still required.
What can replace ATTINY85-20SH on the same PCB?
The closest same-package replacement is ATTINY85-20SU, which provides the same 20 MHz ATtiny85 architecture and 8-pin SOIC arrangement but carries a different ordering suffix. Lower-memory devices such as ATTINY45-20SU and ATTINY25-20SU can share the footprint while reducing flash capacity, so they are suitable only when the application fits within 4 KB or 2 KB of program memory. Confirm programming, timing, and analog-function requirements before substitution.
Is ATTINY85-20SH suitable for a USB development board?
The ATTINY85-20SH can serve as the controller on a compact USB development board when its firmware implements the required USB protocol in software and the board includes suitable data protection. Its 8 KB flash, 512 bytes of SRAM, and 8-pin footprint support small USB projects, but USB timing and bus protection require careful implementation. The manufacturer datasheet provides the electrical limits and port configuration needed for implementation.
How do you program the ATTINY85-20SH?
The ATTINY85-20SH is programmed through its serial programming interface using the reset pin and the PB0, PB1, and PB2 data and clock signals. The procedure is compatible with AVR ISP programmers and the ATtiny85 programming workflow described by Microchip Technology. Use the documented ISP pin assignment and supply-voltage limits, and place the programming header where it remains accessible without disturbing sensitive analog routing.
ATTINY85-20SH vs ATTINY45-20SU: which is better for a compact controller?
Choose ATTINY85-20SH when the firmware requires 8 KB of flash, while ATTINY45-20SU is sufficient when 4 KB of flash is enough. Both belong to the low-pin-count AVR family and use a comparable 8-pin implementation, but their program-memory capacities differ by 50 percent. The decision should therefore be based on compiled firmware size, EEPROM requirements, peripheral use, and the exact package drawing rather than clock speed alone.
When should I choose ATTINY85-20SH instead of a larger AVR microcontroller?
Choose ATTINY85-20SH when the design fits within 8 KB of flash, 512 bytes of SRAM, and six GPIO pins, and when a compact 8-pin SOIC improves board layout or cost. Move to a larger AVR device when the application needs more memory, more I/O, additional ADC channels, dedicated interfaces, or easier expansion. This approach preserves the low-pin-count advantage without creating firmware and peripheral bottlenecks.
What is the best low-pin-count alternative to ATTINY85-20SH?
The best same-footprint alternative depends on capacity: ATTINY85-20SU preserves the full 8 KB flash and 20 MHz operating class, while ATTINY45-20SU and ATTINY25-20SU provide lower flash capacities for cost-sensitive designs. No cross-brand substitute is established by the available cross-reference results. Before selecting any alternative, compare the exact package drawing, GPIO multiplexing, ADC inputs, timer channels, and required firmware size.
Where to buy ATTINY85-20SH online?
Use the Request a Quote form on this page to ask about ATTINY85-20SH availability, order quantities, and current lead time. The form allows buyers to specify the required package, quantity, and delivery requirements without relying on a static availability statement. Before ordering, confirm that the quoted suffix corresponds to the required 8-pin SOIC footprint and operating-temperature grade.
What is the price and lead time of ATTINY85-20SH?
Use the Request a Quote form on this page for the current ATTINY85-20SH price, stock position, minimum order quantity, and lead time. Commercial terms can change by quantity and schedule, so a quotation is more reliable than a cached catalog amount. State the required annual and build quantities, packaging preference, target date, and destination when submitting the request.
Is ATTINY85-20SH in stock and active?
Microchip Technology lists the ATTINY85-20SH as an active ATtiny85-series product, while live stock and delivery timing should be confirmed through the Request a Quote form on this page. An active lifecycle designation means the family is maintained; it does not guarantee a particular quantity is immediately available. The request should identify the required package suffix, order quantity, and production schedule.

엔지니어링 참조 데이터: ATTINY85-20SH — 비교, 설계 지침 및 규정 준수 정보.

선택 가이드

Choose ATTINY85-20SH for compact designs that need the full 8 KB of flash, 512 bytes of SRAM, a 20 MHz clock, and only six GPIO pins. It is a strong fit for small LED dimmers, sensor nodes, motor controllers, USB accessories, and hobby automation projects where an 8-pin footprint is more valuable than expandability. Select ATTINY85-20SU when the same ATtiny85 resources are needed with a different ordering suffix; confirm its package drawing and qualification grade. Consider ATTINY45-20SU or ATTINY25-20SU only after verifying that the reduced flash, SRAM, and EEPROM remain sufficient. ATTINY13A-20SU is appropriate only for very small programs. Move to a larger ATtiny or ATmega device when the design needs more I/O, memory, ADC channels, or independent peripheral resources.

대체품과의 비교

파라미터 이 제품 ATTINY85-20SU ATTINY85-20SS ATTINY45-20SU ATTINY25-20SU ATTINY13A-20SU
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 8-pin SOIC 8-pin SOIC 8-pin SOIC 8-pin SOIC 8-pin SOIC 8-pin SOIC
Maximum Clock Speed 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz 20 MHz
Flash Program Memory 8 KB 8 KB 8 KB 4 KB, 50% less 2 KB, 75% less 1 KB, 87.5% less
SRAM 512 bytes 512 bytes 512 bytes 256 bytes, 50% less 128 bytes, 75% less 64 bytes, 87.5% less
EEPROM 512 bytes 512 bytes 512 bytes 256 bytes, 50% less 128 bytes, 75% less 64 bytes, 87.5% less
General-Purpose I/O Pins 6 pins 6 pins 6 pins 6 pins 6 pins 6 pins
ADC Resolution 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits
Serial Interfaces SPI, I2C, and UART SPI, I2C, and UART SPI, I2C, and UART SPI, I2C, and UART SPI, I2C, and UART SPI, I2C, and UART

주요 차별점

  • Largest program and data memory among the listed ATtiny alternatives (vs ATTINY45-20SU)
  • Retains the full 20 MHz operating class (vs ATTINY85-10SU)
  • More flexible firmware storage than lower-capacity controllers (vs ATTINY25-20SU)

설계 노트

Place the VCC bypass capacitor immediately between the VCC and GND pins, and keep the programming-interface traces away from ADC inputs and switching stages. The 8-pin footprint leaves little routing freedom, so assign PB3 through PB5 alternate functions before finalizing the schematic. Confirm the package width and pin-1 orientation against the mechanical drawing before manufacturing.

The ATTINY85 supports operation from 2.7 V to 5.5 V, but every connected sensor, transceiver, and programming adapter must tolerate the selected rail. Use a common ground reference between the MCU and analog circuitry, and avoid driving loads directly from GPIO when their current requirement approaches the pin limit. Disable unused peripherals and return unused inputs to a defined level to reduce supply-current variation.

Do not select a lower-memory ATtiny replacement solely from its 20 MHz clock rating. ATTINY45-20SU provides 4 KB rather than 8 KB of flash, ATTINY25-20SU provides 2 KB, and ATTINY13A-20SU provides only 1 KB; their SRAM and EEPROM capacities are also lower. Compile the original firmware for each candidate and compare its peak RAM, stack margin, EEPROM use, and peripheral requirements before approving a substitution.

For analog measurements, use a short return path and place the sensor close to the ADC input rather than routing the signal across the PCB. The ADC reference should be decoupled and kept away from PWM or relay-switching nodes. When using the UART, SPI, or I²C interface, check that the selected PB0–PB4 multiplexing does not conflict with the ADC channels or timer outputs required by the application.

규정 준수 정보

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Applicable
무연
Yes
무할로겐
Unknown
분쟁 광물
Unknown

The ordering-code details and material-compliance declarations for the exact -20SH suffix should be confirmed in Microchip Technology's current product documentation and declaration records.

데이터 검증일: 2026-11-28 — XAIPART 부품 엔지니어링 팀이 검증하고 관리한 데이터

관련 검색

attiny85 pinout attiny85 datasheet attiny85 projects attiny85 microcontroller attiny85 programmer attiny85 programming attiny85 digispark attiny85 usb attiny85 voltage attiny85 arduino ATTINY85-20SH datasheet ATTINY85-20SH pinout ATTINY85-20SH replacement ATTINY85-20SH equivalent ATTINY85-20SH programming

관련 부품 & 용어

Microchip Technology ATTINY85-20SH ATTINY85-20SU ATTINY85-20SS ATTINY45-20SU ATTINY25-20SU ATTINY13A-20SU ATtiny85 AVR microcontroller 8-bit microcontroller embedded controller low-dropout regulator flash memory static random-access memory EEPROM SPI I2C UART pulse-width modulation analog-to-digital converter SOIC-8 QFN family surface mount RoHS REACH
빠른 견적 RFQ
상세 정보를 모두 입력하십시오 — 영업팀이 24시간 이내에 답변드립니다
부품 번호 제조사 패키지 QTY 목표 가격 합계
✓
견적이 제출되었습니다!

24시간 이내에 이메일로 답변드리겠습니다

1
RFQ 제출됨
2
견적 접수됨
3
주문 완료
4
결제
5
배송됨
6
배송 완료
RFQ 상세 보기