Microchip Technology

ATMEGA128A-MN - 8-bit AVR MCU, 128KB Flash 16MHz | Microchip

MPN: ATMEGA128A-MN ✓ Active
In Stock Ships in 1-3 business days
64-QFN (9x9 mm), VFQFN exposed pad Package 16 MHz Speed 128KB (64K x 16) FLASH Memory
From $5.42 USD / Unit
MOQ: 1 |
Price updated: 2026-09-15
Volume Pricing
Qty Unit Price Extended
1 $7.98 $7.98
10 $7.18 $71.80
100 $6.55 $655.00
500 $5.95 $2,975.00
1,000 $5.42 $5,420.00
ℹ️ All prices are in USD

ATMEGA128A-MN Overview

The Microchip Technology ATMEGA128A-MN is a high-performance, low-power 8-bit AVR RISC microcontroller with 128KB (64K x 16) flash memory, 4KB EEPROM, 4KB SRAM, and 53 general-purpose I/O lines, delivered in a 64-pin QFN (9x9 mm, VFQFN with exposed pad) surface-mount package running at up to 16 MHz.

An 8-bit microcontroller is a single-chip computer that integrates a processor core, program memory, data memory, and peripherals such as timers, UARTs, and ADCs onto one silicon die. Within the power-management and embedded-systems hierarchy, it belongs to the AVR family of enhanced RISC MCUs, positioned above simple 8-bit controllers like the ATtiny series and below 32-bit ARM-based parts, making it a workhorse for mid-complexity embedded control.

Key features include the AVR enhanced RISC architecture executing 133 powerful instructions - most in a single clock cycle - achieving throughput close to 1 MIPS per MHz. The flash supports read-while-write capability for in-system firmware updates, and 4KB of EEPROM retains calibration data through power cycles. The internal RC oscillator eliminates external crystals in timing-tolerant designs, and the part is rated to 105 degrees C for industrial environments.

Technically, the ATmega128A combines a 32-register general-purpose file directly connected to the ALU, four flexible timer/counters, a real-time counter, and multiple serial interfaces. Throughputs near 16 MIPS at 16 MHz let designers meet demanding control loops without migrating to 16- or 32-bit cores, preserving the large legacy AVR code base and toolchain investment.

Typical applications include industrial automation controllers, building automation and HVAC nodes, test and measurement instrumentation, and legacy ATmega103 board upgrades - the ATmega128A is 100% pin compatible with ATmega103 per the Microchip datasheet.

Design consideration: the 64-QFN exposed-pad package requires a solid ground vias array under the thermal pad; budget EEPROM write endurance and verify ISP programming pin access (MOSI/MISO/SCK/RESET) on your PCB for production programming.

This page synthesizes distributor pricing, drop-in alternatives, pinout guidance, and practical design notes not found in the manufacturer datasheet, based on data verified as of 2026-09-16.

Drop-in alternatives for ATMEGA128A-MN — 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 ATMEGA128A-MN (same form factor and footprint) — differing in Package, Supply Voltage Range, ADC Channels, EEPROM Size, Program Memory Size.

Microchip Technology
Package: 64-VFQFN (9x9 mm) exposed pad
Supply Voltage Range: 4.5 V to 5.5 V
ADC Channels: 8 channels
Compare with ATMEGA128A-MN →
Microchip Technology
Package: 64-QFN (9x9 mm), VFQFN exposed pad
Supply Voltage Range: 2.7 V to 5.5 V
ADC Channels: 16-channel
Compare with ATMEGA128A-MN →
Microchip Technology
Package: 44-VQFN (7x7 mm), exposed pad
Supply Voltage Range: 2.7 V to 5.5 V
Compare with ATMEGA128A-MN →

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

ATMEGA128A-MNR

✅ Drop-In
📦 64-QFN (9x9)
identical die and 64-QFN package; tape-and-reel packaging variant instead of tray (shipping media only)

📋 Reference alternative (not in catalog)

ATMEGA1284P-MUR

✅ Drop-In
Microchip Technology
📦 64-QFN (9x9)
AVR 8-bit RISC · 20 MHz · 128 KB (64K x 16), In-System Programmable · 16 KB · 4 KB · 2.7 V to 5.5 V · Up to 20 MIPS at 20 MHz · 32

✓ In Stock

Contact for price

View Datasheet →

ATMEGA128-16MUR

✅ Drop-In
Microchip Technology
📦 64-QFN (9x9)
8-bit AVR RISC · 8-bit · 16 MHz · 128 KB (64K x 16) · 4 KB · 4 KB · 4.5 V to 5.5 V · 8 channels

