Microchip Technology

ATTINY45-20PU - 20MHz 8-bit AVR MCU | Microchip Technology

부품 번호: ATTINY45-20PU ✓ 활성
8-pin DIP (8-PDIP) Package 20 MHz Speed 4 KB In-System Programmable Flash (2K x 16) Memory
MOQ: 1 |

ATTINY45-20PU 개요

The Microchip Technology ATTINY45-20PU is an 8-bit AVR RISC-based microcontroller with a 20 MHz maximum clock speed, 4 KB of In-System Programmable Flash memory, 256 bytes of EEPROM, 256 bytes of SRAM, and six general-purpose I/O lines, housed in an 8-pin DIP package. The -20 suffix identifies the 20 MHz speed grade, while the P suffix denotes the through-hole package and U identifies the standard operating-temperature grade.

A microcontroller is a programmable semiconductor that combines a CPU core, memory, timers, and I/O in one integrated circuit. The ATTINY45 belongs to the ATtiny family of low-power 8-bit AVR microcontrollers, which sit below larger AVR and AVR Dx devices in the Microchip product hierarchy. Its small memory footprint and limited I/O count make it suitable for compact embedded products where cost, board area, and simple control functions matter more than high peripheral complexity.

The device provides 32 general-purpose working registers, an 8-bit timer/counter with compare modes, and in-system serial programming support. Its six I/O pins can be used for digital control, sensing, switching, or communication functions. The 4 KB Flash area provides room for a small embedded application, while the 256-byte EEPROM supports nonvolatile configuration or parameter storage without occupying program Flash.

The ATTINY45 architecture uses the AVR enhanced RISC core, an event-driven design that keeps instruction execution efficient for typical control tasks. The 20 MHz operating grade supports faster computation and timer-based functions than 10 MHz variants. Because the device has limited memory and pins, firmware should minimize dynamic allocation, use efficient peripheral routines, and avoid unnecessary abstraction layers that consume Flash and SRAM.

Typical uses include compact sensor controllers, LED lighting modules, small motor or actuator controllers, industrial push-button interfaces, and simple wearable or IoT nodes. In these systems, the ATtiny45 can read a sensor, make a control decision, and drive an output without requiring an external processor. The DIP package also simplifies breadboard prototyping and through-hole assembly.

For PCB design, place decoupling capacitance close to the VCC and GND pins, route the reset path to avoid noise pickup, and keep switching or high-current traces away from sensitive ADC inputs. Use the manufacturer datasheet for the complete pin-description table, electrical limits, clock requirements, programming connections, and package dimensions.

This product page combines manufacturer specifications, package and pin information, practical application guidance, and a parameter-focused comparison with compatible ATtiny45-family devices. It is designed to help engineers verify package compatibility, firmware constraints, programming requirements, and sourcing options before committing a design to production.

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

이 시리즈의 변형

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

Microchip Technology
Package: 8-pin DIP, 0.300 inch, 7.62 mm pitch
Product Type: 8-bit AVR microcontroller
비교 대상: ATTINY45-20PU →

ATTINY45-20PI

✅ 드롭인
📦 8-PDIP
Same 20 MHz ATtiny45 configuration and 8-pin DIP footprint; industrial temperature grade replaces the standard U grade.

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

ATTINY45-10PU

✅ 드롭인 ⚠️ 사양 미검증
📦 8-PDIP
Maximum clock decreases from 20 MHz to 10 MHz, a 50% reduction; memory and pin arrangement remain the same.

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

ATTINY45V-10PU

✅ 드롭인 ⚠️ 사양 미검증
📦 8-PDIP
Maximum clock decreases from 20 MHz to 10 MHz and the device uses the V voltage-grade configuration; verify rail compatibility.

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

ATTINY85-20PU

✅ 드롭인
Microchip Technology
📦 8-PDIP
8-bit AVR microcontroller · 20 MHz · AVR enhanced RISC · 8 KB (4K x 16) · Flash · In-system programmable · 512 bytes · 512 bytes

가격 문의

데이터시트 보기 →

ATTINY25-20PU

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

가격 문의

데이터시트 보기 →

