Microchip Technology

ATTINY45-20XU - 20MHz 8-Bit AVR MCU with 4KB Flash | Microchip

MPN: ATTINY45-20XU ✓ Hoạt động
8-pin TSSOP Package 20 MHz Speed 4 KB (2K x 16), in-system programmable Memory
MOQ: 1 |

ATTINY45-20XU Tóm tắt

The Microchip Technology ATTINY45-20XU is a low-power 8-bit AVR RISC microcontroller with a 20 MHz maximum clock, 4 KB in-system programmable Flash memory, 256 bytes of EEPROM, 256 bytes of SRAM, and six general-purpose I/O lines. It is packaged in an 8-pin TSSOP for compact embedded designs. The part also provides 32 general-purpose working registers and an 8-bit timer/counter with compare modes.

A microcontroller is a programmable integrated circuit that combines a CPU core, nonvolatile program memory, data memory, and peripherals in one package. The ATTINY45 belongs to the TinyAVR hierarchy, where TinyAVR is a small-footprint AVR family within the broader 8-bit microcontroller and embedded-control semiconductor categories. Its compact package and mixed signal peripherals are useful for cost-sensitive control, sensing, and automation products.

Key capabilities include a maximum 20 MHz operating frequency, 4 KB Flash organized as 2K by 16, 256 bytes of EEPROM, and 256 bytes of SRAM. Six I/O pins support digital control functions, while the listed ADC and USI features extend the device beyond basic GPIO operation. The 8-TSSOP package reduces board area compared with larger microcontroller packages and supports surface-mount assembly.

The enhanced AVR RISC architecture provides a compact instruction set and efficient execution for embedded workloads. Program development is supported through the AVR programming ecosystem, including In-System Programming and ISP-compatible programming workflows. Because the device combines 4 KB of Flash with 256 bytes of SRAM, firmware must remain compact and avoid relying on large buffering or high-resolution data sets.

Typical uses include compact sensor controllers, LED and lighting control nodes, small industrial automation modules, IoT accessories, and embedded consumer products. In these applications, the ATTINY45-20XU can sample an analog input, execute control logic, drive outputs, and retain configuration data in EEPROM. Its small 8-pin footprint is particularly useful where board area, power consumption, and production cost are more important than high memory capacity.

PCB designers should preserve access to the programming pins and provide clean supply decoupling near VCC and GND. ADC-enabled designs should also route the analog input away from switching nodes and follow the manufacturer datasheet when selecting bypass capacitors. Firmware validation should include clock, reset, programming, and brownout behavior across the intended 5 V operating condition.

This product page consolidates the core ATtiny45 specifications, ordering information, drop-in replacement findings, and practical design guidance into a focused engineering reference. It helps engineers evaluate the ATTINY45-20XU for compact AVR control designs while separating verified device characteristics from parameters that require confirmation from the manufacturer datasheet.

Bộ thay thế dễ dàng lắp đặt cho ATTINY45-20XU — cùng gói, chân-to-chân tương thích. Các bộ phận yêu cầu hàn PCB bị loại trừ.

Không có bộ thay thế dễ dàng lắp đặt sẵn có cho sản phẩm này.

Yêu cầu các bộ thay thế

ATTINY45-20XU Tỷ lệ tối đa & tính chất điện

Product Type 8-bit AVR RISC microcontroller
Tần số xung maksimum 20 MHz
Flash Memory 4 KB (2K x 16), in-system programmable
EEPROM Memory 256 bytes
SRAM 256 bytes
General-Purpose I/O Lines 6
General-Purpose Working Registers 32
Timer/Counter 1 x 8-bit timer/counter with compare modes
ADC Resolution 10-bit
Hộp 8-pin TSSOP
Kiểu lắp đặt Surface mount
Instruction Set Enhanced AVR RISC architecture
Programming Interface In-System Programming
Peripheral Interfaces Universal Serial Interface and ADC
Functional Safety Functional Safety (FuSa) device classification

