ATTINY402-SSN - 20MHz 8-Bit AVR MCU | Microchip Technology
MPN: ATTINY402-SSN ✓ ActiveATTINY402-SSN Overview
A microcontroller is a programmable semiconductor that combines a CPU core, memory, and peripherals on one integrated circuit. Within the product hierarchy, the ATTINY402-SSN belongs to the tinyAVR 0-series, which is a low-power branch of the 8-bit AVR family. The architecture is intended for autonomous peripheral operation, small firmware footprints, and energy-efficient control systems where a larger processor would add unnecessary cost or board area.
The device operates at up to 20 MHz and includes a hardware multiplier for faster arithmetic operations. Its 4 KB Flash memory provides program storage, while 256 bytes of SRAM accommodate working variables and stack operations. Nonvolatile EEPROM of 128 bytes is available for data that must persist between power cycles. The Event System allows peripherals to communicate through hardware events, and SleepWalking lets selected peripheral functions operate while the system is otherwise in a low-power sleep state.
Microchip describes accurate analog features as part of the tinyAVR 0-series architecture. These characteristics make the ATTINY402-SSN suitable for systems that combine digital control with sensor input, threshold decisions, or basic analog signal conditioning. Its eight-pin package also limits the number of external connections, encouraging compact implementations in consumer, industrial, and embedded products.
Typical applications include low-power sensor nodes, compact motor and actuator controllers, building-control interfaces, battery-operated accessories, and small industrial monitoring modules. In these systems, the microcontroller can evaluate digital inputs, operate timers and communication interfaces, perform limited analog measurements, and place unused sections of the design into a low-power state.
PCB design should account for the limited eight-pin footprint by reserving an accessible programming or debug connection and a stable decoupling capacitor near the supply pin. Confirm the complete pin-description table and recommended application circuit in the manufacturer datasheet before assigning every signal, especially when reset, analog, or programming functions share package pins.
This page combines the manufacturer device specifications with package-level design guidance, drop-in family options, and a practical comparison of programming, memory, and sourcing considerations. It is intended to help engineers evaluate the ATTINY402-SSN before starting a compact, low-power AVR design.
Drop-in alternatives for ATTINY402-SSN — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with ATTINY402-SSN (same form factor and footprint) — differing in Package, ADC, Core, Flash Memory, Hardware Multiplier.
ATTINY402-SSNR
✅ Drop-In📋 Reference alternative (not in catalog)
ATTINY402-SSFR
✅ Drop-In📋 Reference alternative (not in catalog)
ATTINY412-SSNR
✅ Drop-In ⚠️ Specs UnverifiedContact for price
View Datasheet →ATTINY3224-SSU
✅ Drop-In ⚠️ Specs Unverified📋 Reference alternative (not in catalog)
ATTINY202-SSN
✅ Drop-In ⚠️ Specs UnverifiedContact for price
View Datasheet →ATTINY402-SSN Maximum Ratings & Electrical Characteristics
| Processor Type | 8-bit AVR RISC |
| Product Series | tinyAVR 0-series |
| Maximum Clock Frequency | 20 MHz |
| Flash Memory | 4 KB (4K x 8 bits) |
| SRAM | 256 bytes |
| EEPROM | 128 bytes |
| Hardware Multiplier | Present |
| Event System | Present |
| SleepWalking | Present |
| Analog Features | Accurate analog peripherals |
| Package | 8-pin SOIC |
| Mounting Type | Surface mount |
| Industrial Temperature Grade | Up to 105 °C |
ATTINY402-SSN Pin Configuration
| Pin 1 | PD3/AIN3 — General-purpose digital input/output and analog input channel |
| Pin 2 | PD4/AIN4 — General-purpose digital input/output and analog input channel |
| Pin 3 | GND — Ground connection |
| Pin 4 | RESET/ADC0 — Reset and analog-to-digital converter channel 0 |
| Pin 5 | PA0/AIN0 — General-purpose digital input/output and analog input channel 0 |
| Pin 6 | PA1/AIN1 — General-purpose digital input/output and analog input channel 1 |
| Pin 7 | PA2/AIN2 — General-purpose digital input/output and analog input channel 2 |
| Pin 8 | VCC — Power supply connection |
Typical Applications
ATTINY402-SSN is suitable for 6 applications: Battery-Powered Sensor Node, Compact Motor and Actuator Controller, Industrial Threshold Monitor, Smart Building Sensor Interface, LED Lighting Controller, Portable Accessory Controller.
Battery-Powered Sensor Node
The ATTINY402-SSN fits battery-powered sensor nodes that need local control without the overhead of a larger microcontroller. Its Event System allows sensor and timer activity to be handled through hardware events, while SleepWalking lets selected peripherals operate while the CPU remains in a low-power state. The 4 KB Flash provides room for acquisition logic, filtering, threshold management, and communication routines, while 256 bytes of SRAM supports temporary measurement data. The 128-byte EEPROM can retain calibration values or a configuration identifier across power cycles. Actual battery life depends on the sensor load, sampling interval, sleep mode, and active peripheral configuration, so the final power budget should be measured on the assembled design.
Recommended
Compact Motor and Actuator Controller
The ATTINY402-SSN is suitable for compact motor, valve, and actuator controllers where the control algorithm must combine fast timing with limited board space. Operation up to 20 MHz gives the 8-bit AVR processor additional headroom for motion sequencing, fault detection, and closed-loop updates. The hardware multiplier accelerates arithmetic operations that can be useful in proportional control or signal-processing routines. With 4 KB of Flash, 256 bytes of SRAM, and 128 bytes of EEPROM, the device can hold control code plus small parameter sets while maintaining a small eight-pin footprint. Event System connectivity can coordinate timer and peripheral events, reducing polling overhead. Power-device drivers, protection networks, and heat-management components must be designed separately because the MCU controls the system rather than directly driving the load.
Recommended
Industrial Threshold Monitor
The ATTINY402-SSN can serve as the local controller in an industrial threshold-monitoring module that evaluates sensor conditions and reports a state through a digital interface. Its accurate analog features support signal conditioning and measurement tasks, while the hardware multiplier helps process acquired values without moving every operation to a host processor. At 20 MHz, the device can maintain predictable control-loop timing for relatively simple mechanisms. The eight-pin SOIC package keeps the controller compact but requires careful pin multiplexing when analog inputs, communication signals, reset access, and power are all needed. For factory equipment, add suitable transient protection, isolation, grounding, and enclosure practices according to the installation environment. The MCU's industrial ordering suffix supports use in equipment rated up to 105 °C.
Recommended
Smart Building Sensor Interface
The ATTINY402-SSN fits compact building-sensor interfaces that convert switches, occupancy inputs, or environmental sensors into a common digital signal. Its 4 KB Flash can hold protocol state machines and configuration logic, while Event System support allows timer-driven sampling or communication tasks to interact through hardware events. The 256-byte SRAM is adequate for small message buffers, and 128 bytes of EEPROM can store endpoint settings or calibration constants. The device's eight-pin package simplifies space-constrained sensor modules, although pin sharing requires careful review of the manufacturer pin table. Low-power operation is important in battery-powered wireless endpoints, making SleepWalking useful for reducing CPU wake-ups. A production design should validate radio coexistence, ESD requirements, and the sensor's standby current rather than assuming MCU-only specifications determine system power.
Recommended
LED Lighting Controller
The ATTINY402-SSN can control compact LED lighting modules where dimming, timing, and status indication must be implemented locally. Its 20 MHz AVR core provides enough execution capability for PWM updates, fade sequencing, button handling, and communication tasks in a small design. Event System hardware events can coordinate timer-driven modulation with external input activity, helping reduce software polling. The 4 KB Flash and 128-byte EEPROM allow lighting profiles or configuration values to be stored locally, although profile count depends on their size. Eight pins support the required LED drive, control input, and communications only when functions are multiplexed carefully. Keep the MCU supply quiet and separate high-current LED paths from sensitive signal routing. LED drivers and transistors should be selected for the load because the microcontroller pins are intended for logic-level control rather than direct lamp current.
Recommended
Portable Accessory Controller
The ATTINY402-SSN is appropriate for compact portable accessories that combine user inputs, status LEDs, and one or more low-power sensors. The 8-bit architecture is well matched to simple control logic, while the hardware multiplier and 20 MHz clock provide margin for debouncing, state management, and protocol handling. Four kilobytes of Flash accommodates application firmware and small lookup tables, and 256 bytes of SRAM handles short-lived working data. SleepWalking can reduce the need to wake the core for every peripheral event, which is valuable in battery-operated products. The device must still be paired with appropriate power-path, protection, and charger circuitry for portable equipment. Firmware should include brownout handling, safe shutdown behavior, and validated defaults so an interrupted power condition cannot leave an actuator or indicator in an unsafe state.
Recommended
Recommended Products Summary
Engineering reference data for ATTINY402-SSN — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | ATTINY402-SSNR | ATTINY402-SSFR | ATTINY412-SSN | ATTINY3224-SSU | ATTINY202-SSN |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 8-pin SOIC | 8-pin SOIC - same package | 8-pin SOIC - same package | 8-pin SOIC - same package | 8-pin SOIC - same package | 8-pin SOIC - same package |
| Processor Architecture | 8-bit AVR with hardware multiplier | 8-bit AVR with hardware multiplier | 8-bit AVR with hardware multiplier | tinyAVR 0-series, 8-bit AVR | tinyAVR family, 8-bit AVR | 8-bit AVR with hardware multiplier |
| Ordering and Shipment Configuration | ATTINY402-SSN in tube packaging | ATTINY402-SSNR ordering configuration | ATTINY402-SSFR ordering configuration | ATTINY412-SSN ordering configuration | ATTINY3224-SSU ordering configuration | ATTINY202-SSN ordering configuration |
Key Differentiators
- Higher memory capacity within the related eight-pin tinyAVR family (vs ATTINY202-SSN)
- Direct family configuration matching for existing ATTINY402 boards (vs ATTINY412-SSN)
- Event-driven control with an 8-bit hardware multiplier (vs ATTINY3224-SSU)
- Exact same-device ordering option for flexible procurement (vs ATTINY402-SSNR)
Design Notes
Place the supply decoupling capacitor immediately between the VCC and GND pins, with a short and low-inductance return path. Preserve access to the programming interface and RESET/ADC0 function because the eight-pin package provides limited routing flexibility. Use the manufacturer recommended decoupling value and layout from the ATtiny202/402 complete datasheet, and avoid placing high-current switching paths between the capacitor and the supply pin.
Treat analog-capable pins as potential high-impedance sources and keep their copper routes away from clocks, motor-control edges, and switching-supply nodes. The ATTINY402-SSN combines digital I/O and analog inputs in an eight-pin SOIC, so pin multiplexing can force otherwise unrelated signals near each other. Check the pin-description table before assigning a function and follow the manufacturer's recommended analog grounding and decoupling arrangement.
Do not assume that any 8-bit AVR programming tool supports the ATTINY402 signature, memory map, and clock configuration. Select a programmer and software package explicitly compatible with the ATtiny202/402 family, and confirm the target voltage before connecting it. Also verify all eight pins after assigning multiplexing functions; an incorrect reset or programming connection can appear as a failed firmware download or an unresponsive controller.
Estimate average current from the MCU's active and sleep contributions, then add the current required by sensors, communications, indicators, and external logic. SleepWalking can reduce CPU wake-ups, but peripheral clocks and continuously powered blocks may remain active. Validate the complete sleep current on hardware because PCB leakage, pull networks, regulators, and external devices can dominate the final power budget even when the controller itself is efficient.
Compliance Information
Manufacturer product information identifies ATTINY402-SSN as a green device, but exact RoHS, REACH, lead-free, halogen-free, and conflict-minerals declarations were not stated in the referenced product data.