✓ In Stock

$8.4 / Unit

View Datasheet →

ATMEGA1281-16MUR

✅ Drop-In
Microchip Technology
📦 64-QFN (9x9)
AVR 8-bit RISC · 16 MHz · 128 KB (64K x 16) Flash · 8 KB · 4 KB · 2.7 V to 5.5 V · 54 · 32

✓ In Stock

$8.78 / Unit

View Datasheet →

ATMEGA128A-AU

✅ Drop-In
Microchip Technology
📦 64-TQFP
AVR · 8-Bit · Enhanced RISC, 133 instructions · 16 MHz · 128 KB (64K x 16), In-System Programmable, read-while-write · 4 KB · 4 KB · 2.7 V to 5.5 V

✓ In Stock

$4.3 / Unit

View Datasheet →

ATMEGA128A-MN Maximum Ratings & Electrical Characteristics

Core AVR 8-bit RISC
Program Memory Size 128KB (64K x 16) FLASH
Program Memory Type FLASH (read-while-write)
EEPROM Size 4KB
SRAM Size 4KB
Maximum Clock Frequency 16 MHz
Number of I/O 53
General Purpose Working Registers 32
Oscillator Type Internal
Package / Case 64-QFN (9x9 mm), VFQFN exposed pad
Mounting Style Surface Mount
Operating Temperature -40C to +105C
Timers / Counters Four flexible timer/counters plus real-time counter
Packaging Tray
RoHS Status Green (per Mouser listing)

ATMEGA128A-MN 64-qfn (9x9 mm), vfqfn exposed pad Pin Configuration Guide

Pin configuration for ATMEGA128A-MN (64-qfn (9x9 mm), vfqfn exposed pad package). This digital IC includes GPIO, communication interfaces (UART, SPI, I2C), and power pins. Refer to the manufacturer datasheet for alternate pin functions and configuration options. Essential for embedded system design and PCB layout.

64-qfn (9x9 mm), vfqfn exposed pad package pinout diagram for ATMEGA128A-MN

No detailed pinout data available for ATMEGA128A-MN.

Refer to the datasheet for full pin configuration.

Typical Applications

ATMEGA128A-MN is suitable for 6 applications: Industrial Automation Controllers, Building Automation and HVAC, Test and Measurement Instrumentation, Legacy ATmega103 Board Upgrades, Embedded Communication Nodes, Consumer and Appliance Control Boards.

🏭

Industrial Automation Controllers

The ATMEGA128A-MN fits industrial control nodes that need serious program space without 32-bit complexity. Its 128KB flash accommodates large state machines, Modbus stacks, and HMI logic, while the -40C to +105C rating survives control-cabinet heat. Four flexible timer/counters generate PWM for motor drives and solenoids, and 53 GPIO lines interface sensors, relays, and limit switches directly. Typical designs run the MCU at 16 MHz for roughly 16 MIPS of headroom, with the internal oscillator reducing BOM cost where crystal precision is unnecessary. Place the device on a 5V-tolerant logic domain to simplify interfacing with legacy industrial I/O modules.

🧩

Building Automation and HVAC

Thermostats, damper controllers, and zone-control boards benefit from the ATmega128A's 4KB EEPROM, which stores setpoints, schedules, and calibration tables through power cycles without external NVM. The 128KB flash holds communication stacks and logging firmware, while the real-time counter supports time-of-day scheduling from an external 32.768 kHz crystal. The 64-QFN 9x9 mm footprint fits dense wall-mounted PCBs, and the internal oscillator lets cost-sensitive designs drop the main crystal. Wide -40C to +105C operation covers rooftop equipment and boiler-room enclosures where ambient temperatures exceed consumer-grade limits regularly.

🔧

Test and Measurement Instrumentation

Bench instruments, dataloggers, and sensor front-ends use the ATMEGA128A-MN's generous 128KB program space for menu systems, math routines, and multi-protocol output formatting. Single-cycle RISC execution at 16 MHz gives deterministic timing for measurement sequencing, and 4KB SRAM buffers sample arrays and string formatting. The 64-pin QFN exposes enough GPIO for keypad scanning, display driving, and multi-range relay switching in one controller. Firmware updates in the field are straightforward thanks to read-while-write flash boot-loader support, allowing feature upgrades on installed instruments without desoldering or socketed parts.

🖥️

Legacy ATmega103 Board Upgrades

