ATTINY45-20SU - 20MHz 8-Bit AVR MCU | Microchip Technology
N.º da peça: ATTINY45-20SU ✓ AtivoATTINY45-20SU Visão geral
An 8-bit microcontroller is a compact programmable semiconductor that executes instructions from embedded flash memory, stores working data in SRAM, and reads or changes external signals through general-purpose I/O pins. The ATTINY45 belongs to the ATtiny family of AVR microcontrollers, combining low-power CMOS design, RISC processing, timer resources, serial communication, and mixed-signal measurement in one device.
Key features include a maximum clock frequency of 20 MHz, 4 KB of ISP flash, 256 bytes of EEPROM, 256 bytes of SRAM, 32 general-purpose working registers, and six I/O pins. The integrated four-channel 10-bit ADC supports analog measurement, while the Universal Serial Interface and timer/counter resources enable compact control and communication designs without requiring separate interface ICs.
The device uses the AVR enhanced RISC architecture and combines programmable flash, SRAM, EEPROM, timers, interrupts, and the ADC in one IC. Its 8-bit word size suits compact embedded control, sensor conditioning, actuator control, and simple serial-interface designs. The limited memory footprint favors concise firmware and direct peripheral access rather than complex operating systems or high-bandwidth data processing.
Typical applications include small sensor nodes, industrial control modules, lighting controls, motor-command interfaces, programmable logic controllers, and compact battery-operated products. Its six I/O lines can support digital inputs, outputs, serial communication, and analog measurements when the ADC inputs are selected instead.
Designers should preserve the RESET pin behavior, use ISP-compatible programming connections, and account for the limited 4 KB program-memory capacity. Decoupling and grounding remain important because fast switching edges and analog measurements can couple into adjacent pins. The SOIC-8 footprint simplifies assembly but requires adequate copper spacing for clean routing between analog and digital signals.
This page combines the manufacturer specifications, pin and programming guidance, application analysis, parameter comparisons, and practical design notes needed to evaluate the ATTINY45-20SU alongside compatible ATtiny family options.
Alternativas drop-in para ATTINY45-20SU — mesmo encapsulamento, compatível pino a pino. Peças de encapsulamento diferente que exigem retrabalho na PCB são excluídas.
Variantes desta série
Modelos da mesma série compatíveis como drop-in com ATTINY45-20SU (mesmo formato e footprint) — diferindo em EEPROM, Package, SRAM, ADC, Flash Memory.
ATTINY85-20SU
✅ Drop-In ⚠️ Especificações não verificadasConsulte o preço
Ver ficha técnica →ATTINY85-20SH
✅ Drop-In ⚠️ Especificações não verificadasConsulte o preço
Ver ficha técnica →ATTINY25-20SU
✅ Drop-In ⚠️ Especificações não verificadasConsulte o preço
Ver ficha técnica →ATTINY25-20SSHR
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
ATTINY45V-10SUR
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
ATTINY45-20SU Classificações máximas e características elétricas
| Product Type | 8-bit AVR RISC-based microcontroller |
| Maximum CPU Frequency | 20 MHz |
| Flash Memory | 4 KB |
| Program Memory Organization | 2K x 16 words |
| EEPROM | 256 bytes |
| SRAM | 256 bytes |
| General-Purpose I/O Lines | 6 lines |
| General-Purpose Working Registers | 32 registers |
| ADC Resolution | 10 bits |
| ADC Channels | 4 channels |
| Timer/Counters | One 8-bit timer/counter with compare modes and one high-speed timer/counter |
| Serial Interface | Universal Serial Interface (USI) |
| Interrupt Support | Internal and external interrupts |
| Operating Voltage | 3.3 V / 5 V |
| Encapsulamento | 8-pin SOIC |
| Tipo de montagem | Surface mount |
| Programming Interface | In-Circuit Serial Programming (ICSP) |
| Programming Memory Type | In-System Programmable flash |
Guia de Configuração de Pinos do ATTINY45-20SU 8-pin soic
Configuração de pinos para ATTINY45-20SU (pacote 8-pin soic). Este CI digital inclui GPIO, interfaces de comunicação (UART, SPI, I2C) e pinos de alimentação. Consulte o datasheet do fabricante para funções alternativas dos pinos e opções de configuração. Essencial para projeto de sistemas embarcados e layout de PCB.
Nenhum dado detalhado de pinagem disponível para ATTINY45-20SU.
Consulte a ficha técnica para a configuração completa dos pinos.
Aplicações típicas
ATTINY45-20SU é adequado para 6 aplicaçãos: Compact Sensor Node, Industrial Control Module, LED Lighting Controller, Battery-Powered Household Device, Motor Command Interface, Programmable Logic Controller.
Compact Sensor Node
The ATTINY45-20SU fits compact sensor nodes because its four-channel 10-bit ADC can sample multiple analog inputs while six I/O lines handle switches, indicators, or an external interface. At up to 20 MHz, the AVR core can sample, filter, and transmit compact sensor data without requiring a larger processor. Its 4 KB flash constrains the firmware, so periodic readings and short communication routines are preferable to large buffering or logging functions. A regulated supply, local decoupling, and a protected RESET path are essential for reliable operation.
Recomendado
Industrial Control Module
The ATTINY45-20SU can implement a small industrial control module for discrete logic, limit detection, and simple actuator sequencing. Six I/O lines provide enough parallel digital I/O for inputs, outputs, status LEDs, and an external driver, while the timers support repeatable timing operations. The 20 MHz maximum clock provides useful margin for deterministic control code, although the 4 KB program space requires concise routines. Industrial products should also verify the exact operating-temperature grade and isolation requirements before production release.
Recomendado
LED Lighting Controller
The ATTINY45-20SU is suitable for LED lighting control when the design requires timed dimming, mode selection, and several digital outputs. Its timer/counter resources can establish stable update periods, while the USI can support a compact serial control link to a master or another lighting module. The four-channel 10-bit ADC can also support potentiometer-based dimming or analog light-level feedback. Keep switching-current paths away from ADC inputs, use transistor drivers rather than driving loads directly from the I/O pins, and validate the external driver's thermal margin.
Recomendado
Battery-Powered Household Device
The ATTINY45-20SU supports battery-powered household devices that require low-duty-cycle sensing and modest processing. Its low-power 8-bit architecture can remain in a reduced-activity state between user actions, while the six I/O lines operate buttons, indicators, or a simple output. The 20 MHz clock permits rapid startup and short control routines, and 256 bytes of SRAM is adequate for lightweight state tracking. Firmware should use the sleep modes documented by Microchip to reduce average consumption, and the battery platform should include low-voltage cutoff protection.
Recomendado
Motor Command Interface
The ATTINY45-20SU can serve as the command interface for a small motor or actuator system where the MCU interprets inputs, applies timing, and controls a driver stage. Six I/O lines are sufficient for control signals, direction, enable, and a status connection, while the timer resources help generate repeatable control intervals. Because MCU pins cannot safely drive motor windings directly, the design needs an appropriate transistor or integrated driver stage with flyback protection. Check timing and stall-current behavior across the complete battery or supply range.
Recomendado
Programmable Logic Controller
The ATTINY45-20SU is suitable for a compact programmable logic controller handling discrete inputs, timed outputs, and simple alarm logic. The 20 MHz AVR core executes deterministic control sequences, and the integrated timers, interrupts, and four-channel ADC reduce the need for external components. Its 4 KB flash and 256-byte SRAM limit program complexity, making state-machine architecture and compact lookup tables preferable to large communication stacks. Production designs should add input filtering, output isolation, watchdog support, and careful separation between field wiring and the MCU ground.
Recomendado
Resumo dos produtos recomendados
Dados de referência de engenharia para ATTINY45-20SU — comparação, orientação de projeto e informações de conformidade.
Guia de seleção
Comparação com alternativas
| Parâmetro | Este produto | ATTINY85-20SU | ATTINY85-20SH | ATTINY25-20SU | ATTINY25-20SSHR | ATTINY45V-10SUR |
|---|---|---|---|---|---|---|
| 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 CPU Frequency | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 20 MHz | 10 MHz |
| Flash Memory | 4 KB | 8 KB | 8 KB | 2 KB | 2 KB | 4 KB |
| Programming Interface | In-Circuit Serial Programming | In-Circuit Serial Programming | In-Circuit Serial Programming | In-Circuit Serial Programming | In-Circuit Serial Programming | In-Circuit Serial Programming |
Principais diferenciais
- Balanced memory capacity for compact embedded firmware (vs ATTINY25-20SU)
- Higher maximum clock than the reduced-speed ATtiny45 variant (vs ATTINY45V-10SUR)
- Lower flash demand than the ATtiny85 sibling (vs ATTINY85-20SU)
- Six dedicated general-purpose I/O lines with integrated analog conversion (vs ATTINY85-20SU)
Notas de projeto
Route the ATTINY45-20SU power pin through a short, low-impedance path and place the recommended bypass capacitor close to the device. Keep switching-node and high-current return paths away from ADC inputs because the four-channel 10-bit converter can be affected by coupling from fast edges. Use a common ground reference between the MCU and analog front end, and keep ISP test pads accessible without long traces that increase susceptibility to programming or EMI problems.
Account for the complete 20 MHz operating mode and the device-specific supply current from the manufacturer datasheet when sizing the regulator and energy budget. The 4 KB flash, 256-byte SRAM, and 256-byte EEPROM favor compact code, but adding buffers, libraries, or logging can exceed program memory. Enabling sleep modes and peripheral shutdown can reduce current between events, although actual battery life must be measured with the complete product load.
Do not assume that an ATtiny45 board can be replaced by a higher-speed or lower-memory device without reviewing the firmware. The ATTINY45V-10SUR operates at up to 10 MHz rather than 20 MHz, so delay loops and communication timing can change. The ATTINY25 variants provide only 2 KB of flash, which is 50% less than the ATTINY45's 4 KB. Confirm memory usage, baud-rate assumptions, timer periods, and peripheral usage before approving a substitute.
Preserve the manufacturer's pin configuration and leave programming access on the PCB. The RESET terminal should have the recommended pull-up arrangement and remain accessible through the ISP connector. Avoid placing sensitive analog traces directly beside fast-changing I/O or USI routes; route them across a solid ground reference when possible. For ADC-based designs, sample only after the source impedance and acquisition network satisfy the manufacturer's settling requirements.
Informações de conformidade
The ATTINY45-20SU is an industrial microcontroller rather than an automotive-qualified AEC-Q100 device. RoHS, REACH, lead-free, halogen-free, and conflict-minerals status require confirmation from the exact manufacturer product documentation or declaration.