ATTINY45-20PU 최대 정격 & 전기적 특성

Product Type 8-bit AVR RISC microcontroller
Maximum Clock Speed 20 MHz
Flash Memory 4 KB In-System Programmable Flash (2K x 16)
EEPROM 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
Architecture AVR enhanced RISC
Core Type 8-bit
패키지 8-pin DIP (8-PDIP)
실장 유형 Through-hole
Programming In-System Serial Programming (ICSP)
Product Temperature Grade U: standard grade
RoHS 상태 unknown
REACH Status unknown
AEC-Q100 Qualification not_applicable
Document Page Count 24 pages

ATTINY45-20PU 핀 구성

DIP-8 Package Pinout Diagram DIP-8 8-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 8 2 7 3 6 4 5 DIP-8
핀 1 PB0 — General-purpose I/O pin 0
핀 2 PB1 — General-purpose I/O pin 1
핀 3 PB2 — General-purpose I/O pin 2
핀 4 PB3 — General-purpose I/O pin 3
핀 5 VCC — Power supply input
핀 6 GND — Ground reference
핀 7 PB4 — General-purpose I/O pin 4
핀 8 RESET — Active-low reset input

일반적인 애플리케이션

ATTINY45-20PU 적합 용도: 6 애플리케이션s: Compact Sensor Controller, LED Lighting and Display Control, Small Motor and Actuator Control, Industrial Push-Button Interface, Simple IoT Sensor Node, Prototype and Education Controller.

🧩

Compact Sensor Controller

The ATTINY45-20PU is appropriate for compact sensing nodes because its 20 MHz AVR core can process sensor readings and execute control logic without a separate processor. Six general-purpose I/O lines provide direct connections for digital sensors, switches, and alarm outputs, while 256 bytes of SRAM and 256 bytes of EEPROM support short working buffers and persistent configuration. The device can be placed between a sensor interface and an actuator, sampling inputs and applying threshold logic in a compact embedded design. Its limited 4 KB Flash requires careful code sizing, and power consumption should be evaluated against the battery budget using the manufacturer’s sleep and active-current characteristics.

💡

LED Lighting and Display Control

The ATTINY45-20PU can control LED status indicators, small lighting sequences, or segmented display logic through its six I/O lines. A 20 MHz clock provides additional timing headroom for debouncing, PWM-style brightness control, and multiplexed display updates compared with a 10 MHz ATtiny45 variant. The 4 KB Flash is adequate for compact lighting state machines and compact lighting state machines and calibration tables. Because each output pin has finite drive capability, current limits and switching transients should be checked against the LED or driver topology. Firmware should also include a defined startup state so the outputs remain safe during reset and brownout conditions.

⚡

Small Motor and Actuator Control

The ATTINY45-20PU can serve as the command controller in a small motor, valve, relay, or actuator module. Its 8-bit timer/counter supports basic timing and compare operations, and the six I/O lines can accept position or limit inputs and issue control commands to an external driver stage. The 20 MHz clock improves timing margin for debouncing and PWM implementation, although the MCU should not directly drive a motor or relay; use a suitable transistor or driver circuit and provide protection against inductive transients. Confirm the load’s supply current and startup demands, and review absolute output limits before selecting pin drive modes.

🏭

Industrial Push-Button Interface

The ATTINY45-20PU is well suited to a compact industrial-style input module that debounces several buttons, records events, and communicates a selected action to a host. Six I/O lines allow several inputs to be multiplexed or combined with an indicator output, while 256 bytes of EEPROM can retain configuration such as mode, debounce parameters, or device addresses. The 20 MHz class supports responsive scanning and deterministic event handling without excessive software overhead. Industrial use requires attention to transient immunity, grounding, connector protection, and the operating-temperature grade of the selected assembly. Firmware should validate repeated samples and define safe outputs when multiple buttons are pressed simultaneously.

🌐

Simple IoT Sensor Node