The ATmega128A is 100% pin compatible with the ATmega103 according to the Microchip datasheet, making the ATMEGA128A-MN the standard migration path for maintaining installed ATmega103-based boards. The doubled 128KB flash removes the 103's code-size ceiling, and the refresh die keeps a mature product line in production without PCB changes. Microchip's application note 'Replacing ATmega103 by ATmega128A' documents fuse and register differences to address in firmware. For manufacturers servicing legacy industrial or medical equipment, this compatibility avoids costly board respins while restoring long-term component availability.

🌐

Embedded Communication Nodes

Gateways, protocol converters, and wired sensor nodes exploit the ATmega128A's serial resources - multiple USARTs plus SPI and TWI (I2C) - to bridge RS-485 fieldbuses, RF modules, and local sensors in one controller. The 128KB flash holds dual protocol stacks simultaneously, and 4KB SRAM provides packet buffering for bursty traffic. Designs on this part commonly pair it with external transceivers and run the core at 5V for noise-margin advantage on long cable runs in factory or outdoor networks. The 105C rating and Green/RoHS compliance suit sealed, maintenance-free node enclosures deployed for years without service access.

📺

Consumer and Appliance Control Boards

Major appliances, power tools, and smart-home appliances use the ATMEGA128A-MN where UI complexity (menus, multiple languages, display drivers) outgrows smaller AVRs. The large flash stores rich graphics text tables and multiple localizations, while 53 GPIO drives seven-segment stacks, capacitive-touch front ends, and relay matrices directly. The internal oscillator and 9x9 mm QFN keep the controller BOM and footprint small for high-volume assembly, and the Green/RoHS-compliant finish satisfies global consumer-product environmental requirements. Volume production benefits from tray packaging feeding standard SMT pick-and-place lines without reel-conversion steps.

