Microchip Technology

ATTINY40-SU - 12MHz 8-Bit AVR MCU, 4KB Flash | Microchip

N.º da peça: ATTINY40-SU ✓ Ativo
Em estoque Enviado em 1 a 3 dias úteis
20-pin SOIC Package 12 MHz Speed 4 KB flash (2K x 16) Memory
Contato para preços
MOQ: 1 |
Preço atualizado: 2026-10-22
Preços por volume
Qtd. Preço unitário Total
1 $0 $0,00
10 $0 $0,00
100 $0 $0,00
500 $0 $0,00
1.000 $0 $0,00
ℹ️ Todos os preços estão em USD

ATTINY40-SU Visão geral

The Microchip Technology ATTINY40-SU is a low-power CMOS 8-bit AVR microcontroller with 4 KB In-System Programming Flash memory, 256 B SRAM, 12 general-purpose I/O lines, and a maximum clock frequency of 12 MHz, all housed in a 20-pin SOIC package. It executes the compact AVR enhanced RISC architecture and combines 16 general-purpose working registers with an 8-bit timer/counter featuring two PWM channels.

An 8-bit AVR microcontroller is a compact embedded controller that executes firmware instructions on a Harvard-style architecture, balancing processing capability, memory efficiency, and low power consumption. The AVR family belongs to the broader hierarchy of microcontrollers, embedded processors, and semiconductors. TinyAVR devices are particularly useful for cost-sensitive control, monitoring, signal-generation, and communication tasks where a larger MCU would add unnecessary cost or board area.

Key verified features include 4 KB flash organized as 2K by 16 words, 256 B SRAM, 12 I/O lines, 16 working registers, and an 8-bit timer/counter with two PWM channels. Its 12 MHz maximum frequency provides substantially more instruction throughput than lower-clock ATtiny devices. The 20-pin SOIC package also supports conventional surface-mount assembly while exposing enough pins for power, clock, programming, reset, I/O, and timer functions.

The AVR enhanced RISC architecture supports efficient execution of firmware commonly written for AVR-compatible toolchains. The processor architecture and instruction set should be reviewed against the manufacturer datasheet before porting code, especially when the replacement MCU has a different instruction set, peripheral arrangement, interrupt vector table, or programming interface. The supplied sources do not expose detailed ADC, comparator, timer-resolution, or electrical operating-limit values.

Typical uses include compact industrial controls, LED and general-purpose dimming, simple sensor acquisition, small motor or actuator control, battery-powered monitoring, and embedded interface modules. Its two PWM channels can support timing, dimming, or basic proportional actuator functions, while the 12 I/O lines provide flexibility for switches, indicators, sensors, and external logic.

When designing a PCB, reserve the programming and reset connections, route clock and decoupling pins according to the manufacturer reference layout, and confirm that every external signal remains within the device’s verified voltage limits. Because the verified snippets do not supply a numerical operating-voltage range, ADC resolution, pin electrical limits, or package dimensions, those values must be checked in the official ATtiny40 documentation before release to manufacturing.

This product page combines verified Microchip and distributor data, source-backed availability links, practical application guidance, and explicit data-gap markers. It does not infer unverified electrical specifications or present functional comparators as drop-in replacements when pin or peripheral compatibility has not been demonstrated.

Alternativas drop-in para ATTINY40-SU — mesmo encapsulamento, compatível pino a pino. Peças de encapsulamento diferente que exigem retrabalho na PCB são excluídas.

Ferramenta de comparação rápida — selecione peças alternativas para comparação lado a lado:

ATTINY40-SU

✅ Drop-In
Microchip Technology
📦 20-pin SOIC
8-bit AVR RISC-based microcontroller · 12 MHz · 4 KB flash (2K x 16) · ISP flash · 256 B SRAM · 12 · 16 · 8-bit timer/counter

✓ Em estoque

Consulte o preço

Ver ficha técnica →

ATTINY40-SUR

✅ Drop-In
📦 20-pin SOIC
Same ATtiny40 device and electrical basis; ordering suffix differs for reel orientation, with no verified change to the 8-bit, 12 MHz, 4 KB, and 20-SOIC attributes

📋 Alternativa de referência (fora do catálogo)

ATTINY40-SU Classificações máximas e características elétricas

