ATTINY85-20SH 8-Bit AVR MCU, 20 MHz | Microchip Technology
MPN: ATTINY85-20SH ✓ AktifATTINY85-20SH Ringkasan
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.
Pilihan pengganti yang segera untuk ATTINY85-20SH — sama paket, pin-pin kompatibel. Bahagian paket yang berbeza memerlukan kerja ulang PCB diasingkan.
Varietas dalam siri ini
Model serupa yang kompatibel dengan pengganti yang segera ATTINY85-20SH (sama faktor bentuk dan kaki) — berbeza dalam Product Type, SRAM, Flash Memory, Package, ADC Resolution.
ATTINY85-20SU
✅ Masuk Drop-In ⚠️ Spesifikasi Tidak DisahkanHubungi untuk harga
Lihat Datasheet →ATTINY85-20SS
✅ Masuk Drop-In ⚠️ Spesifikasi Tidak Disahkan📋 Alternatif rujukan (tidak dalam katalog)
ATTINY45-20SU
✅ Masuk Drop-In ⚠️ Spesifikasi Tidak DisahkanHubungi untuk harga
Lihat Datasheet →ATTINY25-20SU
✅ Masuk Drop-In ⚠️ Spesifikasi Tidak DisahkanHubungi untuk harga
Lihat Datasheet →ATTINY13A-20SU
✅ Masuk Drop-In ⚠️ Spesifikasi Tidak Disahkan📋 Alternatif rujukan (tidak dalam katalog)
ATTINY85-20SH Penilaian maksimum & Ciri-ciri Elektrik
| 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 |
| Kemasan | 8-pin SOIC |
| Jenis Pemasangan | Surface mount |
| Program Memory Type | Flash |
| Status RoHS | Compliant |
| REACH Status | Compliant |
Konfigurasi Pin ATTINY85-20SH
| Pin 1 | PB5 — Bidirectional I/O pin with ADC and timer alternate functions |
| Pin 2 | PB4 — Bidirectional I/O pin with ADC and timer alternate functions |
| Pin 3 | GND — Ground connection |
| Pin 4 | PB3 — Bidirectional I/O pin with ADC and timer alternate functions |
| Pin 5 | PB2 — Bidirectional I/O pin with serial and timer alternate functions |
| Pin 6 | PB1 — Bidirectional I/O pin with serial and timer alternate functions |
| Pin 7 | PB0 — Bidirectional I/O pin with serial programming function |
| Pin 8 | VCC — Power supply input |
Aplikasi Biasa
ATTINY85-20SH patut untuk 6 aplikasis: 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.
Disebarkan
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.
Disebarkan
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.
Disebarkan
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.
Disebarkan
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.
Disebarkan
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.
Disebarkan
Ringkasan Produk Disebarkan
Data referensi kejuruteraan untuk ATTINY85-20SH — perbandingan, panduan rancangan, dan maklumat kesediaan
Panduan Pilihan
Perbandingan dengan Gantian
| Parametr | Produk Ini | 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 |
Penyeberangsung Jelas
- Largest program and data memory among the listed ATtiny alternatives (vsATTINY45-20SU)
- Retains the full 20 MHz operating class (vsATTINY85-10SU)
- More flexible firmware storage than lower-capacity controllers (vsATTINY25-20SU)
Catatan Desain
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.
Maklumat Kesediaan
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.