Microchip Technology

ATTINY45-20SU - 20MHz 8-Bit AVR MCU | Microchip Technology

N.º de pieza: ATTINY45-20SU ✓ Activo
3.3 V / 5 V Vdss 8-pin SOIC Package 20 MHz Speed 4 KB Memory
MOQ: 1 |

ATTINY45-20SU Descripción general

The Microchip Technology ATTINY45-20SU is a low-power 8-bit AVR RISC microcontroller operating at up to 20 MHz, with 4 KB of in-system programmable flash memory and an 8-pin SOIC package. It provides 256 bytes of SRAM, 256 bytes of EEPROM, six general-purpose I/O lines, and four 10-bit ADC channels in a compact surface-mount footprint.

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 directas para ATTINY45-20SU — mismo encapsulado, compatible pin a pin. Se excluyen las piezas de otro encapsulado que requieren retrabajo de la PCB.

Variantes de esta serie

Modelos de la misma serie compatibles directamente con ATTINY45-20SU (mismo factor de forma y huella) — difiere en EEPROM, Package, SRAM, ADC, Flash Memory.

Microchip Technology
EEPROM: 64 bytes
Package: 8-pin SOIC (SO-8, 150 mil)
SRAM: 64 bytes
Comparar con ATTINY45-20SU →
Microchip Technology
EEPROM: 512 bytes
Package: 8-SOIC
SRAM: 512 bytes
Comparar con ATTINY45-20SU →

ATTINY85-20SU

✅ Sustitución directa ⚠️ Especificaciones sin verificar
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

Consulte el precio

Ver hoja de datos →

ATTINY85-20SH

✅ Sustitución directa ⚠️ Especificaciones sin verificar
Microchip Technology
📦 8-pin SOIC
8-bit AVR microcontroller · 20 MHz · 8 KB · 512 bytes · 512 bytes · 6 pins · 8 bits · 4 channels

Consulte el precio

Ver hoja de datos →

ATTINY25-20SU

✅ Sustitución directa ⚠️ Especificaciones sin verificar
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

Consulte el precio

Ver hoja de datos →

ATTINY25-20SSHR

✅ Sustitución directa
📦 8-pin SOIC
Flash decreases from 4 KB to 2 KB and the temperature-grade suffix differs, while the 20 MHz clock rating and 8-pin SOIC footprint remain compatible.

📋 Alternativa de referencia (no en el catálogo)

ATTINY45V-10SUR

✅ Sustitución directa
📦 8-pin SOIC
Maximum clock decreases from 20 MHz to 10 MHz, a 50% reduction, while 4 KB flash, AVR architecture, and 8-pin SOIC footprint remain compatible.

📋 Alternativa de referencia (no en el catálogo)

ATTINY45-20SU Valores máximos y características eléctricas

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
Encapsulado 8-pin SOIC
Tipo de montaje Surface mount
Programming Interface In-Circuit Serial Programming (ICSP)
Programming Memory Type In-System Programmable flash

Guía de configuración de pines de ATTINY45-20SU 8-pin soic

Configuración de pines para ATTINY45-20SU (encapsulado 8-pin soic). Este CI digital incluye GPIO, interfaces de comunicación (UART, SPI, I2C) y pines de alimentación. Consulte la hoja de datos del fabricante para conocer las funciones alternativas de los pines y las opciones de configuración. Esencial para el diseño de sistemas embebidos y el diseño de PCB.

Diagrama de patillaje del encapsulado 8-pin soic para ATTINY45-20SU

No hay datos detallados de patillaje disponibles para ATTINY45-20SU.

Consulte la hoja de datos para ver la configuración completa de patillas.

Aplicaciones típicas

ATTINY45-20SU es adecuado para 6 aplicacións: 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.

🏭

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.

💡

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.

📱

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.

🔧

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.

⚡

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.