The ATTINY45-20PU can form the local control element of a small IoT sensor node, handling a digital sensor, applying local thresholds, and waking a communications module when an event occurs. Its low-power AVR architecture and compact 8-pin DIP package make it useful for prototype and space-constrained boards. Six I/O lines leave limited interface capacity, so a carefully selected serial transceiver or wireless module is more practical than a broad collection of peripherals. The 4 KB program Flash and 256-byte SRAM demand efficient event-driven firmware, while 256 bytes of EEPROM are useful for calibration values and device settings. Confirm radio-module logic levels and timing so the MCU can reliably control its sleep and reset sequence.

🔧

Prototype and Education Controller

The ATTINY45-20PU is convenient for education, prototyping, and small proof-of-concept boards because it uses a familiar 8-pin DIP package and supports ISP programming. Students or engineers can use its six I/O pins to demonstrate digital inputs, timer-based control, EEPROM persistence, and basic AVR programming without allocating a large board area. The 20 MHz speed grade provides additional headroom for instructional examples, but the 4 KB Flash limit makes code-size awareness important. A standard AVR programming adapter can connect to the ISP interface, and the DIP package simplifies breadboard use. Before moving a prototype to a compact PCB, recheck pin orientation, decoupling, reset behavior, and any peripheral differences between development and production devices.