Cấu hình chân ATTINY45-20XU

TSSOP-8 Package Pinout Diagram TSSOP-8 8-pin thin shrink small outline, P0.65mm, JEDEC MO-153. 1 8 2 7 3 6 4 5 TSSOP-8
Chân 1 PB3 — General-purpose I/O pin
Chân 2 PB4 — General-purpose I/O pin
Chân 3 GND — Ground connection
Chân 4 PB5 — General-purpose I/O pin
Chân 5 PB0 — General-purpose I/O pin
Chân 6 PB1 — General-purpose I/O pin
Chân 7 PB2 — General-purpose I/O pin
Chân 8 VCC — Power supply connection

Ứng dụng tiêu biểu

ATTINY45-20XU phù hợp cho 6 Áp dụngs: Compact Sensor Controller, LED Lighting Control, Industrial Automation Module, IoT Accessory Controller, Battery-Powered Control Module, Embedded Consumer Product.

🧩

Compact Sensor Controller

The ATTINY45-20XU is suitable for compact sensor nodes that need local signal conditioning, threshold decisions, and status reporting. Its 10-bit ADC can digitize an analog sensor output, while six general-purpose I/O lines can handle digital inputs, alarm outputs, or configuration signals. The 20 MHz clock gives short interrupt and control latency, while 4 KB of Flash accommodates a focused firmware image and 256 bytes of EEPROM can retain calibration or configuration values. A practical design places decoupling close to VCC and GND, routes the ADC input away from switching nodes, and uses the pin-description table in the manufacturer datasheet when assigning the six available I/O lines.

💡

LED Lighting Control

The ATTINY45-20XU can serve as the local controller in a small LED lighting module, using timer compare outputs for dimming, blink patterns, or status indication. Its 8-bit timer/counter with compare modes is useful for repeatable timing, while the 20 MHz clock leaves processing capacity for control logic, button handling, and fault detection. The six I/O lines are sufficient for several LED channels and switch inputs when the design does not require more peripherals. Keep LED current paths and inductive switching nodes separate from the MCU supply and analog input routing, and size any driver transistors according to the LED load rather than driving excessive current directly from the MCU pins.

🏭

Industrial Automation Module

The ATTINY45-20XU fits small industrial automation modules that combine discrete inputs with limited analog sensing. Its six I/O lines can monitor contact states, command relays through suitable driver circuitry, and provide status indication, while the 10-bit ADC can support a 0-to-10 V or current-sensed process input after suitable scaling and protection. The device's 20 MHz clock supports responsive debouncing and deterministic control routines. For factory equipment, isolate the MCU from inductive loads, include robust input protection, and test power-loss and brownout recovery. The manufacturer datasheet should define the exact supply limits and reset behavior used in the final control design.

📱

IoT Accessory Controller

The ATTINY45-20XU can manage the low-speed control functions in an IoT accessory when the accessory also includes a separate communication device. Six I/O lines can operate relays, indicators, or user inputs, and the ADC can monitor a battery or sensor divider. The 20 MHz processor is appropriate for foreground control, debouncing, and local state management, but the 4 KB Flash and 256-byte SRAM require careful firmware sizing. Use the USI for a suitable serial link when the external peripheral supports it, and keep radio or high-current switching circuitry away from the analog and clock paths. This arrangement permits modular product construction without overloading the small MCU.

⚡

Battery-Powered Control Module

The ATTINY45-20XU is appropriate for small battery-powered control modules that wake periodically, read a limited set of inputs, and place external circuitry into a low-power state. Its compact 8-TSSOP package reduces board area, while 256 bytes of EEPROM can hold small configuration records and its 256-byte SRAM supports lightweight control routines. The ATtiny45 family also includes power-saving operating modes, although the final sleep current and wake-up timing must be taken from the manufacturer datasheet. Use a regulator appropriate for the battery chemistry, account for ADC reference and divider errors, and test every peripheral state for unintended current draw before defining the module's battery life.