Microcontroller Type 8-bit AVR RISC-based microcontroller
Frequência máxima de clock 12 MHz
Program Memory 4 KB flash (2K x 16)
Program Memory Type ISP flash
Data Memory 256 B SRAM
General-Purpose I/O Lines 12
General-Purpose Working Registers 16
Timer/Counter 8-bit timer/counter
PWM Channels 2
Processor Architecture AVR enhanced RISC architecture
Largura do barramento de dados 8 bit
Encapsulamento 20-pin SOIC
Tipo de montagem Surface mount

Guia de Configuração de Pinos do ATTINY40-SU 20-pin soic

Configuração de pinos para ATTINY40-SU (pacote 20-pin soic). Este CI digital inclui GPIO, interfaces de comunicação (UART, SPI, I2C) e pinos de alimentação. Consulte o datasheet do fabricante para funções alternativas dos pinos e opções de configuração. Essencial para projeto de sistemas embarcados e layout de PCB.

Diagrama de pinagem do pacote 20-pin soic para ATTINY40-SU

Nenhum dado detalhado de pinagem disponível para ATTINY40-SU.

Consulte a ficha técnica para a configuração completa dos pinos.

Aplicações típicas

ATTINY40-SU é adequado para 6 aplicaçãos: Compact industrial control module, LED dimming and PWM control, Battery-powered sensor monitor, Small motor and actuator controller, Embedded interface and protocol bridge, Automated test fixture controller.

🏭

Compact industrial control module

The ATTINY40-SU fits compact control modules that supervise switches, indicators, interlocks, or simple actuators. Its 8-bit AVR core operates up to 12 MHz, providing faster instruction throughput than lower-clock ATtiny options while retaining only 4 KB of flash and 256 B of SRAM for small embedded tasks. With 12 general-purpose I/O lines, the MCU can connect digital inputs and outputs without requiring a larger pin count. The two PWM channels may support status lighting, proportional output, or a basic actuator drive. Before release, verify the official voltage range, pin current limits, and industrial temperature requirements; those values are not available in the supplied snippets.

💡

LED dimming and PWM control

The ATTINY40-SU is suitable for small LED dimming, indicator, or sign-control boards because its verified timer/counter provides two PWM channels. The 12 MHz clock gives the firmware additional timing headroom for button handling, debouncing, status logic, and modulation updates, while 4 KB flash and 256 B SRAM remain sufficient for a compact control loop. The MCU can read a command over its 12 I/O lines and update PWM duty cycle without a larger processor. Verify output drive current, supply range, and PWM electrical limits from the official datasheet; the supplied search data does not quantify those constraints.

🔋

Battery-powered sensor monitor

The ATTINY40-SU can serve as the controller in a small, duty-cycled sensor monitor because it is identified as a low-power CMOS 8-bit AVR MCU with 4 KB ISP flash and 256 B SRAM. Its 12 general-purpose I/O lines accommodate threshold inputs, indicators, and control signals, while the 8-bit timer/counter supports periodic sampling or wake scheduling. The two PWM outputs can also drive a sensor enable or low-rate actuator. Actual battery suitability depends on active and sleep current, ADC characteristics, and voltage limits that are not specified in the supplied snippets; obtain those values before calculating average power.

⚡

Small motor and actuator controller

The ATTINY40-SU can control small actuators where two PWM outputs and modest real-time logic are sufficient. Its 12 MHz AVR core can execute motor-state logic faster than many low-clock 8-bit designs, while two verified PWM channels can generate command or modulation signals for LED indicators, fans, solenoids, or transistor-driven loads. The MCU itself is not a power driver, so the design must add suitable transistors, flyback protection, current sensing, and fault handling. Verify pin drive capability and absolute maximum ratings in the official datasheet because the retrieved snippets provide only core MCU specifications.

🌐

Embedded interface and protocol bridge

The ATTINY40-SU is appropriate for a small embedded interface node that converts digital commands into control outputs or monitors status inputs. Its 4 KB ISP flash supports firmware updates during production, while 12 I/O lines can carry serial signals, configuration inputs, and logic-level handshakes. The 12 MHz clock and compact AVR instruction set make it responsive for lightweight protocol handling without the cost of a 32-bit MCU. Before selecting it for a new protocol bridge, verify which serial peripherals are available and confirm their pin multiplexing; the supplied snippets list PWM and timers but do not provide a complete peripheral inventory.

🧪

Automated test fixture controller

