Need Help? +44 (0) 123 4567
You can add your content here.

ATMEGA128A-AU, 10 bit 16 MHz megaAVR Microcontroller, TQFP-64

$2.2500
In stock
SKU
S2-0018
Volume discounts:
  • +50 4 % $2.1600
  • +100 6 % $2.1100
  • +300 8 % $2.0700
  • +500 10 % $2.0200
  • +1000 12 % $1.9800
Ships in 2-3 business days, then:
Free delivery in 12-15 days by Tracked Economic Shipping on orders over $100.
Free delivery in 7-10 days by Express Shipping on orders over $300.
More shipping info
Shop with confidence Learn More
CH559T Microcontroller Previous CH559T Microcontroller

ATMEGA128A-AU 8-bit AVR Microcontroller — TQFP-64

ATMEGA128A-AU is a Microchip (formerly Atmel) megaAVR 8-bit microcontroller in a surface-mount TQFP-64 package with 128 KB of program Flash. With 53 GPIOs, two USARTs, a 10-bit ADC and flexible timers, it suits control and measurement boards. The 16 MHz figure is a maximum clock rating; actual clock operation depends on supply and configuration.

Specifications of ATMEGA128A-AU 8-bit AVR Microcontroller (TQFP-64)

  • Core: 8-bit AVR enhanced RISC
  • Clock: up to 16 MHz, subject to voltage and clock configuration
  • Program Flash: 128 KB
  • SRAM: 4 KB; EEPROM: 4 KB
  • General-purpose I/O: 53 pins
  • ADC: 10-bit, 8 channels in TQFP-64
  • Interfaces: two USARTs, SPI, TWI (I²C-compatible)
  • Timers: two 8-bit and two 16-bit timer/counters; six standalone PWM outputs per manufacturer summary
  • Operating supply: 2.7–5.5 V
  • Package: surface-mount TQFP-64 (nominal 14 × 14 mm body)
  • Features: JTAG, watchdog, brown-out detection and power-saving modes

Pinout and key pins

In TQFP-64, digital VCC is on pins 21 and 52, GND on pins 22, 53 and 63, AVCC on pin 64, and AREF on pin 62. RESET is pin 20; XTAL2 and XTAL1 are pins 23 and 24. Confirm pin-1 orientation and the official package drawing before PCB fabrication.

For authoritative pin mapping, consult the official Microchip complete datasheet.

ATmega128A-AU TQFP-64 top-view numbered pinout diagram
ATmega128A-AU TQFP-64 top-view numbered pinout diagram

Power and PCB layout

Connect all VCC pins (21 and 52), all GND pins (22, 53 and 63), and AVCC (64) to their appropriate supply and ground nets as specified in the datasheet; connecting only one pin of each name is not sufficient. Place bypass capacitors close to the supply pins and keep ground returns short. AVCC must be supplied even if the ADC is unused; consider the manufacturer-recommended low-pass filter when using the ADC. Wire AREF according to the ADC reference selection.

For an adjustable linear supply option, see the AMS1117-ADJ regulator; verify voltage, load and thermal limits separately.

ATmega128A memory and peripheral architecture overview
ATmega128A memory and peripheral architecture overview

Clock and fuse bits

The 16 MHz rating is a maximum, not the default power-up clock. The permitted frequency depends on the supply voltage and the datasheet speed-versus-voltage characteristics; do not assume 16 MHz is supported at 3.3 V without checking that curve. Clock-source and startup options are configured through the device clock fuses. An incorrect clock-source setting can disrupt ISP access, so confirm the board clock before changing fuse bits.

ATmega128A VCC AVCC AREF RESET and oscillator wiring checklist
ATmega128A VCC AVCC AREF RESET and oscillator wiring checklist

Programming and debugging

Expose PDI, PDO, SCK, RESET, power and ground for in-system programming. Unlike normal SPI operation, the ATmega128A uses dedicated PDI/PDO pins for serial-programming data.

ATmega128A-specific ISP pin mapping: serial-programming data pins are not the same as the normal SPI MOSI/MISO pins. Use this TQFP-64 mapping:

