Microchip Technology

ATTINY4-MAHR - 8-Bit 12MHz AVR MCU | Microchip Technology

MPN: ATTINY4-MAHR ✓ 啟用中
8-pin UDFN/USON with exposed pad Package 12 MHz Speed 512 bytes (256 x 16 bits) Memory
MOQ: 1 |

ATTINY4-MAHR 概覽

The Microchip Technology ATTINY4-MAHR is an 8-bit AVR RISC microcontroller with a 12 MHz maximum clock frequency, 512 bytes of program Flash memory, and 32 bytes of SRAM, housed in an 8-pin UDFN/USON package with an exposed pad. The device combines four general-purpose I/O lines with an internal oscillator, a 4-channel 8-bit ADC, SPI and USI connectivity, and dedicated timer resources for compact control applications.

A microcontroller is a programmable semiconductor that integrates a CPU core, memory, and peripherals into one package. The ATTINY4 belongs to the TinyAVR family within Microchip's 8-bit AVR portfolio. Its enhanced RISC architecture executes many instructions in a single clock cycle, supporting throughput close to 1 MIPS per MHz while keeping power consumption low enough for compact embedded control, sensing, and actuator-control systems.

The principal device characteristics include 512 bytes of Flash organized as 256 words by 16 bits, 32 bytes of SRAM, 12 general-purpose working registers, and an internal oscillator. The 4-channel, 8-bit ADC supports basic analog measurement, while SPI and USI provide serial communication options. An 8-bit timer/counter with two PWM channels and a 16-bit timer/counter support timing, waveform generation, and periodic control tasks.

The ATTINY4-MAHR uses the AVR enhanced RISC architecture and a low-power CMOS implementation. Its limited memory footprint makes code size and stack planning important, especially when applications combine ADC readings, serial communications, and PWM outputs. The nickel-palladium-gold termination and green package designation identify the physical construction used for this ordering variant.

Typical uses include low-cost sensor nodes, compact LED or fan controllers, simple keypad interfaces, battery-powered instruments, and small industrial control modules. The four available I/O lines favor designs where the MCU performs sequencing or supervisory control rather than high-pin-count connectivity. The 12 MHz operating limit provides more timing headroom than many simple low-power state machines while retaining a compact footprint.

Design the exposed-pad connection, decoupling, programming interface, and power entry carefully. Confirm the package drawing, recommended land pattern, voltage limits, and pin multiplexing in the manufacturer datasheet before layout release. The MAHR package suffix should be matched exactly when replacing the device because package and termination variants can have different ordering details.

This page organizes the ATtiny4 technical characteristics, sourcing information, and replacement guidance into a compact engineering reference. It also distinguishes verified device functions from parameters that require the exact package drawing, helping designers evaluate the ATTINY4-MAHR before schematic capture, PCB layout, firmware development, and sourcing approval.

直接替換替代品,適用於 ATTINY4-MAHR — 相同封裝,腳位對腳位相容。需重新設計 PCB 的不同封裝零件不列入。

此系列的變體

與下列產品可直接替換的同系列型號: ATTINY4-MAHR (相同外形與佔位) — 差異在於 Package, Timer/Counter.

Microchip Technology
Package: 6-pin SOT-23-6
Timer/Counter: 8-bit timer/counter with two PWM channels on the ATtiny4 family device
比較對象 ATTINY4-MAHR →

ATTINY4-TSHR

✅ 直接替換
Microchip Technology
📦 8-pin UDFN/USON with exposed pad
8-bit AVR RISC microcontroller · 12 MHz · 512 bytes Flash · 256 x 16 words · 32 bytes · 2.5 V, 3.3 V, and 5 V · 6-pin SOT-23-6 · AVR enhanced RISC

聯絡詢價

查看資料表 →

ATTINY5-MAHR

✅ 直接替換
Microchip Technology
📦 8-pin UDFN/USON with exposed pad
AVR 8-bit RISC-based CMOS · 12 MHz · 512 bytes Flash (256 x 16 bits) · 32 bytes · 1.8 V to 5.5 V · 4 lines · 16

聯絡詢價

查看資料表 →

ATTINY9-MAHR