The ATTINY40-SU can coordinate a small automated test fixture by sequencing digital stimulus, reading pass or fail inputs, and driving indicator or actuator outputs. Its 12 MHz maximum clock supports responsive state-machine firmware, and the 8-bit timer/counter with two PWM channels can provide timing or stimulus functions where required. The 20-pin SOIC package supports compact fixture-controller PCBs, while ISP programming simplifies production firmware loading. Designers must confirm test-point access, input thresholds, output drive limits, isolation, and supply tolerances from the official electrical documentation before using the MCU near external test equipment.

What are the key specifications of ATTINY40-SU that engineers should know?
The ATTINY40-SU is an 8-bit AVR RISC microcontroller rated at 12 MHz, with 4 KB ISP flash, 256 B SRAM, 12 general-purpose I/O lines, 16 working registers, and two PWM channels. Microchip’s ATtiny40 product page and the verified DigiKey listing identify the device as a 20-pin SOIC microcontroller. These core values establish its processing and memory class, but voltage limits and package dimensions must be confirmed in the official documentation before hardware release.
Where can I buy ATTINY40-SU online?
The verified ATTINY40-SU listings are available from DigiKey, Mouser, DigiKey Marketplace through Rochester Electronics, and Octopart’s distributor aggregation page. DigiKey describes the exact ATTINY40-SU as shippable today, while Mouser provides inventory and pricing links. Purchase conditions and exact stock should be confirmed on the distributor page on 2026-10-22 because availability and pricing can change without notice.
What is the price of ATTINY40-SU?
The verified web data does not expose a numerical ATTINY40-SU unit price, so this page does not invent one. DigiKey, Mouser, Rochester Electronics Marketplace, and Octopart provide commercial links where current pricing can be checked. The displayed zero price fields are unavailable-data placeholders rather than claims that the MCU is free as of 2026-10-22. Request a quotation for volume pricing and production availability.
What is the lead time for ATTINY40-SU?
The ATTINY40-SU lead time cannot be confirmed from the supplied search snippets. DigiKey states “ships today,” but that statement is not a contractual lead-time value and may refer only to the stock shown during retrieval. Mouser and Octopart offer live inventory links. For production planning, obtain a dated manufacturer or authorized-distributor quotation as of 2026-10-22 and account for scheduled-order and custom-packaging lead times.
Is ATTINY40-SU in stock?
ATTINY40-SU is shown by DigiKey with a “buy now, ships today” message in the verified data, indicating listed availability at retrieval. However, stock quantities and authorized-distributor status can change rapidly, and the retrieved timestamp does not establish future inventory. Check the DigiKey product page and Mouser listing before ordering. Schema.org availability is conservatively represented as BackOrder because a persistent, explicit in-stock quantity was not provided.
Where can I download the ATTINY40-SU datasheet PDF?
The authoritative product documentation is linked from Microchip Technology’s official ATtiny40 page at https://www.microchip.com/en-us/product/ATtiny40. A third-party ATTINY40-SU datasheet entry is also available at Datasheets.com. The supplied sources do not provide a verified manufacturer PDF filename, document number, revision, or page count, so engineers should use the Microchip product page and its Downloads or Documentation section as the primary source.
Where can I find the ATTINY40-SU pinout?
The verified package is a 20-pin SOIC, so the pin configuration must be checked against the official Microchip ATtiny40 datasheet rather than inferred from distributor descriptions. Use the manufacturer package drawing to identify power, ground, reset, programming, clock, I/O, and timer signals. A complete pin-by-pin map is intentionally not reproduced here because the supplied snippets do not expose exact pin numbers and names, preventing an inaccurate published pinout.
What can replace ATTINY40-SU as a drop-in replacement?
No verified drop-in replacement was established in the supplied cross-reference data. ATTINY40-SUR was found, but it is a packaging or ordering variant and was excluded rather than padded into the alternatives list. ATTINY461V-10SUR and ATTINY1634 variants appeared in comparison pages, but the snippets do not prove identical pin functions, interrupt behavior, peripherals, supply limits, or firmware compatibility. Verify manufacturer documentation before treating any candidate as a replacement.
Is ATTINY461V-10SUR the same as ATTINY40-SU?
No, ATTINY461V-10SUR is not verified as identical to ATTINY40-SU. Comparison snippets show that both are 20-pin SOIC AVR devices with 4 KB flash, which makes them superficially similar, but package count alone does not establish pin-to-pin compatibility. Peripheral sets, ADC implementation, clock details, interrupts, memory, and pin multiplexing can differ. Treat it as a redesign candidate until every pin and application requirement is checked.
ATTINY40-SU vs ATTINY461V-10SUR: which is better for a compact control design?
ATTINY40-SU is the safer baseline when existing firmware and PCB requirements were built specifically for ATtiny40 because the verified sources identify its 12 MHz clock, 256 B SRAM, 12 I/O lines, and two PWM channels. ATTINY461V-10SUR may suit a new design only after its complete data sheet, pin mapping, peripheral set, and tool compatibility are reviewed. The supplied evidence does not establish a drop-in relationship between them.
ATTINY40-SU vs ATTINY1634-SU: when should each MCU be selected?
Select ATTINY40-SU when the design specifically requires the verified ATtiny40 configuration of 12 MHz operation, 4 KB flash, 256 B SRAM, and two PWM channels. Comparison pages show ATTINY1634-SU as another 20-pin, 4 KB-flash option, but they do not prove identical peripheral mapping or pin compatibility. Choose the ATTINY1634 family only after confirming the application’s ADC, timing, interrupt, and pin requirements from official documentation.
When should I choose ATTINY40-SU instead of another 8-bit AVR?
Choose ATTINY40-SU when an existing design or validated firmware target specifically matches its 12 MHz AVR core, 4 KB ISP flash, 256 B SRAM, 12 I/O lines, and 20-pin SOIC footprint. It is also suitable for compact controls requiring two PWM channels and modest embedded logic. Do not select it solely because another MCU has the same package or flash size; verify pin functions, supply range, peripheral behavior, memory map, and toolchain compatibility.
Is ATTINY40-SU suitable for battery-powered sensor monitoring?
ATTINY40-SU may be suitable for low-duty-cycle battery-powered monitoring because it is a low-power CMOS 8-bit MCU with 256 B SRAM and an 8-bit timer/counter. Its suitability depends on the exact sleep currents, active current, ADC characteristics, and operating-voltage limits, which are not present in the supplied snippets. Confirm those values in the Microchip datasheet and calculate the duty-cycle average before committing the design.
What design constraints should be checked for ATTINY40-SU?
Confirm the official voltage range, absolute maximum ratings, pin drive capability, clock limits, reset behavior, programming pins, and decoupling requirements before layout. The verified sources establish a 12 MHz maximum clock and 20-pin SOIC package, but they do not provide complete electrical limits. Preserve ISP programming access, route sensitive inputs away from fast-switching nodes, and validate every external peripheral against the manufacturer package pinout.
Does ATTINY40-SU comply with RoHS, REACH, or automotive qualification?
The supplied verified snippets do not state the ATTINY40-SU RoHS, REACH, lead-free, halogen-free, conflict-minerals, or AEC-Q100 status, so all such fields remain unknown or data-needed. Do not infer compliance from the manufacturer name or general catalog availability. Request the current material declaration, environmental compliance statement, and quality qualification information from Microchip for the exact ordering code before procurement.