What are the key specifications of ATTINY45-20SU?
The ATTINY45-20SU is an 8-bit AVR microcontroller rated for operation up to 20 MHz, with 4 KB of ISP flash, 256 bytes of SRAM, 256 bytes of EEPROM, six I/O lines, and a four-channel 10-bit ADC. According to the Microchip ATtiny45 product page and manufacturer datasheet, it also includes 32 working registers, timer/counter resources, a Universal Serial Interface, and internal plus external interrupts. The device is supplied in an 8-pin SOIC package for compact embedded-control designs.
Where can I download the ATTINY45-20SU datasheet PDF?
The ATTINY45-20SU datasheet PDF is available through the manufacturer datasheet link on this page and from the ATtiny45 product resources on Microchip's website. The PDF describes the 20 MHz AVR device, 4 KB ISP flash, 256-byte SRAM, 256-byte EEPROM, ADC, timers, USI, electrical characteristics, and package information. Use the pin-description table and recommended operating conditions in the manufacturer datasheet when assigning PCB tracks and validating worst-case timing.
Where can I find the ATTINY45 pinout?
The ATTINY45 pin configuration is shown in the ATtiny45-20SU manufacturer datasheet and on the ATtiny45 product page, where MPLAB Snap programming through an 8-pin single-in-line connector is also described. The device uses an 8-pin SOIC package and exposes six general-purpose I/O lines together with power, ground, and reset functions. Use the datasheet pin table to confirm analog multiplexing and avoid assigning a signal to a power or reset terminal.
ATTINY45 vs ATTINY85: Which microcontroller should I choose?
Choose the ATTINY45 when 4 KB of flash is sufficient, while the ATTINY85 provides 8 KB for larger firmware. The ATTINY85 is a pin-compatible 8-pin sibling with the same six I/O lines, but its program memory is twice the ATTINY45's 4 KB. The Microchip family comparison and cross-reference information also identify shared package and peripheral characteristics, so firmware size and required SRAM should drive the final choice.
What can replace ATTINY45-20SU?
The closest direct replacements are pin-compatible ATtiny family devices with the same 8-pin SOIC footprint and at least the required clock and I/O resources. The ATTINY85-20SU offers 8 KB of flash instead of 4 KB, while the ATTINY25 variants reduce flash capacity. Before replacing the device, verify that the original firmware fits the substitute's program memory and that all ADC, timer, USI, reset, and interrupt functions remain unchanged.
Is ATTINY45-20SU suitable for Arduino-style projects?
The ATTINY45-20SU can be used in Arduino-style embedded projects because the ATtiny45 supports in-system programming and provides GPIO, ADC, timers, and serial-interface resources. The device has only 4 KB of flash and 256 bytes of SRAM, so simple sketches work best; complex libraries and buffered serial applications may exceed its memory budget. Confirm the programming-tool support, bootloader space, and pin mapping before committing the board layout.
How do you program an ATTINY45-20SU?
Program the ATTINY45-20SU through its In-Circuit Serial Programming interface using a compatible AVR programmer such as the MPLAB Snap system described by Microchip. The programming connection uses power, ground, reset, and serial programming signals through an 8-pin single-in-line connector. The manufacturer also confirms ISP flash support, allowing firmware to be written and rewritten without removing the device from the assembled circuit.
Does ATTINY45-20SU support USB?
No native USB support is listed for the ATTINY45-20SU because the device is a small AVR microcontroller focused on GPIO, timers, ADC, and Universal Serial Interface functions. USB can potentially be added with external circuitry, but that implementation would require a suitable USB controller and careful signal, power, and firmware design. The ATtiny85 family comparison likewise identifies USB as a feature not integrated into the smallest ATtiny devices.
What is the pin-compatible difference between ATTINY45-20SU and ATTINY85-20SU?
The ATTINY85-20SU preserves the ATTINY45-20SU's 8-pin footprint, 20 MHz maximum clock, and six I/O lines while increasing flash from 4 KB to 8 KB. The additional 4 KB can simplify firmware organization or accommodate larger application code. Device selection still requires checking the 256-byte SRAM limit and confirming that the replacement's ADC, timer, USI, and interrupt behavior matches the original board design.
ATTINY45-20SU vs ATTINY45V-10SUR: Which is the better replacement?
The ATTINY45-20SU is the better choice when the design requires the full 20 MHz clock rating, while the ATTINY45V-10SUR is limited to 10 MHz. Both are identified as 8-pin SOIC AVR devices with 4 KB flash, so the package and memory remain compatible. However, reducing maximum clock by 50% can alter timing-sensitive firmware, communication baud-rate assumptions, and the overall power-versus-performance balance.
Where can I buy ATTINY45-20SU online?
Use the Request a Quote form on this page to request availability, order quantity, and a quotation for the ATTINY45-20SU. The manufacturer product page and distributor listings confirm the exact MPN, but live stock and commercial terms can change independently of technical documentation. Provide the required quantity, delivery location, and packaging preference so the quotation can reflect the current supply position.
What is the price of ATTINY45-20SU?
Use the Request a Quote form on this page for the current commercial quotation for ATTINY45-20SU. The structured pricing area is updated separately and may use quote-first handling, so a static figure would not reliably represent current availability or volume terms. For design budgeting, treat the product's price as variable until a quotation for the required quantity is returned.
What is the lead time for ATTINY45-20SU?
Request the current lead time and minimum order quantity through the Request a Quote form on this page. Lead time depends on the exact MPN suffix, requested quantity, packaging, and current distributor inventory rather than on the electrical specification. When ordering equivalents, specify the exact 8-pin SOIC package and required commercial grade so the quotation covers the intended assembly process.
Is ATTINY45-20SU in stock?
Current ATTINY45-20SU inventory should be confirmed through the Request a Quote form on this page. Manufacturer and distributor product pages establish that the part is a standard catalog MCU, but listing-page inventory can change quickly and may differ by package suffix. The quote request can include your target quantity and target date to establish a current supply commitment.
What is the best cross-brand equivalent for ATTINY45-20SU?
No cross-brand drop-in equivalent is established for the ATTINY45-20SU because its replacement depends on exact AVR peripheral behavior, programming compatibility, memory mapping, and 8-pin SOIC pinout rather than general electrical similarity. The Microchip cross-reference search is the appropriate tool for evaluating approved Microchip alternatives. Until a candidate is verified for pin, clock, memory, ADC, timer, and USI compatibility, changing manufacturers may require firmware and board changes.