✅ 直接替換
Microchip Technology
📦 8-pin UDFN/USON with exposed pad
8-bit AVR RISC-based microcontroller · AVR · 12 MHz · 1 KB (512 x 16) · 32 B · 4 · 16 · 16-bit timer/counter

聯絡詢價

查看資料表 →

ATTINY10-MAHR

✅ 直接替換
📦 8-pin UDFN/USON with exposed pad
Same MAHR package family and 12 MHz AVR platform, but the ATTINY10 has greater memory and I/O capability and requires pin-function and firmware verification.

📋 參考替代品(不在目錄中)

ATTINY4-MAHR 最大額定值與電氣特性

Product Type 8-bit AVR RISC microcontroller
最大時脈頻率 12 MHz
Program Flash Memory 512 bytes (256 x 16 bits)
SRAM 32 bytes
General-Purpose I/O Lines 4 lines
General-Purpose Working Registers 32
ADC Resolution 8 bits
ADC Channels 4 channels
Timer/Counter 8-bit timer/counter with 2 PWM channels
Additional Timer 16-bit timer/counter
Instruction Set 54 instructions
Architecture AVR enhanced RISC
Execution Rate Close to 1 MIPS per MHz
Oscillator Internal
Serial Interfaces SPI and USI
封裝 8-pin UDFN/USON with exposed pad
Package Finish NiPdAu
Packaging Tape and reel
Green Designation Green

ATTINY4-MAHR nipdau 腳位配置指南

ATTINY4-MAHR(nipdau 封裝)的腳位配置。 此數位 IC 包含 GPIO、通訊介面(UART、SPI、I2C)與電源腳位。替代腳位功能與配置選項請參閱製造商資料表。對嵌入式系統設計與 PCB 佈局至關重要。

ATTINY4-MAHR 的 nipdau 封裝腳位圖

無詳細腳位定義資料: ATTINY4-MAHR.

請參閱 資料表 以查看完整腳位配置。

典型應用

ATTINY4-MAHR 適用於 6 應用s: Compact Sensor Node, PWM Lighting Controller, Battery-Powered Instrument, Simple Keypad Interface, Small Motor Fan Controller, Industrial Control Module.

🧩

Compact Sensor Node

The ATTINY4-MAHR fits a compact sensor node that performs periodic analog measurements and forwards limited status data through a serial link. Its 4-channel, 8-bit ADC can read basic sensor outputs, while 512 bytes of Flash and 32 bytes of SRAM keep the control program small. Place the MCU beside the sensor interface and use its internal oscillator for a compact layout. The principal trade-off is memory headroom: schedule sampling and communications carefully so routines and buffers fit within the available SRAM and program space.

💡

PWM Lighting Controller

The ATTINY4-MAHR can control a small LED board using its 8-bit timer/counter with two PWM channels and four I/O lines. This arrangement is suitable for dimming, status effects, or simple duty-cycle control without a separate PWM IC. Place the output drivers so MCU pins do not directly exceed their specified current limits, and use transistor stages when the lamp current is higher. With only 512 bytes of Flash, the firmware should use compact timing tables and state logic while preserving space for fault handling.

🔋

Battery-Powered Instrument

The ATTINY4-MAHR is appropriate for a small battery-powered instrument that wakes periodically, samples an analog input, updates an indicator, and returns to a low-power state. Its low-power CMOS AVR architecture, internal oscillator, and 12 MHz performance ceiling support efficient event-driven control without an external crystal. The 4-channel ADC simplifies front-end selection, although battery life depends on the active duration, idle mode, and sensor current. Validate the sleep-mode peripherals and wake conditions in firmware before production testing.

🔧

Simple Keypad Interface

The ATTINY4-MAHR can manage a small matrix or sampled keypad, interpret button events, and drive a compact display or status indicator. Four I/O lines are sufficient for modest controls when the design uses resistor scanning, external expansion, or a limited button count. The 12 MHz clock provides useful response margin for debouncing and event processing, while 512 bytes of Flash constrains the user interface code. Choose pin multiplexing and wake behavior deliberately because several I/O functions may not be simultaneously available.

🏭

Small Motor Fan Controller

The ATTINY4-MAHR can supervise a low-power fan, pump, or motor system when the required control is limited to on/off, speed state, or basic PWM. The two PWM outputs can support actuator modulation, while the timer resources provide periodic control timing. Use suitable transistor and protection stages instead of driving inductive loads directly from the MCU. Because the device has only four I/O lines, confirm whether motor-control functions conflict with ADC inputs or serial interfaces before assigning the pins.