Dados de referência de engenharia para ATTINY40-SU — comparação, orientação de projeto e informações de conformidade.

Guia de seleção

Choose ATTINY40-SU when the design specifically targets the ATtiny40’s verified combination of a 12 MHz 8-bit AVR core, 4 KB ISP flash, 256 B SRAM, 12 I/O lines, two PWM channels, and 20-pin SOIC package. It is well suited to compact controls, PWM outputs, status logic, and modest embedded monitoring where a 32-bit MCU would be unnecessary. ATTINY40-SUR may be preferable when reel orientation or approved sourcing differs, but the supplied snippets do not fully describe its suffix details. ATTINY461V-10SUR and ATTINY1634 variants should not be treated as drop-in alternatives without a complete pin, peripheral, voltage, timing, and firmware review. For new designs, also compare the full official peripheral set and exact operating limits against the application’s requirements before freezing the MCU choice.

Comparação com alternativas

Parâmetro Este produto ATTINY40-SU ATTINY40-SUR
Brand Microchip Technology Microchip Technology Microchip Technology
Package 20-pin SOIC 20-pin SOIC 20-pin SOIC
Architecture 8-bit AVR RISC 8-bit AVR RISC 8-bit AVR RISC
Maximum Clock Frequency 12 MHz 12 MHz 12 MHz
Flash Memory 4 KB 4 KB 4 KB
SRAM 256 B 256 B 256 B
General-Purpose I/O 12 lines 12 lines 12 lines
PWM Channels 2 channels 2 channels 2 channels
Ordering Suffix -SU distributor sourcing entry -SU -UR reel-oriented ordering variant