🔧

Embedded Consumer Product

The ATTINY45-20XU can add local intelligence to a compact consumer accessory such as a simple control panel, calibration module, or interface adapter. Its 20 MHz clock supports responsive menu handling and debounce logic, while six I/O lines and the 10-bit ADC cover many basic front-panel functions. The 4 KB program-memory limit favors focused code and lean libraries, and the 256-byte SRAM requires streaming rather than buffering large datasets. Designers should keep ESD-sensitive user inputs away from long PCB traces, provide a stable supply reference for ADC measurements, and follow the manufacturer pin table to preserve ISP access for production programming and firmware updates.

What are the key specifications of ATTINY45-20XU that engineers should know?
The ATTINY45-20XU is an 8-bit AVR RISC microcontroller rated for operation up to 20 MHz, with 4 KB of ISP Flash, 256 bytes of EEPROM, 256 bytes of SRAM, and six general-purpose I/O lines. According to the Microchip Technology ATtiny45 product page, it also includes 32 working registers, an 8-bit timer/counter with compare modes, and an 8-pin TSSOP package. These specifications define its capability as a compact control device for embedded products with modest memory requirements.
Where can I download the ATTINY45-20XU datasheet?
The ATTINY45-20XU datasheet and product resources are available through the Microchip Technology ATtiny45 product page linked in the product links on this page. The manufacturer page identifies the device as an 8-bit AVR microcontroller with 4 KB ISP Flash, 256 bytes of EEPROM, 256 bytes of SRAM, six I/O lines, and a 20 MHz maximum clock. Use the manufacturer document for the authoritative pin description, electrical limits, timing diagrams, and programming instructions.
Where can I find the ATTINY45-20XU pinout?
The ATTINY45-20XU uses an 8-pin TSSOP package, and its complete pin assignment is listed in the pinout section on this page. The pin-description table in the manufacturer ATtiny45 datasheet should remain the authority when assigning PCB nets. The device includes six general-purpose I/O lines together with power and ground connections, so preserving the standard 8-pin orientation is essential for programming and peripheral routing.
What is the difference between ATTINY45 and ATTINY85?
The principal documented difference is program-memory capacity: ATTINY45 provides 4 KB of ISP Flash, while ATtiny85 is a distinct TinyAVR family member with a larger memory configuration. The ATtiny45 also provides 256 bytes of EEPROM, 256 bytes of SRAM, six I/O lines, and a 20 MHz maximum clock. When comparing ATTINY45 and ATTINY85, check the complete pin description and peripheral configuration rather than assuming that every family member is software- and footprint-compatible.
How do I program an ATTINY45-20XU?
The ATTINY45-20XU supports an AVR In-System Programming workflow, allowing firmware to be programmed while the device remains mounted on the target board. The exact ISP connector, clock selection, and programming voltage should follow the ATtiny45 manufacturer datasheet and the selected programmer documentation. Keep the ISP signal routing accessible, confirm the reset behavior, and verify the device fuse and lock settings before validating a production programming process.
Is ATTINY45-20XU suitable for Arduino-style projects?
The ATTINY45-20XU can be used for Arduino-style compact projects when the firmware, board support package, and programmer are compatible with the ATtiny45 device and its 4 KB Flash limit. Its 20 MHz clock, six I/O lines, ADC, and USI are useful for small sensor, LED, and control projects. Because the part has only 256 bytes of SRAM and 4 KB of Flash, designs requiring larger libraries, extensive buffers, or complex USB functionality should be reviewed before implementation.
Can ATTINY45-20XU be used with a USB interface?
The ATTINY45-20XU does not include an integrated USB controller, so it cannot provide native USB device communication without external circuitry. Its USI can support serial-interface functions, but USB data signaling requires a suitable external USB interface or controller and the associated firmware and hardware. For designs centered on USB connectivity, select an MCU family with native USB support unless a discrete USB interface is intentionally included.
ATTINY45-20XU vs ATTINY85: which is better for a compact sensor node?
Choose ATTINY45-20XU when a compact sensor node needs 4 KB of Flash, 256 bytes of EEPROM, 256 bytes of SRAM, six I/O lines, and a 20 MHz clock with minimal board area. Choose ATtiny85 only when its larger memory capacity is genuinely required and the associated firmware footprint is justified. ATTINY45-20XU is generally preferable when application code remains comfortably within its smaller memory limits.
When should I choose ATTINY45-20XU over a larger 8-bit AVR microcontroller?
Choose ATTINY45-20XU when the application fits within 4 KB of Flash and 256 bytes of SRAM and can use six I/O lines in an 8-pin TSSOP footprint. Its 20 MHz clock provides ample control bandwidth for compact sensor, LED, and automation designs. Select a larger AVR device when additional I/O, memory, timers, communication peripherals, or application headroom materially reduces development risk.
What is the best drop-in replacement for ATTINY45-20XU?
No independently verified cross-manufacturer drop-in replacement was identified for the ATTINY45-20XU. A true replacement must preserve the 8-pin TSSOP footprint, pin functions, 4 KB Flash, 256-byte EEPROM, 256-byte SRAM, six I/O lines, and 20 MHz operating capability, as well as the required programming and peripheral behavior. The manufacturer ATtiny45 family remains the appropriate starting point for an approved equivalent review.
Is ATTINY45-20XU in stock?
Current stock status should be confirmed through the Request a Quote form on this page because availability can change independently of the product record. The form allows quantity, target date, and sourcing requirements to be included in an inquiry. For production planning, request the exact MPN ATTINY45-20XU so the quote response can identify the correct 8-TSSOP ordering configuration.
What is the price of ATTINY45-20XU?
Use the Request a Quote form on this page for a current ATTINY45-20XU quotation. The form captures the required quantity and sourcing context so the response can reflect current component availability and order handling. Buyers should confirm that the quoted line references the exact ATTINY45-20XU MPN, 8-TSSOP package, and intended delivery quantity.
What is the lead time for ATTINY45-20XU?
The current lead time for ATTINY45-20XU should be requested through the Request a Quote form on this page. Include the required quantity, production schedule, and any acceptable date for factory or authorized-channel sourcing. The exact MPN ATTINY45-20XU should be stated in the request so availability and scheduling are evaluated for the correct 8-TSSOP device.
Where to buy ATTINY45-20XU online?
Use the Request a Quote form on this page to request ATTINY45-20XU with your required quantity and delivery schedule. The form is the appropriate route for current sourcing because stock and lead time can change quickly for catalog microcontrollers. State the exact ATTINY45-20XU MPN and confirm whether reel, tray, or another approved delivery format is required.
Is ATTINY45-20XU RoHS compliant and suitable for automotive designs?
The ATTINY45-20XU is classified as a Functional Safety (FuSa) microcontroller by Microchip Technology, but that classification does not by itself establish AEC-Q100 qualification. Its RoHS and REACH status, along with automotive qualification, should be confirmed from the exact ordering code and current manufacturer compliance documentation. Use the Request a Quote form when formal production suitability documentation is required.