🏭

Industrial Control Module

The ATTINY4-MAHR can serve as a local supervisory controller in a compact industrial module, coordinating an ADC-based measurement, a serial link, and one or two controlled outputs. The AVR RISC core and timer resources support deterministic low-complexity sequencing without a larger processor. Keep communications frames short because only 512 bytes of Flash and 32 bytes of SRAM are available. For production equipment, validate reset behavior, brownout handling, watchdog strategy, and exposed-pad grounding against the environmental requirements of the installation.

What are the key specifications of ATTINY4-MAHR that engineers should know?
The ATTINY4-MAHR is an 8-bit AVR RISC microcontroller rated for up to 12 MHz, with 512 bytes of program Flash, 32 bytes of SRAM, and four general-purpose I/O lines. According to Microchip Technology's ATtiny4 product page and the manufacturer datasheet, the device also includes a 4-channel, 8-bit ADC, SPI, USI, an 8-bit timer/counter with two PWM channels, and a 16-bit timer/counter. It is packaged as an 8-pin UDFN/USON device with an exposed pad.
What is the ATTINY4-MAHR and what can it do?
The ATTINY4-MAHR is a compact, low-power 8-bit microcontroller based on the AVR enhanced RISC architecture. It provides 512 bytes of Flash, 32 bytes of SRAM, four I/O lines, an internal oscillator, and peripherals including a 4-channel 8-bit ADC, SPI, USI, and timer/PWM resources. According to Microchip Technology's ATtiny4 documentation, its single-cycle execution capability supports throughput close to 1 MIPS per MHz.
Where can I download the ATTINY4-MAHR datasheet PDF?
The ATTINY4-MAHR datasheet documentation can be reached from Microchip Technology's official ATtiny4 product page at https://www.microchip.com/en-us/product/ATtiny4. The manufacturer product page provides the ATtiny4 family documentation and supporting resources. For the exact MAHR ordering variant, use the package drawing, pin description, recommended land pattern, and electrical limits within the ATtiny4/5/9/10 family datasheet.
Where can I find the ATTINY4-MAHR pinout?
The ATTINY4-MAHR pinout is defined in the pin-description table of the Microchip Technology ATtiny4/5/9/10 family datasheet. The device uses an 8-pin UDFN/USON package with an exposed pad, so the physical pad is part of the land pattern and thermal design. Use the manufacturer pin-description table when assigning power, ground, programming, reset, and I/O functions; do not infer exposed-pad connectivity from package appearance.
How do I program an ATTINY4-MAHR?
The ATTINY4-MAHR is programmed through the Microchip AVR programming interface using the dedicated ISP programming and debug pins. According to the manufacturer ATtiny4 documentation, the device supports in-system programming and is based on the AVR architecture. Keep the ISP signals accessible during development, observe the specified programming voltage and signal timing, and confirm the fuse, clock, and boot-related settings before allowing production programming.
What are the ATTINY4-MAHR specifications?
The ATTINY4-MAHR operates as an 8-bit AVR microcontroller at up to 12 MHz and includes 512 bytes of Flash, 32 bytes of SRAM, and four I/O lines. According to the Microchip Technology ATtiny4 product page, the family includes a 4-channel 8-bit ADC, SPI, USI, 32 working registers, an 8-bit timer/counter with two PWM channels, and a 16-bit timer/counter. The exact device is offered in an 8-pin UDFN/USON package with an exposed pad.
ATTINY4-MAHR vs ATTINY10-MAHR: which one should I choose?
Choose the ATTINY4-MAHR when the design fits its 512-byte Flash and 32-byte SRAM budget and only four general-purpose I/O lines are required. The ATTINY10 family offers more memory and I/O resources, making it appropriate for more demanding control tasks. According to Microchip Technology's family documentation, both devices belong to the low-power TinyAVR range, but firmware size, I/O count, peripheral requirements, and board area should drive the final choice.
What is the best drop-in replacement for ATTINY4-MAHR?
The safest replacement is another manufacturer-confirmed ATTINY4 variant with the same 8-pin UDFN/USON footprint, exposed-pad arrangement, electrical ratings, and pin functions. The ATTINY4-TSHR and ATTINY5-MAHR appear in comparison listings, but their ordering suffixes or resource sets must be checked against the original land pattern before substitution. For production continuity, request a written compatibility confirmation from Microchip Technology.
Can ATTINY4-MAHR replace ATTINY4-TSHR in an existing PCB?
Do not assume that ATTINY4-MAHR can replace ATTINY4-TSHR solely because both are ATtiny4 variants. The MAHR ordering code denotes the 8-pin UDFN/USON package with exposed pad, while the TSHR suffix represents a different package option. A true drop-in replacement requires the same lead geometry, pin numbering, pad dimensions, exposed-pad connection, pin multiplexing, and electrical limits. Review both package drawings before changing the BOM.
What is the best Microchip Technology equivalent for ATTINY4-MAHR?
The closest same-family device is an ATTINY4 ordered in the same package and termination configuration, because the base ATtiny4 silicon then retains the specified memory, I/O, ADC, and timer resources. For a larger Microchip Technology controller, compare the ATtiny10 or another qualified member, but a different package or greater resource set is not a pin-for-pin drop-in replacement. Confirm ordering-code, package, and pin compatibility before substitution.
When should I choose ATTINY4-MAHR over ATTINY5-MAHR?
Choose ATTINY4-MAHR when its 512-byte Flash, 32-byte SRAM, four I/O lines, and integrated ADC and serial interfaces satisfy the firmware and sensing requirements. Consider ATTINY5-MAHR when the application needs additional Flash, SRAM, I/O, or peripheral capacity within the same ATtiny4/5/9/10 family. According to Microchip Technology's family documentation, choosing between them should be based on measurable memory use, pin requirements, and code size.
Is ATTINY4-MAHR suitable for battery-powered sensor applications?
The ATTINY4-MAHR can suit battery-powered sensor applications when the firmware is small and the duty cycle is controlled. Its 8-bit AVR core, internal oscillator, 512-byte Flash, and 32-byte SRAM minimize system complexity, while the 4-channel 8-bit ADC can sample basic analog sensors. According to Microchip Technology's ATtiny4 documentation, low-power operation is part of the family design, although actual battery life depends on the selected mode, sleep strategy, and external sensor load.
Where can I buy ATTINY4-MAHR online and what is the price?
Use the Request a Quote form on this page to ask about ATTINY4-MAHR availability, price, and order quantity. The manufacturer identifies ATTINY4-MAHR as an 8-bit, 12 MHz AVR microcontroller in an 8-UDFN/USON package with tape-and-reel packaging. Quote requests are the appropriate route for current commercial terms because market pricing and inventory can change without notice.
What is the lead time for ATTINY4-MAHR?
The current ATTINY4-MAHR lead time and minimum order quantity should be requested through the Request a Quote form on this page. The manufacturer listing identifies tape-and-reel packaging for this ordering variant, but manufacturing schedule and commercial allocation can change by date and order volume. Providing the required quantity, target date, and shipment destination in the request enables a more useful supply commitment.
Is ATTINY4-MAHR in stock?
Use the Request a Quote form on this page to check the current ATTINY4-MAHR inventory and allocation status. The ATTINY4-MAHR is identified by Microchip Technology as an 8-bit, 12 MHz AVR microcontroller in an 8-UDFN/USON package with exposed pad, and it is offered in tape-and-reel packaging. Treat stock confirmation and the requested delivery date as part of the quotation rather than as a fixed online inventory claim.