Principais diferenciais

  • Exact ATtiny40 identity avoids uncertain cross-device migration (vs ATTINY461V-10SUR)
  • Two verified PWM channels support compact modulation functions (vs ATMEGA8A-AUR)
  • Higher verified clock than many compact low-power ATtiny designs (vs ATtiny40-SUR)

Notas de projeto

Place programming and reset access on test pads or a header even if the production PCB is primarily intended for autonomous operation. This preserves ISP programming during prototype bring-up and field refurbishment. Follow the official Microchip pinout and recommended decoupling arrangement; the verified snippets identify ISP flash and a 20-pin SOIC but do not provide exact package pin numbers, capacitor values, or layout dimensions.

Validate the power architecture against the official ATtiny40 electrical limits before connecting external loads. The verified snippets mention 3.3 V but do not establish the full operating-voltage range, so 3.3 V cannot be treated as a complete design specification. Check regulator tolerance, startup behavior, decoupling, I/O voltage domains, and load-switch transients. Do not use the MCU pins to drive motors, relays, or other high-current loads directly.

At the verified 12 MHz maximum clock, keep clock and high-speed control traces short, route them away from switching nodes, and provide a quiet return path. Use series damping or slower edge rates where ringing appears. Because exact clock-pin mapping, rise/fall limits, output-drive data, and recommended layouts are absent from the supplied snippets, validate them from the official datasheet and measure the assembled board rather than extrapolating.

Do not assume that another 20-pin 8-bit MCU with 4 KB flash is automatically interchangeable. ATTINY461V-10SUR and ATTINY1634 variants appeared in comparison results, but the provided evidence does not prove identical pin multiplexing, peripheral behavior, interrupt layout, or firmware compatibility. For a true drop-in decision, compare every pin, voltage domain, reset and programming interface, timer mapping, and application timing requirement against manufacturer documentation.

Informações de conformidade

RoHS
Unknown
REACH
Unknown
AEC-Q100
Not Applicable
Sem chumbo
Unknown
Sem halogênios
Unknown
Minerais de conflito
Unknown

The supplied search results do not provide exact compliance declarations for ATTINY40-SU. RoHS, REACH, lead-free, halogen-free, and conflict-minerals status must be confirmed from current Microchip documentation. AEC-Q100 is not applicable unless a specific automotive-qualified ordering code is identified and supported by a qualification statement.

Dados verificados em: 2026-10-22 — dados verificados e curados pela equipe de engenharia de componentes da XAIPART

Buscas relacionadas

ATTINY40-SU ATTINY40-SU datasheet PDF Microchip ATTINY40-SU ATTINY40-SU 12MHz 8-bit AVR ATTINY40-SU 20-pin SOIC ATTINY40-SU price ATTINY40-SU lead time ATTINY40-SU pinout ATTINY40-SU drop-in replacement ATTINY40-SU vs ATTINY461V-10SUR ATTINY40-SU PWM control low-power AVR microcontroller 4KB flash where to buy ATTINY40-SU

Componentes & termos relacionados

Microchip Technology ATTINY40-SU ATTINY40-SUR ATTINY461V-10SUR ATtiny40 TinyAVR AVR enhanced RISC architecture 8-bit microcontroller embedded microcontroller semiconductor In-System Programming ISP flash General-purpose I/O PWM 8-bit timer/counter 20-pin SOIC SOIC package family surface-mount package 256 B SRAM 12 MHz clock industrial control battery-powered sensor monitoring LED dimming RS-232 RS-485
RFQ de cotação rápida
Preencha todos os detalhes — nossa equipe de vendas responderá em até 24 horas
Part number Fabricante Encapsulamento QTY Preço-alvo Total
Total: $0.00 USD
✓
Cotação enviada!

Responderemos seu e-mail em até 24 horas

1
RFQ enviada
2
Cotação recebida
3
Pedido realizado
4
Pagamento
5
Enviado
6
Entregue
Ver detalhes da RFQ