ATXMEGA256A3BU-MH - 256KB Flash 32MHz AVR XMEGA MCU | Microchip
MPN: ATXMEGA256A3BU-MH ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $9.43 | $9.43 |
| 10 | $8.85 | $88.50 |
| 100 | $7.9 | $790.00 |
| 500 | $7.1 | $3,550.00 |
| 1,000 | $6.55 | $6,550.00 |
ATXMEGA256A3BU-MH Overview
An AVR XMEGA microcontroller is a member of Microchip's 8/16-bit RISC MCU family that extends the classic AVR core with a wider 16-bit instruction path, hardware DMA, an event system for peripheral-to-peripheral signaling without CPU intervention, and rich analog peripherals. XMEGA parts sit between the 8-bit ATmega family and 32-bit ARM Cortex-M parts, making them well suited to mixed-signal embedded designs that need deterministic I/O timing and low active power.
Key features of the ATXMEGA256A3BU include 256 KB Flash with an 8 KB boot code section, 16 KB SRAM, 4 KB EEPROM, 34 programmable I/O lines, dual 12-bit ADC, two 12-bit DAC channels, multiple USART/SPI/TWI interfaces, AES/DES crypto engine, and an RTC subsystem with VBAT pin (PF5) that keeps the 32-bit RTC running during main-battery loss. The 32 MHz peak core speed with a single-cycle 16-bit ALU delivers roughly 32 MIPS throughput while consuming only a few mA in active mode.
The A3BU silicon uses Microchip's picoPower technology with multiple sleep modes down to sub-microamp standby, plus an event system that lets peripherals trigger each other so the CPU can stay asleep longer. The Battery Backup System preserves RTC state across main-power failures by switching the RTC supply onto VBAT, which is a key feature absent from the otherwise similar ATxmega256A3U.
Typical applications include industrial sensor hubs, smart metering, building automation, low-power wireless sensor nodes paired with an external radio, motor control, USB device/embedded hosts, and battery-backed data loggers. The 32-bit RTC plus VBAT makes it a strong fit for any design that must keep wall-clock time through power cycles.
When designing with this MCU, route VBAT through a backup supercap or coin cell, decouple the main VCC with 100 nF plus 4.7 µF bulk caps adjacent to each supply pin, and reserve a dedicated 6-pin PDI header for in-system programming because the QFN package cannot be socketed on most production boards.
This page synthesizes distributor stock and pricing, drop-in same-package alternatives, and practical design notes not found in the manufacturer datasheet.
Drop-in alternatives for ATXMEGA256A3BU-MH — 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 ATXMEGA256A3BU-MH (same form factor and footprint) — differing in Operating Temperature, Package, EEPROM, SRAM, ADC.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
ATXMEGA256A3BU-MHR
✅ Drop-In📋 Reference alternative (not in catalog)
ATXMEGA128A3BU-MH
✅ Drop-In📋 Reference alternative (not in catalog)
ATXMEGA64A3BU-MH
✅ Drop-In📋 Reference alternative (not in catalog)
ATXMEGA192A3BU-MH
✅ Drop-In📋 Reference alternative (not in catalog)
ATXMEGA128A4U-AUR
✅ Drop-In✓ In Stock
$5.45 / Unit
View Datasheet →ATXMEGA256A3BU-MH Maximum Ratings & Electrical Characteristics
| Core Architecture | AVR XMEGA (8/16-bit RISC) |
| Family | AVR XMEGA A3BU |
| Program Memory (Flash) | 256 KB (128K x16) |
| Boot Code Section | 8 KB |
| SRAM | 16 KB |
| EEPROM | 4 KB |
| Maximum CPU Speed | 32 MHz |
| Supply Voltage (VCC) | 2.7 V to 3.6 V |
| I/O Pins | 34 |
| ADC | Dual 12-bit, up to 2 Msps |
| DAC | 2 x 12-bit |
| DMA Channels | 4 |
| Event System Channels | 8 |
| RTC | 32-bit RTC with Battery Backup (VBAT) |
| Crypto Engine | AES / DES |
| Package | 64-pin QFN (9x9 mm), 0.5 mm pitch |
| Operating Temperature | -40 C to +85 C (industrial) |
| Mounting Type | Surface Mount |
| RoHS | Compliant |
| Programming/Debug | PDI (Programming and Debug Interface) |
ATXMEGA256A3BU-MH Pin Configuration
| Pin 1 | VCC — Digital supply voltage (2.7 V to 3.6 V) |
| Pin 2 | GND — Ground |
| Pin 3 | AVCC — Analog supply voltage |
| Pin 4 | PA0 — Port A bit 0 / ADC0 channel 0 |
| Pin 5 | PA1 — Port A bit 1 / ADC0 channel 1 |
| Pin 6 | PA2 — Port A bit 2 / ADC0 channel 2 |
| Pin 7 | PA3 — Port A bit 3 / ADC0 channel 3 |
| Pin 8 | PA4 — Port A bit 4 / ADC1 channel 0 |
| Pin 9 | PA5 — Port A bit 5 / ADC1 channel 1 |
| Pin 10 | PA6 — Port A bit 6 / ADC1 channel 2 |
| Pin 11 | PA7 — Port A bit 7 / ADC1 channel 3 |
| Pin 12 | GND — Ground |
| Pin 13 | PB0 — Port B bit 0 |
| Pin 14 | PB1 — Port B bit 1 |
| Pin 15 | PB2 — Port B bit 2 |
| Pin 16 | PB3 — Port B bit 3 |
| Pin 17 | PB4 — Port B bit 4 |
| Pin 18 | PB5 — Port B bit 5 |
| Pin 19 | PB6 — Port B bit 6 |
| Pin 20 | PB7 — Port B bit 7 |
| Pin 21 | VCC — Digital supply voltage |
| Pin 22 | GND — Ground |
| Pin 23 | PC0 — Port C bit 0 |
| Pin 24 | PC1 — Port C bit 1 |
| Pin 25 | PC2 — Port C bit 2 |
| Pin 26 | PC3 — Port C bit 3 |
| Pin 27 | PC4 — Port C bit 4 |
| Pin 28 | PC5 — Port C bit 5 |
| Pin 29 | PC6 — Port C bit 6 |
| Pin 30 | PC7 — Port C bit 7 |
| Pin 31 | VCC — Digital supply voltage |
| Pin 32 | GND — Ground |
| Pin 33 | PD0 — Port D bit 0 |
| Pin 34 | PD1 — Port D bit 1 |
| Pin 35 | PD2 — Port D bit 2 |
| Pin 36 | PD3 — Port D bit 3 |
| Pin 37 | PD4 — Port D bit 4 |
| Pin 38 | PD5 — Port D bit 5 |
| Pin 39 | PD6 — Port D bit 6 |
| Pin 40 | PD7 — Port D bit 7 |
| Pin 41 | VCC — Digital supply voltage |
| Pin 42 | GND — Ground |
| Pin 43 | PE0 — Port E bit 0 |
| Pin 44 | PE1 — Port E bit 1 |
| Pin 45 | PE2 — Port E bit 2 |
| Pin 46 | PE3 — Port E bit 3 |
| Pin 47 | PE4 — Port E bit 4 |
| Pin 48 | PE5 — Port E bit 5 |
| Pin 49 | TOSC1 — 32.768 kHz crystal oscillator input (RTC) |
| Pin 50 | TOSC2 — 32.768 kHz crystal oscillator output (RTC) |
| Pin 51 | VCC — Digital supply voltage |
| Pin 52 | GND — Ground |
| Pin 53 | PF0 — Port F bit 0 |
| Pin 54 | PF1 — Port F bit 1 |
| Pin 55 | PF2 — Port F bit 2 / TDI |
| Pin 56 | PF3 — Port F bit 3 / TDO |
| Pin 57 | PF4 — Port F bit 4 / TMS |
| Pin 58 | VBAT — RTC Battery Backup supply input |
| Pin 59 | PDI_CLK — PDI programming/debug clock |
| Pin 60 | PDI_DATA — PDI programming/debug data |
| Pin 61 | /RESET — Reset input (active low) |
| Pin 62 | VCC — Digital supply voltage |
| Pin 63 | GND — Ground |
| Pin 64 | GND — Ground (exposed pad must be soldered to ground plane) |
Typical Applications
ATXMEGA256A3BU-MH is suitable for 6 applications: Battery-Backed Industrial Data Logger, Smart Metering and Energy Monitoring, Building Automation HVAC Controller, Low-Power Wireless Sensor Node, USB Embedded Host / Device Peripheral, Motor Control and BLDC Driver Front-End.
Battery-Backed Industrial Data Logger
The ATXMEGA256A3BU-MH fits battery-backed industrial data loggers because it integrates a 32-bit Real-Time Counter plus a dedicated VBAT pin (PF5) that retains accurate timestamps across main-power loss, removing the need for an external RTC chip. Its 256 KB Flash stores weeks of buffered sensor samples while 16 KB SRAM holds active records, and the 4 KB EEPROM logs non-volatile configuration and audit trails. Placed as the main MCU with a 32.768 kHz crystal on TOSC1/TOSC2 and a supercap/coin cell on VBAT, it timestamps each Modbus or analog sample at 1-second resolution. Unlike an external RTC + MCU pair, the integrated VBAT switchover saves BOM cost and I/O pins while keeping standby current below 1 µA.
Recommended
Smart Metering and Energy Monitoring
The ATXMEGA256A3BU-MH suits smart electricity, water, and gas meters because its dual 12-bit ADC simultaneously samples voltage and current channels at up to 2 Msps, and the AES crypto engine secures DLMS/COSEM or wireless M-Bus payloads. The 8-channel event system lets timer-triggered ADC conversions run without CPU intervention, so the core stays asleep between samples. With 256 KB Flash it can hold an entire DLMS/COSEM object dictionary plus firmware-upgrade slots; 16 KB SRAM buffers meter readings before transmitting. The 32-bit RTC keeps tariff time zones and TOU schedules accurate across power outages via VBAT. Compared with a discrete ADC + 8-bit MCU architecture, this integrated approach cuts PCB area and BOM by ~30%.
Recommended
Building Automation HVAC Controller
The ATXMEGA256A3BU-MH drives building-automation HVAC controllers because its 34 programmable I/Os handle multiple 24 V triac outputs (via opto-isolators) and NTC/PTC thermistor inputs through the dual 12-bit ADC. The event system routes timer events directly to PWM and ADC peripherals, keeping the CPU idle most of the time and reducing average active current below 5 mA. With 256 KB Flash it runs BACnet MS-TP or Modbus RTU stacks plus PID loop code; the AES engine secures KNX/IP or BACnet/SC traffic. The 32-bit RTC with VBAT preserves schedules and trend logs during brownouts. Compared to ARM Cortex-M0 alternatives, the AVR XMEGA gives better deterministic interrupt latency for safety-critical fan and damper control.
Recommended
Low-Power Wireless Sensor Node
The ATXMEGA256A3BU-MH acts as the host MCU for low-power wireless sensor nodes (LoRa, Zigbee, sub-GHz proprietary) because its picoPower sleep modes drop below 1 µA while the event system wakes it on RTC, ADC, or external interrupts. Its 256 KB Flash hosts the radio stack plus application code, and the 4 KB EEPROM stores network credentials and calibration data. The 32-bit RTC plus VBAT keeps node timestamps accurate across battery swaps. Driving a SX1276 LoRa transceiver via SPI, the MCU spends most of its life in Power-Save mode, waking only to sample sensors and transmit. Compared with bare ATmega328P designs, the XMEGA's DMA and event system reduce active time by ~40%, extending battery life in coin-cell nodes.
Recommended
USB Embedded Host / Device Peripheral
The ATXMEGA256A3BU-MH serves USB embedded host or device peripherals because it integrates a full-speed USB 2.0 controller with on-chip transceiver and 256 KB Flash to hold CDC, HID, MSD, or vendor class stacks. The 16 KB SRAM is sufficient for USB descriptors plus HID report buffers, and the 12-bit DAC generates analogue audio for USB speakers/headsets. The 32-bit RTC timestamps USB log entries during host enumeration failures, and VBAT keeps USB enumeration tokens alive through plug glitches. Compared to ATmega32U2 designs, the XMEGA's 8-channel event system provides deterministic USB SOF timing without CPU load. This makes it ideal for industrial USB instruments, custom HID controllers, and USB mass-storage bridges.
Recommended
Motor Control and BLDC Driver Front-End
The ATXMEGA256A3BU-MH drives BLDC and stepper motors because its 16-bit PWM timers and event system generate centre-aligned PWM at up to 32 MHz with hardware dead-time insertion, while the dual 12-bit ADC simultaneously samples phase currents and back-EMF. The 256 KB Flash holds sensorless or encoder-based FOC algorithms; the AES engine secures factory calibration tables. Compared with an STM32 + gate-driver stack, the AVR XMEGA's deterministic interrupt latency and single-cycle 16-bit ALU simplify the commutation loop. The 32-bit RTC logs motor run hours and fault timestamps even when the main DC bus drops. This makes the MCU a strong fit for pumps, fans, e-bike controllers, and small industrial servos requiring predictable real-time control.
Recommended
Recommended Products Summary
Engineering reference data for ATXMEGA256A3BU-MH — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | ATXMEGA256A3BU-MHR | ATXMEGA128A3BU-MH | ATXMEGA64A3BU-MH | ATXMEGA192A3BU-MH | ATXMEGA128A4U-AUR |
|---|---|---|---|---|---|---|
| Package | 64-pin QFN (9x9 mm) | 64-pin QFN (9x9 mm) - same | 64-pin QFN (9x9 mm) - same | 64-pin QFN (9x9 mm) - same | 64-pin QFN (9x9 mm) - same | 64-pin QFN (9x9 mm) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Flash | 256 KB | 256 KB | 128 KB (-50%) | 64 KB (-75%) | 192 KB (-25%) | 128 KB (-50%) |
| SRAM | 16 KB | 16 KB | 8 KB | 4 KB | 16 KB | 8 KB |
| Maximum Clock | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz | 32 MHz |
| Supply Voltage | 2.7 V to 3.6 V | 2.7 V to 3.6 V | 2.7 V to 3.6 V | 2.7 V to 3.6 V | 2.7 V to 3.6 V | 2.7 V to 3.6 V |
| VBAT / 32-bit RTC | Yes | Yes | Yes | Yes | Yes | No (A4U family lacks VBAT) |
| USB | Yes (Full-Speed) | Yes (Full-Speed) | Yes (Full-Speed) | Yes (Full-Speed) | Yes (Full-Speed) | Yes (Full-Speed, USB 2.0 FS) |
| Param Match (%) | 100 | 100 | 80 | 70 | 90 | 70 |
Key Differentiators
- Only A3BU family member with 256 KB Flash plus 32-bit RTC VBAT backup in 64-pin QFN (vs ATXMEGA128A3BU-MH)
- Larger SRAM than smaller A3BU siblings (vs ATXMEGA64A3BU-MH)
- Battery Backup System unavailable on A4U family (vs ATXMEGA128A4U-AUR)
Design Notes
Place a 100 nF ceramic decoupling capacitor within 3 mm of every VCC pin and a single 4.7 µF bulk cap on the main 3.3 V rail. The VBAT pin (PF5) requires its own 100 nF cap plus a series resistor per the Microchip ATxmega256A3BU datasheet, and should be tied to a coin cell or supercap that can sustain the 32-bit RTC through main-battery removal. Estimated: a typical CR2032 supplies ~1 µA RTC load for >5 years.
The 64-pin QFN exposed thermal pad (pin 64) must be soldered to a continuous ground pour with at least 8 thermal vias (0.3 mm drill, 0.5 mm pitch) stitching to the inner ground plane. Without this, junction temperature can rise 20-30 C above ambient at full 32 MHz CPU load, reducing long-term reliability. Also reserve a 2x3 (or 1x6) 0.1 inch header footprint for the PDI programming/debug interface, since QFN cannot be socketed for production programming.
Do not exceed 3.6 V on VCC or AVCC; the MCU has no 5 V tolerance on any GPIO. When migrating from ATxmega256A3U to A3BU code, remove USART/SPI peripheral initialization on PE6/PE7 because the A3BU reuses these pins for TOSC2/TOSC1 (32.768 kHz RTC crystal), per Microchip support article Differences-between-ATxmega256A3U-and-ATxmega256A3BU-devices. Bootloader entry must use the PDI command sequence, not the legacy ISP.
Route the 32.768 kHz crystal traces on TOSC1/TOSC2 with short, symmetric traces (<5 mm) and guard them with a ground ring; place load capacitors (typically 12 pF) within 2 mm of each pin. Long, asymmetric traces cause RTC drift of several seconds per day. The PDI clock and data lines should be length-matched and routed away from switching nodes (PWM, USB D+/D-) to avoid programming glitches.
Compliance Information
RoHS and REACH compliant per Microchip product page. Not AEC-Q100 qualified (industrial-grade only); for automotive designs use a Microchip ATSAM automotive part. Halogen-free and lead-free packaging confirmed by Microchip material declarations.