工程參考資料,適用於 ATTINY4-MAHR — 比較、設計指引及合規資訊。

選型指南

Choose the ATTINY4-MAHR when a compact design needs an AVR controller with 512 bytes of Flash, 32 bytes of SRAM, four I/O lines, a 4-channel 8-bit ADC, and two PWM channels. Its 12 MHz clock and internal oscillator simplify small standalone control products. Select ATTINY4-TSHR only after confirming that its package drawing and exposed-pad land pattern match the installed PCB. Consider ATTINY5-MAHR, ATTINY9-MAHR, or ATTINY10-MAHR when the application needs more Flash, SRAM, I/O, or peripheral resources while retaining the MAHR package and AVR toolchain. These family members are not automatic firmware-compatible replacements: verify pin multiplexing, interrupt vectors, timer channels, ADC behavior, boot configuration, fuse settings, and memory map. For designs that exceed four I/O lines, require more SRAM, or need a larger application, choose a higher-capacity controller and plan the PCB footprint accordingly.

與替代品比較

參數 本產品 ATTINY4-TSHR ATTINY5-MAHR ATTINY9-MAHR ATTINY10-MAHR
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 8-pin UDFN/USON with exposed pad 8-pin UDFN/USON with exposed pad 8-pin UDFN/USON with exposed pad 8-pin UDFN/USON with exposed pad 8-pin UDFN/USON with exposed pad
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
Maximum Clock Frequency 12 MHz 12 MHz 12 MHz 12 MHz 12 MHz