Dữ liệu tham khảo kỹ thuật cho ATTINY45-20XU — so sánh, hướng dẫn thiết kế và thông tin tuân thủ.

Hướng dẫn chọn lựa

The ATTINY45-20XU is best suited to compact embedded-control designs that need a 20 MHz 8-bit AVR core, 4 KB of Flash, 256 bytes of EEPROM, 256 bytes of SRAM, six I/O lines, a 10-bit ADC, and USI in an 8-pin TSSOP package. It is a strong fit for small sensor nodes, LED controllers, industrial interface modules, and compact consumer accessories. Choose a higher-memory AVR when firmware, buffering, timing resources, or communication requirements exceed the ATtiny45 limits. Do not substitute an ATtiny85 solely for pin count: its larger memory changes firmware constraints, while the ATtiny25 and ATtiny85 have different program-memory capacities. Since no verified cross-manufacturer drop-in equivalent was identified, replacement decisions should compare footprint, pin functions, memory, peripherals, clock rate, programming method, and regulatory requirements before schematic or layout changes are approved.

So sánh với các sản phẩm thay thế

Tham số Sản phẩm này
Brand Microchip Technology
Package 8-pin TSSOP
CPU Architecture 8-bit AVR RISC
Maximum Clock Frequency 20 MHz
Flash Memory 4 KB (2K x 16)
EEPROM Memory 256 bytes
SRAM 256 bytes
General-Purpose I/O Lines 6
ADC Resolution 10-bit
Timer/Counter 1 x 8-bit timer/counter with compare modes

