ATTINY25-20PU - 8-Bit 20MHz AVR Microcontroller | Microchip
料号: ATTINY25-20PU ✓ 量产中ATTINY25-20PU 概述
An 8-bit microcontroller is a programmable semiconductor that integrates a CPU core, memory, and peripherals into one device. The ATtiny25 belongs to the hierarchy of 8-bit AVR microcontrollers, embedded microcontrollers, and general-purpose semiconductor control devices. Its small memory capacity and limited I/O make it appropriate for compact control tasks rather than high-bandwidth processing or large application firmware.
Key features include 2 KB of ISP Flash, 128 bytes of EEPROM, 128 bytes of SRAM, 32 general-purpose working registers, six general-purpose I/O lines, and a 20 MHz operating speed. The in-system programming interface supports programming and configuration without removing the device from its circuit, while EEPROM provides nonvolatile storage for settings and calibration information.
The device uses Microchip's picoPower AVR architecture and combines a reduced instruction set with dedicated timer and counter functions. According to the manufacturer product page, it includes one 8-bit timer/counter with compare modes and a two-wire serial interface. These resources allow the ATTINY25-20PU to handle compact embedded-control functions such as timing, state sequencing, actuator control, and low-volume data acquisition.
Typical applications include small sensor nodes, simple motor or actuator controllers, LED lighting modules, household appliance controls, and compact industrial interface boards. Its six I/O lines are useful when the design requires a modest number of digital signals and the firmware does not require substantial storage. The DIP package also facilitates prototyping, educational work, and through-hole assembly.
When designing around the ATTINY25-20PU, reserve every I/O pin for its assigned function and check the required peripheral multiplexing carefully. Provide a stable supply and suitable decoupling close to the device, and use ISP programming access that remains electrically safe in both development and production hardware.
This page combines manufacturer specifications, package and programming guidance, application fit, and drop-in replacement assessment. It is designed to help engineers compare memory capacity, clock speed, pin compatibility, and implementation trade-offs before committing the ATtiny25 footprint to a PCB.
直接替换替代料: ATTINY25-20PU ——相同封装,引脚兼容。需要 PCB 改动的不同封装料号已排除。
本系列中的变体
可与以下型号直接替换的同系列型号: ATTINY25-20PU (相同外形与封装尺寸) ——差异在于 Maximum Clock Frequency, Mounting Type, Package.
ATTINY25-20P
✅ 直接替换 ⚠️ 规格未核验📋 参考替代料(不在目录中)
ATTINY25-20PU 最大额定值与电气特性
| Architecture | 8-bit AVR RISC |
| Processor Technology | picoPower AVR CMOS |
| 最大时钟频率 | 20 MHz |
| Flash Memory | 2 KB |
| Flash Organization | 1K x 16 bits |
| EEPROM Memory | 128 bytes |
| SRAM | 128 bytes |
| General-Purpose I/O Lines | 6 |
| General-Purpose Working Registers | 32 |
| Timer/Counter | 1 x 8-bit timer/counter with compare modes |
| Programming Interface | In-system programming (ISP) |
| 封装 | 8-pin PDIP |
| 安装类型 | Through-hole |
ATTINY25-20PU 引脚配置
| 引脚 1 | PC5/RESET — General-purpose I/O line and reset input |
| 引脚 2 | PC4 — General-purpose I/O line |
| 引脚 3 | GND — Ground |
| 引脚 4 | PB3 — General-purpose I/O line with ISP programming function |
| 引脚 5 | PB2 — General-purpose I/O line with ISP programming function |
| 引脚 6 | PB1 — General-purpose I/O line with ISP programming function |
| 引脚 7 | PB0 — General-purpose I/O line with ISP programming function |
| 引脚 8 | VCC — Power supply |
典型应用
ATTINY25-20PU 适用于 6 应用s: Compact Sensor Node, LED Lighting Controller, Simple Motor and Actuator Control, Household Appliance Control, Industrial Interface Module, Educational and Rapid Prototyping Controller.
Compact Sensor Node
The ATTINY25-20PU fits compact sensor nodes that require digital thresholding, periodic sampling, state updates, and limited nonvolatile configuration storage. Its 20 MHz AVR core handles small control routines, while 128 bytes of EEPROM can retain calibration or operating settings. With six general-purpose I/O lines, the device can interface a switch, discrete sensor output, status indicator, and actuator command without requiring a larger package. Design the firmware around the limited 2 KB Flash and 128-byte SRAM budgets, and use the in-system programming interface for field updates.
推荐
LED Lighting Controller
The ATTINY25-20PU is appropriate for compact LED lighting modules that use timed sequences, button input, status feedback, and one or more low-frequency output controls. Its timer/counter resources support periodic timing, while the AVR instruction set is sufficient for small state machines and dimming patterns. The six I/O lines leave room for control inputs and indicator outputs without requiring a larger microcontroller. Account for the 2 KB Flash limit when adding extensive effects tables, and ensure each driven LED path includes the required current handling and protection.
推荐
Simple Motor and Actuator Control
The ATTINY25-20PU can control small relays, solenoids, or low-complexity actuator mechanisms where deterministic timing and straightforward state sequencing are the main requirements. Its 20 MHz clock provides ample execution margin for basic motion or timing logic, and the 8-bit timer/counter can organize periodic tasks. A transistor or driver stage should provide the required current and voltage rather than loading an I/O pin directly. Firmware must also include appropriate startup, disable, and fault-handling behavior for the connected actuator.
推荐
Household Appliance Control
The ATTINY25-20PU suits compact household or appliance-control modules that implement button logic, timers, mode selection, and simple output interlocks. Six I/O lines support several user inputs and control outputs, while the 20 MHz AVR core can execute the real-time state machine efficiently. The device's small 8-pin PDIP package is useful for through-hole modules and manually assembled prototypes. Before committing to it, calculate code and SRAM usage for the complete control sequence and reserve the ISP interface for firmware revision and manufacturing test.
推荐
Industrial Interface Module
The ATTINY25-20PU can serve as the local controller in a small industrial interface module that converts simple digital commands into timing, status, or actuator signals. Its 20 MHz processing rate supports responsive protocol handling at modest data rates, and the EEPROM can retain configuration values. Use robust external circuitry for isolation, surge protection, and level translation where the module connects to industrial wiring. The internal controller should not be treated as a substitute for dedicated protection, isolation, or high-current drive components.
推荐
Educational and Rapid Prototyping Controller
The ATTINY25-20PU is well suited to breadboard, through-hole, and educational prototyping because it combines a 20 MHz AVR processor with an accessible 8-pin PDIP package. Students can demonstrate GPIO control, timers, interrupts, EEPROM storage, and ISP programming without routing a dense surface-mount footprint. Its 2 KB Flash capacity encourages concise firmware while remaining adequate for introductory embedded systems. Before connecting external modules, verify their supply voltage and signal levels, and configure unused pins safely rather than allowing floating inputs.
推荐
推荐产品汇总
工程参考数据: ATTINY25-20PU ——对比、设计指导和合规信息。
选型指南
与替代料对比
| 参数 | 本产品 | ATTINY25-20P |
|---|---|---|
| Brand | Microchip Technology | Microchip Technology |
| Package | 8-pin PDIP | 8-pin PDIP |
| CPU Architecture | 8-bit AVR RISC | 8-bit AVR RISC |
| Maximum Clock Frequency | 20 MHz | 20 MHz |
| Flash Memory | 2 KB | 2 KB |
| SRAM | 128 bytes | 128 bytes |
| EEPROM | 128 bytes | 128 bytes |
| General-Purpose I/O Lines | 6 | 6 |
| Working Registers | 32 | 32 |
| Timer/Counter | 1 x 8-bit timer/counter with compare modes | 1 x 8-bit timer/counter with compare modes |
关键差异点
- Exact core-resource match in an 8-pin DIP footprint (对比 ATTINY25-20P)
- Compact through-hole package for straightforward PCB assembly (对比 ATTINY25-20SSU)
- ISP programmability supports repeat firmware updates (对比 ATTINY25-20P)
设计说明
Place the ATtiny25 power and ground connections directly into the board's main power distribution path, and place the required decoupling capacitor close to pin 8 and pin 3. Keep the ISP signal routes accessible through test pads or a programming header. A resistor or equivalent current-limiting arrangement on the reset path is recommended to prevent unwanted reset input states during power transitions.
Calculate the maximum supply condition for every external load before finalizing the power source. The ATTINY25 operates from a low-voltage CMOS supply, but motor, relay, and LED drivers can create transients that should be absorbed outside the microcontroller supply pins. Use local bulk capacitance near higher-current loads and separate routing for switching currents to prevent controller supply disturbance.
Do not assign functions to pins without checking the ATtiny25 pin-description table, because the six I/O lines share peripheral functions and the reset function affects PB3. Avoid assuming that unused pins may remain floating, and do not rely on the 2 KB Flash limit as a target; compile with enough margin for bootloader, interrupt-vector, and library overhead. Confirm the final memory report for every firmware build.
For designs using ISP, provide connector or test-point access to the programming signals and maintain signal continuity through the production layout. Route clock-dependent or communication-sensitive lines away from switching nodes and relay or motor drive paths. Although the ATTINY25 is a small microcontroller, separating noisy actuator current from logic traces reduces the chance of false interrupts, reset events, or corrupted EEPROM writes.
合规信息
The ATTINY25-20PU is not an automotive-qualified variant. RoHS, REACH, lead-free, halogen-free, and conflict-minerals status were not established from the cited product information.