What are the key specifications of ATMEGA128A-MN that engineers should know?
The ATMEGA128A-MN is a Microchip 8-bit AVR RISC microcontroller with 128KB flash (64K x 16), 4KB EEPROM, 4KB SRAM, 53 general-purpose I/O lines, and a maximum 16 MHz clock, packaged in a 64-pin QFN (9x9 mm) with exposed pad and rated from -40C to +105C. According to the Microchip ATmega128A datasheet summary, its single-cycle instruction execution delivers throughput close to 1 MIPS per MHz, about 16 MIPS at full speed.
What is the price of ATMEGA128A-MN?
As of 2026-09-16, reference distributor pricing for ATMEGA128A-MN starts around $6.38 per unit in volume (per Heisener) with unit quantities typically in the $7-$8 range at authorized distributors like DigiKey and Mouser. Pricing varies with quantity breaks, stock location, and market conditions - request a quote on this page for current XAIPART pricing across 1/10/100/500/1000 piece tiers.
Where to buy ATMEGA128A-MN online?
ATMEGA128A-MN is available from authorized distributors including DigiKey (part 2507953), Mouser, and from XAIPART directly. Independent distributors such as Heisener and Ampheo also list stock (Heisener reported 3,936 pieces in stock). For guaranteed traceability, buy from authorized channels; this page offers direct purchase with tiered quantity pricing as of 2026-09-16.
Is ATMEGA128A-MN in stock and what is the lead time?
Stock availability fluctuates by distributor. DigiKey lists it as typically shipping same day, and independent sources reported about 3,936 pieces in stock as of the September 2026 web data, while some independent distributors mark lead time as 'to be confirmed'. Check the live stock indicator on this page or contact XAIPART sales for confirmed lead times before committing to production schedules.
What is the best drop-in replacement for ATMEGA128A-MN?
The ATMEGA128A-MNR is the closest drop-in: it is the identical die in the identical 64-QFN package, differing only in tape-and-reel packaging instead of tray. Within the same footprint family, ATMEGA1284P-MUR (also 64-pin, with more SRAM and picoPower features) is available on XAIPART. Per the Microchip datasheet, ATmega128A is also 100% pin compatible with the older ATmega103 for board upgrades.
Can ATMEGA1284P replace ATMEGA128A-MN in my design?
Yes, with firmware verification. The ATmega1284P is a 64-pin AVR with the same ATmega register-style architecture, 128KB flash, and compatible peripheral concepts, and it adds picoPower technology and more SRAM. However, pin multiplexing of peripherals differs in places, so it is not guaranteed 100% pin-to-pin identical to the ATmega128A QFN - review the alternate-function pin tables in both datasheets before swapping.
What is the difference between ATMEGA128A-MN and ATMEGA128A-AU?
Only the package differs. The ATMEGA128A-MN is the 64-pin QFN (9x9 mm, exposed pad) version, while the ATMEGA128A-AU is the 64-pin TQFP version of the same die with identical 128KB flash, 4KB EEPROM, 4KB SRAM, 53 I/O, and 16 MHz ratings. Functionally and electrically they are equivalent; choose the MN for compact layouts or the AU for easier hand assembly and inspection.
ATMEGA128A vs ATMEGA64A - which should I choose?
Choose ATMEGA128A when your code plus data exceeds the ATmega64A's 64KB flash or 2KB SRAM ceiling, or when you need forward headroom. The ATmega64A (e.g., ATMEGA64A-MU in QFN-64) is cheaper and pin-compatible in the 64-pin packages, so it can serve as a cost-down once firmware size is confirmed. Both run at 16 MHz; the 128A doubles program memory and EEPROM/SRAM.
Where to download the ATMEGA128A-MN datasheet PDF?
Download the official ATmega128A datasheet from the Microchip website product page (microchip.com/en-us/product/ATmega128A) or the datasheet summary PDF hosted at ww1.microchip.com (Atmel-8151S document). Avoid third-party datasheet mirrors where possible, as Microchip's site always carries the latest revision covering the full family including the QFN MN variant.
Where can I find the ATMEGA128A-MN pinout for the 64-QFN package?
The complete 64-pin QFN pinout (ports A through G, VCC, GND, AVCC, AREF, RESET, XTAL1/XTAL2, and JTAG pins) is in the pin configuration section of the Microchip ATmega128A datasheet. The pin diagram on this page provides a visual reference; always cross-check pin assignments against the datasheet before PCB routing, since several pins carry multiple alternate functions.
What is the operating temperature range of ATMEGA128A-MN?
The ATMEGA128A-MN is rated for operation from -40C to +105C, as stated in the Mouser product listing describing it as an 'AVR 128K Flash 16MHz 105 degree C Green' part. This extended industrial range suits unventilated enclosures, motor-control cabinets, and outdoor equipment. Note that maximum clock frequency and flash write behavior must be verified across the full temperature range per the datasheet's speed-versus-voltage graphs.
How do I program the ATMEGA128A-MN in circuit?
Program it via SPI In-Circuit Serial Programming (ICSP) using MOSI, MISO, SCK, RESET, VCC, and GND, or via JTAG. Per Microchip's product page, tools such as the MPLAB SNAP connect through an 8-pin SIL header using two device I/O pins plus reset for in-circuit debugging and ICSP. Reserve these pins on your PCB header during layout - retrofitting programming access to a populated 64-QFN board is very difficult.
Is ATMEGA128A-MN RoHS compliant?
Yes. The Mouser listing describes the ATMEGA128A-MN as 'Green', Microchip's designation for RoHS-compliant, halogen-free parts. The device is also lead-free for standard reflow assembly. Always confirm the exact compliance certificate via Microchip's environmental page for your specific date code when required by customer audits, but current production is RoHS compliant.
Can ATmega128A replace ATmega103 on my existing PCB?
Yes. According to the Microchip/Atmel ATmega128A datasheet summary, the ATmega128A is 100% pin compatible with the ATmega103 and can replace it on current printed circuit boards. Microchip also publishes the application note 'Replacing ATmega103 by ATmega128A' covering the fuse settings, register differences, and boot-loader considerations you must address in firmware when migrating.
Hey Google, what can replace ATMEGA128A-MN?
The safest replacement is ATMEGA128A-MNR (same die, same 64-QFN package, tape-and-reel packaging). Same-family options on XAIPART include ATMEGA1284P-MUR and ATMEGA1281-16MUR, both 64-pin AVR parts, though they require firmware and pin-multiplexing review. There is no true cross-brand pin-compatible equivalent for this MCU - competitors' 8-bit MCUs are functional substitutes only, not drop-ins.

Engineering reference data for ATMEGA128A-MN — comparison, design guidance, and compliance information.

Selection Guide

Choose ATMEGA128A-MN when you need 128KB flash in a compact 9x9 mm 64-QFN with industrial -40C to +105C operation, especially when refreshing an ATmega103 or ATmega128 legacy design - the 100% ATmega103 pin compatibility makes migration nearly free. Choose ATMEGA128A-MNR for identical silicon when your SMT line prefers tape-and-reel feeding. Choose ATMEGA128A-AU when hand assembly, easier inspection, or 0.8 mm TQFP pitch matters more than board area. Choose ATMEGA1284P-MUR if your application is SRAM-hungry (16KB vs 4KB) or needs picoPower sleep currents, accepting firmware and pin-multiplexing review. Trade-offs: the ATmega128A tops out at 16 MHz and 4KB SRAM; newer AVRs exceed both but are not drop-ins. There is no true cross-brand pin-compatible replacement for this MCU.