Datos de referencia de ingeniería para ATTINY45-20SU — comparación, orientación de diseño e información de cumplimiento.

Guía de selección

Select the ATTINY45-20SU when the design needs an 8-bit AVR controller with up to 20 MHz operation, 4 KB of ISP flash, 256 bytes of SRAM, six I/O lines, and an integrated four-channel 10-bit ADC in an 8-pin SOIC package. It is particularly suitable for compact sensing, lighting, industrial-control, and low-cost actuator designs whose firmware remains within the 4 KB limit. Choose the ATTINY85-20SU when the same pinout is needed but twice the flash capacity can simplify code organization or add features. Choose the ATTINY25-20SU only when 2 KB of flash is sufficient and the lower memory demand justifies restricting firmware growth. Consider the ATTINY45V-10SUR only when a 10 MHz maximum clock is acceptable and timing can be revalidated. No cross-brand replacement should be selected without confirming exact pinout, programming method, timer behavior, ADC characteristics, and firmware compatibility.

Comparación con alternativas

Parámetro Este producto 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

Diferenciadores clave

  • Balanced memory capacity for compact embedded firmware (frente a ATTINY25-20SU)
  • Higher maximum clock than the reduced-speed ATtiny45 variant (frente a ATTINY45V-10SUR)
  • Lower flash demand than the ATtiny85 sibling (frente a ATTINY85-20SU)
  • Six dedicated general-purpose I/O lines with integrated analog conversion (frente a ATTINY85-20SU)

Notas de diseño

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.

Información de cumplimiento

RoHS
Unknown
REACH
Unknown
AEC-Q100
Not Applicable
Libre de plomo
Unknown
Libre de halógenos
Unknown
Minerales en conflicto
Unknown

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.

Datos verificados el: 2026-11-23 — datos verificados y seleccionados por el equipo de ingeniería de componentes de XAIPART

Búsquedas relacionadas

attiny45 20su datasheet attiny45 pinout attiny45 datasheet attiny45 vs attiny85 attiny45 arduino attiny45 price attiny45 programming attiny45 usb ATTINY45-20SU datasheet pdf ATTINY45-20SU pinout ATTINY45-20SU equivalent ATTINY45-20SU replacement ATTINY45-20SU schematic Microchip ATTINY45-20SU

Componentes & términos relacionados

Microchip Technology ATTINY45-20SU ATTINY45 ATTINY85-20SU ATTINY85-20SH ATTINY25-20SU ATTINY25-20SSHR ATTINY45V-10SUR AVR enhanced RISC architecture 8-bit microcontroller embedded microcontroller semiconductor In-System Programmable flash Universal Serial Interface USI In-Circuit Serial Programming ICSP MPLAB Snap 4-channel 10-bit ADC 8-pin SOIC SOIC-8 surface-mount package AEC-Q100 RoHS REACH EEPROM SRAM
RFQ de presupuesto rápido
Complete los detalles — nuestro equipo de ventas responderá en un plazo de 24 horas
Número de pieza Fabricante Encapsulado QTY Precio objetivo Total
✓
¡Presupuesto enviado!

Responderemos a su correo electrónico en un plazo de 24 horas

1
RFQ enviado
2
Presupuesto recibido
3
Pedido realizado
4
Pago
5
Enviado
6
Entregado
Ver detalles del RFQ