主要差異化特點

  • Minimal program-memory footprint (對比ATTINY5-MAHR)
  • Dedicated 4-channel 8-bit ADC (對比ATTINY10-MAHR)
  • Dual PWM capability in a compact package (對比ATTINY4-TSHR)

設計說明

Use the manufacturer package drawing and recommended land pattern for the 8-pin UDFN/USON body. Place input and decoupling capacitors next to their assigned supply pins, route the exposed pad on the ground plane unless the datasheet specifies otherwise, and avoid placing high-current switching paths beneath the pad. The compact pitch makes assembly and soldering sensitive to pad alignment and solder volume, so inspect the first articles under magnification.

Calculate the local regulator from the maximum MCU supply current plus every load connected to the same rail. Add margin for startup, temperature, and adjacent-circuit variation. Because the ATTINY4-MAHR contains only 512 bytes of Flash and 32 bytes of SRAM, power-conscious firmware often uses a sleep-and-wake architecture; preserve stable supply rails during wake transitions so ADC readings and communication timing are not corrupted.

Do not infer pin compatibility from the eight-pin package alone. Confirm pin numbers, exposed-pad use, reset behavior, programming pins, ADC channels, timer functions, and alternate pin multiplexing in the manufacturer pin-description table. A firmware image built for one ATtiny4 family member may also depend on its flash size, fuse settings, and boot behavior, so rebuild and validate any substitute before production release.

Keep SPI and USI traces short, route them away from switching nodes, and provide a ground return path beneath the signal route when practical. If the internal ADC measures a sensitive analog input, use a quiet reference and separate analog routing from digital timing outputs. Sampling timing, input impedance, and ADC acquisition requirements should be evaluated together because the ATTINY4-MAHR combines a 12 MHz digital core with a 4-channel, 8-bit converter.

合規資訊

RoHS
Unknown
REACH
Unknown
AEC-Q100
Unknown
無鉛
Unknown
無鹵
Unknown
衝突礦產
Unknown

The ATTINY4-MAHR listing identifies a green package with NiPdAu termination. Specific RoHS, REACH, AEC-Q100, lead-free, halogen-free, and conflict-minerals declarations were not identified in the cited product listing and must be confirmed on the manufacturer product page or declaration.

資料驗證日期: 2026-11-03 — 資料由 XAIPART 元件工程團隊驗證及整理

相關搜尋

attiny4 mahr attiny4 datasheet attiny4 tshr attiny4 programming attiny4 specs attiny4 vs attiny10 attiny4 arduino attiny4 pdf ATTINY4-MAHR datasheet ATTINY4-MAHR pinout ATTINY4-MAHR equivalent ATTINY4-MAHR replacement ATTINY4-MAHR price ATTINY4-MAHR footprint

相關元件與詞彙

Microchip Technology ATTINY4-MAHR ATTINY4 ATTINY4-TSHR ATTINY5-MAHR ATTINY9-MAHR ATTINY10-MAHR 8-bit microcontroller AVR enhanced RISC architecture TinyAVR microcontroller embedded controller semiconductor UDFN USON surface-mount package exposed pad program Flash memory SRAM ADC SPI USI PWM timer/counter internal oscillator ISP programming
快速報價 RFQ
請填寫完整詳細資料 — 我們的業務團隊將於 24 小時內回覆
料號 製造商 封裝 QTY 目標價格 小計
✓
報價已提交!

我們將於 24 小時內回覆您的電子郵件

1
詢價已提交
2
已收到報價
3
已下單
4
付款
5
已出貨
6
已送達
檢視詢價單詳情