ATTINY45-20SU - 20MHz 8-Bit AVR MCU | Microchip Technology
部品番号: ATTINY45-20SU ✓ 生産中ATTINY45-20SU 概要
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.
ドロップイン代替品: ATTINY45-20SU — 同一パッケージでピン互換。PCBの作り直しが必要な異なるパッケージの部品は除外されています。
このシリーズのバリエーション
同一シリーズでドロップイン互換のモデル: ATTINY45-20SU (同一形状・フットプリント) — 相違点: EEPROM, Package, SRAM, ADC, Flash Memory.
ATTINY85-20SU
✅ ドロップイン ⚠️ 仕様未検証価格はお問い合わせください
データシートを見る →ATTINY85-20SH
✅ ドロップイン ⚠️ 仕様未検証価格はお問い合わせください
データシートを見る →ATTINY25-20SU
✅ ドロップイン ⚠️ 仕様未検証価格はお問い合わせください
データシートを見る →ATTINY25-20SSHR
✅ ドロップイン📋 参考代替品(カタログ未掲載)
ATTINY45V-10SUR
✅ ドロップイン📋 参考代替品(カタログ未掲載)
ATTINY45-20SU 最大定格&電気的特性
| 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 |
| パッケージ | 8-pin SOIC |
| 実装タイプ | Surface mount |
| Programming Interface | In-Circuit Serial Programming (ICSP) |
| Programming Memory Type | In-System Programmable flash |
ATTINY45-20SU 8-pin soic ピン配置ガイド
ATTINY45-20SU (8-pin soic パッケージ) のピン配置。 このデジタルICには、GPIO、通信インターフェース (UART、SPI、I2C)、および電源ピンが含まれています。代替ピン機能と設定オプションについては、メーカーのデータシートを参照してください。組み込みシステム設計とPCBレイアウトに不可欠です。
詳細なピン配置データはありません: ATTINY45-20SU.
詳細は データシート をご参照ください。
主な用途
ATTINY45-20SU の用途: 6 件s: 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.
おすすめ
おすすめ製品の概要
エンジニアリング参考データ: ATTINY45-20SU — 比較、設計ガイダンス、コンプライアンス情報。
選定ガイド
代替品との比較
| パラメータ | この製品 | 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 |
主な差別化要因
- 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)
設計ノート
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.
コンプライアンス情報
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.