Comparison with Alternatives

Parameter This Product ATMEGA128A-MNR ATMEGA1284P-MUR ATMEGA128-16MUR ATMEGA128A-AU
Package 64-QFN (9x9 mm), exposed pad 64-QFN (9x9 mm) - same 64-QFN (9x9 mm) 64-QFN (9x9 mm) 64-TQFP
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Flash Memory 128KB 128KB 128KB 128KB 128KB
SRAM 4KB 4KB 16KB 4KB 4KB
Maximum Clock Frequency 16 MHz 16 MHz 20 MHz 16 MHz 16 MHz
Packaging Media Tray Tape & Reel Tape & Reel Tape & Reel Tray
Special Features ATmega103 pin compatible, read-while-write flash, internal oscillator Same features as ATMEGA128A-MN picoPower, 20 MIPS, JTAG Original ATmega128 die Same die as MN in TQFP

Key Differentiators

  • ATmega103 pin compatibility for legacy board upgrades (vs ATMEGA1284P-MUR)
  • Same-die family alternatives with identical flash (vs ATMEGA128A-MNR)
  • Higher SRAM upgrade path within 64-pin AVR family (vs ATMEGA128-16MUR)
  • Package choice flexibility (vs ATMEGA128A-AU)

Design Notes

The 64-QFN 9x9 mm package has a 0.5 mm lead pitch and an exposed center pad. Connect the exposed pad to a ground plane through an array of 4x4 or 5x5 vias (about 0.3 mm drill) to improve grounding and heat spreading. Use no-clean flux carefully - flux trapped under the QFN body is hard to remove. Check solder stencil apertures: 60-70% coverage on the thermal pad with segmented apertures reduces voiding during reflow.

Reserve the SPI ICSP signals (MOSI/MISO/SCK/RESET) on a standard 2x3 header for production programming, since in-circuit debugging and ICSP per Microchip's tool documentation use two device I/O pins plus reset. Also route JTAG (TCK/TMS/TDI/TDO) to test points or a header if boundary scan matters. After board spin, verify that these pins are not permanently loaded with circuitry that prevents entering programming mode - a common retrofit pitfall.

Decouple each VCC/AVCC pin pair with 100 nF ceramic capacitors placed within 2 mm of the pins, plus one bulk 4.7-10 uF per board region. When using the ADC, connect AVCC through an LC filter (ferrite bead plus 100 nF/10 uF) to reduce digital noise on conversions, and tie AREF to a 100 nF cap unless using an external reference. Estimated: at 5V, 16 MHz, and ~20 mA active current, dissipation is roughly 0.1 W - no thermal concern in the QFN, but verify with your actual I/O loading.

Flash speed depends on supply voltage: at 16 MHz the ATmega128A requires the upper voltage range per the datasheet speed-versus-voltage graph, so a 3.3V rail cannot run full-speed 16 MHz reliably. Fuse settings are a classic trap - disabling SPIEN via wrong fuse programming locks ICSP access. Also remember that EEPROM writes consume endurance cycles; add wear-leveling if logging writes at high frequency.

Compliance Information

RoHS
Compliant
REACH
Unknown
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Unknown

Mouser listing describes the part as 'Green', Microchip's designation for RoHS-compliant and halogen-free. Full REACH and conflict-minerals status not stated in provided data.

Data verified on: 2026-09-16 — data verified and curated by XAIPART's component engineering team

Related Searches

ATMEGA128A-MN datasheet ATMEGA128A-MN Microchip Technology ATMEGA128A-MN price buy ATmega128A 64-QFN microcontroller 16MHz ATMEGA128A-MN vs ATMEGA1284P ATMEGA128A-MN drop-in replacement ATmega128A replace ATmega103 pin compatible ATMEGA128A-MN pinout 64-QFN ATmega128A industrial controller 105C what can replace ATMEGA128A-MN ATMEGA128A-MNR vs ATMEGA128A-MN difference 8-bit AVR microcontroller 128KB flash QFN-64

Related Components & Terms

Microchip Technology ATMEGA128A-MN ATMEGA128A-MNR ATMEGA128A-AU ATMEGA1284P-MUR ATmega128 ATmega103 ATmega1281 AVR 8-bit microcontroller RISC architecture ICSP JTAG 64-QFN VFQFN TQFP-64 RoHS EEPROM flash memory picoPower MPLAB SNAP industrial automation building automation
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details