What are the key specifications of ATTINY45-20PU that engineers should know?
The ATTINY45-20PU is an 8-bit AVR microcontroller operating at 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 ATtiny45 product page and manufacturer datasheet, the device also provides 32 working registers and one 8-bit timer/counter with compare modes. It is packaged in an 8-pin DIP for through-hole assembly.
What is the ATTINY45-20PU and what does the -20 suffix mean?
The ATTINY45-20PU is a compact 8-bit AVR RISC microcontroller in an 8-pin DIP package, with 4 KB Flash, 256 bytes of EEPROM, 256 bytes of SRAM, and six I/O pins. The -20 portion identifies the maximum 20 MHz clock-speed grade. The P package suffix denotes the through-hole DIP configuration, while U identifies the standard temperature grade.
Where can I download the ATTINY45-20PU datasheet PDF?
The ATTINY45-20PU datasheet PDF is available through the ATMEL datasheet listing and the Microchip ATtiny45 product page. The listed document describes the shared ATtiny25/45/85 architecture and covers the ATtiny45-20PU configuration. Use the manufacturer document for authoritative pin descriptions, electrical characteristics, programming connections, and package drawings before finalizing a PCB.
Where can I find the ATTINY45-20PU pinout?
The ATTINY45-20PU uses an 8-pin DIP pinout with PB0 on pin 1, PB1 on pin 2, PB2 on pin 3, PB3 on pin 4, VCC on pin 5, GND on pin 6, PB4 on pin 7, and RESET on pin 8. Confirm these assignments against the pin-description table in the manufacturer datasheet when assigning PCB tracks and programming adapter connections.
What is the difference between ATTINY45 and ATTINY85?
The principal difference is program memory: ATTINY45 has 4 KB of Flash, while ATTINY85 has 8 KB. The ATTINY45-20PU provides 256 bytes of EEPROM, 256 bytes of SRAM, and six I/O pins, making it suitable for smaller firmware. For firmware near the ATtiny45 capacity limit, ATTINY85-20PU offers more program space in the same 8-pin DIP footprint.
Can ATTINY45-20PU be programmed with Arduino or MPLAB tools?
The ATTINY45-20PU is an AVR device and can be programmed through compatible Arduino bootloader workflows or Microchip MPLAB tools using ISP. The manufacturer product page specifically describes MPLAB Snap connected through an 8-pin single-in-line interface and ICSP. Programming requires the correct device selection, clock setup, and connection to RESET, VCC, GND, and the serial programming data pins.
Is ATTINY45-20PU suitable for low-power battery applications?
The ATTINY45-20PU can suit low-power embedded products because it belongs to Microchip’s low-power AVR family and includes six I/O pins for compact sensing and control. Actual battery suitability depends on the selected clock, active versus sleep-mode current, external load, and firmware duty cycle. Review the electrical characteristics and power-consumption modes in the manufacturer datasheet for the operating conditions.
What is the best drop-in replacement for ATTINY45-20PU?
The closest same-package choice is ATTINY45-20PI when industrial temperature operation is acceptable; otherwise ATTINY45-10PU is a lower-speed alternative with reduced clock headroom. Other ATtiny45-family options change speed, flash capacity, or supply configuration. Verify pin compatibility, timing, operating voltage, temperature requirements, and firmware behavior before approving any replacement.
Can ATTINY85-20PU replace ATTINY45-20PU without changing the PCB?
ATTINY85-20PU can fit the same 8-pin DIP footprint and provides more Flash memory than ATTINY45-20PU, but it is not an exact behavioral substitute. The ATtiny85 increases program memory from 4 KB to 8 KB, while both families retain the 8-pin architecture and six I/O lines. Review device-specific timing and peripheral details in the manufacturer documentation.
When should I choose ATTINY45-20PU over ATTINY25-20PU?
Choose ATTINY45-20PU when firmware, configuration data, or future expansion requires more program memory than ATTINY25-20PU provides. The ATTINY45 has 4 KB of Flash and 256 bytes of EEPROM, while the smaller ATtiny25 family is intended for more compact programs. Both use the same 8-pin family arrangement, so the choice should follow code-size and product-lifecycle requirements.
Where can I buy ATTINY45-20PU online?
Use the Request a Quote form on this page to request ATTINY45-20PU availability, order quantities, and a current quotation. The manufacturer direct listing identifies the part as factory programmable and in stock, while distributor listings provide additional ordering channels. Submit the exact MPN and required package quantity through the quote form.
What is the current price of ATTINY45-20PU?
Current commercial pricing for ATTINY45-20PU should be requested through the Request a Quote form on this page because the platform calculates customer quotations from the selected quantity and supply channel. The product is offered by the manufacturer direct channel and multiple authorized distribution listings, but use the form for the binding quotation and available volume tiers.
What is the lead time for ATTINY45-20PU?
The manufacturer direct listing showed ATTINY45-20PU in stock with an estimated shipment of 11-Nov-2026 for partial-tube inventory, but stock and timing can change quickly. Submit your required quantity through the Request a Quote form on this page for current availability and lead-time confirmation. Include whether partial tubes are acceptable for your assembly process.
Is ATTINY45-20PU in stock?
The manufacturer direct listing reported ATTINY45-20PU as in stock, with 341 units and 41 units in partial tubes at the captured time. Availability can change after that listing, so use the Request a Quote form on this page to confirm current stock for the exact quantity. Confirm whether standard-tube or partial-tube packing is required.
Does ATTINY45-20PU support USB communication directly?
ATTINY45-20PU does not provide a dedicated USB peripheral, so direct USB communication requires additional interface hardware or a software-defined approach using suitable GPIO. The manufacturer product page identifies six I/O lines and ICSP programming but does not list USB as an integrated peripheral. For USB designs, select an MCU family with native USB support.
What should designers check before using ATTINY45-20PU as a drop-in replacement?
Check the 8-pin DIP footprint, power and ground connections, RESET behavior, clock-speed assumptions, operating temperature, supply voltage, timer timing, and all firmware-controlled peripherals. According to Microchip’s ATtiny family documentation, related ATtiny devices can share packages while differing in Flash, EEPROM, timers, and other functions. Validate the final choice with a hardware-in-the-loop test.

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

선택 가이드

Choose ATTINY45-20PU for compact embedded controls that need a 20 MHz AVR core, 4 KB of program Flash, six I/O lines, and an easy-to-prototype 8-pin DIP package. Select ATTINY45-20PI when the same electrical configuration is required with the industrial temperature designation; confirm the complete operating-temperature limits before release. Consider ATTINY45-10PU or ATTINY45V-10PU only when lower clock speed and the corresponding voltage configuration are acceptable. Choose ATTINY85-20PU when the current firmware is too large for 4 KB or when its larger memory resources are useful, and choose ATTINY25-20PU only for substantially smaller programs. Because related ATtiny devices can share a footprint while differing in memory, timing, and peripheral behavior, validate substitutions against the manufacturer datasheet and firmware timing requirements.

대체품과의 비교