Important: PB2/MOSI (pin 12) and PB3/MISO (pin 13) are normal-operation SPI pins, not the PDI/PDO pins used for serial programming. Match the ISP clock rate to the active target clock, and check PEN and programming-entry requirements in the official datasheet and programmer documentation.

JTAG supports programming and debugging.

Programmer signal ATmega128A-AU pin
MOSI → PDI PE0, pin 2
MISO ← PDO PE1, pin 3
SCK PB1, pin 11
RESET Pin 20
VCC / GND Connect to board supply and ground nets; all MCU supply and ground pins must be wired

PEN (pin 1) is a special serial-programming enable input with an internal pull-up. Holding it low during power-on reset can select serial programming, subject to the datasheet power-up and SCK timing requirements; it has no role during normal operation. Do not alter PEN wiring for a conventional RESET-based programmer without checking the specified sequence.

Manufacturer documentation is available on the official ATmega128A product page.

ATmega128A clock fuse configuration and ISP programming guide
ATmega128A clock fuse configuration and ISP programming guide

ADC and interfaces

The TQFP-64 device provides eight 10-bit ADC inputs on PF0–PF7 (pins 61 through 54). Supply and filter AVCC according to the datasheet; select the ADC reference using REFS settings and the AREF circuit. Do not attach an external reference without verifying the configuration. Close bypassing, suitable grounding and separation of analog traces from switching signals help limit measurement noise. Two hardware USARTs, SPI and TWI (the AVR two-wire I²C-compatible interface) are available.

ATmega128A eight-channel 10-bit ADC and analog PCB layout
ATmega128A eight-channel 10-bit ADC and analog PCB layout

Applications and ordering

This microcontroller suits control systems, measurement equipment and designs requiring many I/O pins. Verify the TQFP-64 footprint, pin-1 orientation and surface-mount assembly requirements. For production procurement, confirm the manufacturer order code and device specifications.

ATmega128A-AU hardware design verification checklist
ATmega128A-AU hardware design verification checklist

ATMEGA128A-AU troubleshooting

Symptom Recommended check
Programmer cannot detect MCU Check power, RESET, ISP wiring and clock/fuse settings.
ADC readings fluctuate Check AVCC, AREF, bypass capacitors and analog routing noise.
USART produces garbled data Verify the actual clock and baud-rate configuration.
Board fails after assembly Check pin-1 orientation, TQFP solder joints, all supply and ground pins.

Frequently asked questions about ATMEGA128A-AU

No. 16 MHz is a maximum rating; the startup clock depends on the programmed clock source and fuse bits.

Eight 10-bit ADC channels are available in the TQFP-64 package.

Yes, 3.3 V is within the supply range; check the datasheet speed-versus-voltage limits for your clock.

No. Follow the datasheet AVCC supply recommendations even when the ADC is not used.

SRAM is volatile working memory; EEPROM retains stored data without power.

Not always. It depends on the selected clock source and fuse settings.

TWI is the AVR two-wire interface compatible with I²C.

No. The AU variant on this page is a surface-mount TQFP-64 device.

Official technical references

More Information
PackageTQFP-64
PackagingTray
Operating Temperature Min-40 °C
Operating Temperature Max+85 °C
Number of Bits8-bit
ADC Resolution10-bit
Mounting TypeSMD/SMT
Components - TypeMicrocontroller
Maximum Clock Frequency16 MHz
Processor SeriesATmega
Datasheethttps://datasheet.lcsc.com/datasheet/pdf/493cbf4314044ea2ae5a12f41389694c.pdf?productCode=C6510
Minimum Supply Voltage2.7 V
Maximum Supply Voltage5.5 V
CPU CoreAVR
Program Memory TypeFlash
Program Memory Size128 KB
EEPROM Size4 KB
Number of I/O Pins53
Oscillator TypeInternal
Write Your Own Review
Write a ReviewATMEGA128A-AU, 10 bit 16 MHz megaAVR Microcontroller, TQFP-64
To Top
ATMEGA128A-AU, 10 bit 16 MHz megaAVR Microcontroller, TQFP-64
ATMEGA128A-AU, 10 bit 16 MHz megaAVR Microcontroller, TQFP-64
$2.2500
Wish List
Help
Shop
Account
0 Cart