Ghi chú thiết kế

Place the supply bypass capacitor close to the VCC and GND pins, and keep the ground return path short to reduce switching noise across the MCU. Route the ADC input away from relay, LED, and power-converter nodes. The 8-pin TSSOP footprint leaves limited escape routing, so use a stable pad arrangement and follow the manufacturer land pattern rather than improvising a footprint.

Budget regulator headroom, startup current, and load transient behavior around the ATtiny45's 5 V operating configuration. The device has only 256 bytes of SRAM and limited peripheral resources, so power-efficient firmware is also important in battery applications. Use the manufacturer electrical characteristics to select bypass capacitors and confirm brownout, reset, and sleep-mode behavior during system validation.

Do not select a smaller-memory ATtiny25 variant when firmware depends on the ATTINY45's 4 KB Flash, and do not assume ATtiny85 software is binary-compatible without confirming the memory map and peripheral differences. Keep ISP programming access available on assembled boards. Similarly, verify every 8-pin package variant for matching lead dimensions and pin numbering rather than treating all eight-pin AVR packages as interchangeable footprints.

Thông tin tuân thủ

RoHS
Unknown
REACH
Unknown
AEC-Q100
Not Applicable
Không chì
Unknown
Không halogen
Unknown
Khoáng vật xung đột
Unknown

The manufacturer listing identifies the device as Functional Safety (FuSa) classified. Formal RoHS, REACH, lead-free, halogen-free, conflict-minerals, and automotive qualification documentation should be confirmed for the exact ordering code.

Dữ liệu được xác minh vào: 2026-11-19 — dữ liệu được xác minh và quản lý bởi đội ngũ kỹ thuật phần cứng của XAIPART

Tìm kiếm liên quan

attiny45 pinout attiny45 datasheet attiny45 vs attiny85 attiny45 arduino attiny45 price attiny45 programming attiny45 usb ATTINY45-20XU datasheet pdf ATTINY45-20XU pinout ATTINY45-20XU equivalent ATTINY45-20XU replacement ATTINY45-20XU footprint ATTINY45-20XU price ATTINY45-20XU application circuit

Các bộ phận và thuật ngữ liên quan

Microchip Technology ATTINY45-20XU ATTINY45 ATtiny85 ATtiny25 AVR AVR RISC architecture 8-bit microcontroller TinyAVR embedded microcontroller semiconductor In-System Programming Universal Serial Interface ADC 10-bit ADC 8-pin TSSOP surface-mount technology EEPROM SRAM ISP Flash memory Functional Safety FuSa sensor controller industrial automation
Báo giá nhanh RFQ
Hãy điền đầy đủ thông tin — đội ngũ bán hàng của chúng tôi sẽ phản hồi trong vòng 24 giờ
Mã sản phẩm Nhà sản xuất Kiểu đóng gói QTY Giá mục tiêu Phụ
✓
Báo giá đã gửi!

Chúng tôi sẽ trả lời email của bạn trong vòng 24 giờ

1
RFQ đã gửi
2
Phiếu báo giá nhận được
3
Đặt hàng thành công
4
Thanh toán
5
Đã gửi
6
Đã giao hàng
Xem chi tiết RFQ