파라미터 이 제품 ATTINY45-20PI ATTINY45-10PU ATTINY45V-10PU ATTINY85-20PU ATTINY25-20PU
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 8-PDIP 8-PDIP 8-PDIP 8-PDIP 8-PDIP 8-PDIP
Maximum Clock Speed 20 MHz 20 MHz 10 MHz 10 MHz 20 MHz 20 MHz
Flash Memory 4 KB 4 KB 4 KB 4 KB 8 KB 2 KB
EEPROM 256 bytes 256 bytes 256 bytes 256 bytes 512 bytes 128 bytes
SRAM 256 bytes 256 bytes 256 bytes 256 bytes 512 bytes 128 bytes
General-Purpose I/O Lines 6 6 6 6 6 6
Architecture AVR enhanced RISC, 8-bit AVR enhanced RISC, 8-bit AVR enhanced RISC, 8-bit AVR enhanced RISC, 8-bit AVR enhanced RISC, 8-bit AVR enhanced RISC, 8-bit
Product Temperature Grade U standard grade I industrial grade U standard grade U standard grade U standard grade U standard grade

주요 차별점

  • Higher clock speed than 10 MHz ATtiny45 alternatives (vs ATTINY45-10PU)
  • More Flash and SRAM than ATtiny25 (vs ATTINY25-20PU)
  • Lower memory demand than ATtiny85 for compact firmware (vs ATTINY85-20PU)
  • Standard-grade option with a direct industrial-grade counterpart (vs ATTINY45-20PI)

설계 노트

Place the supply bypass capacitor immediately between the VCC and GND pins, and keep the RESET return path short and away from switching nodes. The eight-pin DIP outline leaves ample board space, but the six I/O pins still constrain track escape routing on dense boards. Verify pin 1 orientation against the PCB silkscreen and package drawing rather than relying only on the socket marking.

Decouple the AVR supply locally and route transient current away from sensitive I/O returns. Because the target supports 4 KB of Flash, 256 bytes of EEPROM, and 256 bytes of SRAM, firmware should avoid dynamic allocation and keep stack usage bounded. Store wear-sensitive EEPROM updates only when required, and use the manufacturer’s write-cycle guidance for persistent parameters.

Do not treat a shared 8-pin footprint as proof of a functionally identical substitute. ATTINY85-20PU changes Flash capacity, while 10 MHz ATtiny45 variants reduce timing headroom, and the V suffix changes the voltage configuration. Before substitution, check clock-dependent delays, timer behavior, reset thresholds, operating temperature, supply range, and the code size reported by the compiler.

For ISP programming and prototypes, reserve accessible test points for VCC, GND, RESET, and the serial programming signal pins. Keep programming adapter cables away from clocks and high-current outputs to prevent unintended interference. In a production layout, use the manufacturer package drawing for drill and land-pattern dimensions rather than relying on a generic DIP drawing.

규정 준수 정보

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

The product is a general-purpose industrial and consumer microcontroller. No explicit RoHS, REACH, lead-free, halogen-free, conflict-minerals, or automotive qualification statement was identified in the product information used for this record.

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

관련 검색

attiny45 20pu datasheet attiny45 20pu pinout attiny45 pinout attiny45 datasheet attiny45 vs attiny85 attiny45 arduino attiny45 price attiny45 programming attiny45 usb ATTINY45-20PU replacement ATTINY45-20PU equivalent ATTINY45-20PU datasheet pdf ATTINY45-20PU footprint Microchip ATTINY45-20PU

관련 부품 & 용어

Microchip Technology ATTINY45-20PU ATTINY45-20PI ATTINY45-10PU ATTINY45V-10PU ATTINY85-20PU ATTINY25-20PU ATtiny45 AVR enhanced RISC architecture 8-bit microcontroller TinyAVR In-System Serial Programming ICSP MPLAB Snap Arduino 8-PDIP DIP package through-hole package 4 KB Flash 256-byte EEPROM 256-byte SRAM 20 MHz industrial control sensor controller LED lighting control
빠른 견적 RFQ
상세 정보를 모두 입력하십시오 — 영업팀이 24시간 이내에 답변드립니다
부품 번호 제조사 패키지 QTY 목표 가격 합계
✓
견적이 제출되었습니다!

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

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