Skip to main content
Microchip Technology ATMEGA164P-20PQ — Microcontrollers & Processors (MCU / MPU / DSP)

ATMEGA164P-20PQ AVR 8-bit MCU, 20 MHz, 16 KB Flash, 40-PDIP

MPNATMEGA164P-20PQ
Active

Microchip AVR® ATmega series, ATMEGA164P-20PQ, 8-bit MCU, 20 MHz, 16KB Flash, 1K x 8 SRAM, 512 x 8 EEPROM, 40-DIP, -40°C to 85°C, 2.7V to 5.5V.

$3.6800Ref. price · indicative, final on quote
Packaging40-DIP (0.600", 15.24mm)
SeriesAVR® ATmega
Independent supplier — new & surplus stockAuthenticity-screened · ESD-safe packingListing updated Jul 2026

Specifications

ATMEGA164P-20PQ specifications
ParameterValue
SeriesAVR® ATmega
MountingThrough Hole
Oscillator typeInternal
Program memory typeFLASH
Voltage - supply (Vcc (Vdd))2.7V ~ 5.5V
Operating temperature-40°C~85°C(TA)
Speed20MHz
PackageTube
RAM size1K x 8
Core size8-Bit
EEPROM size512 x 8
PeripheralsBrown-out Detect/Reset, POR, PWM, WDT
ConnectivityI²C, SPI, UART/USART
Number of i (O)32
Core processorAVR
Case40-DIP (0.600\", 15.24mm)
Data convertersA/D 8x10b
Program memory size16KB (8K x 16)

Product details

What this 40-pin DIP AVR brings to the bench

The Microchip ATMEGA164P-20PQ is an 8-bit AVR microcontroller in a through-hole 40-pin PDIP package — the kind you can socket, swap in the field, and program with a standard ISP header.

20 MHz core — timing margin for UART and SPI

At 20 MHz the core executes most AVR instructions in a single clock cycle, so a 115200 baud UART or a 10 MHz SPI bus has comfortable timing margin. If you are replacing a slower 8 MHz part in a panel, check that the Flash wait state configuration in the firmware matches the higher speed — the datasheet's application note covers the fuse settings.

Through-hole PDIP — field-swappable, no reflow station needed

The 40-pin PDIP (0.600" row spacing) is the same footprint used by the original ATmega164P and many legacy AVRs. It fits a standard DIP socket, so a repair tech can pull the old chip and seat this one with nothing more than a chip extractor and a thumb. No hot air, no solder paste, no risk of lifting a pad on a double-sided board. That is the whole point of this package variant.

Peripherals that cover the common jobs

Two-wire (I²C), SPI, and a full-duplex UART/USART handle the usual sensor and display links. Brown-out detect and POR keep the reset logic clean on a noisy 5 V rail. PWM outputs drive a small motor or dim an LED directly. For a single-loop controller or a serial-to-parallel bridge, this part has everything on-chip.

Active lifecycle — no end-of-life shadow

Microchip lists the ATMEGA164P-20PQ as Active. The base part number ATMEGA164 spans several speed and package variants, but this specific 20 MHz PDIP version has not been flagged for phase-out.

Frequently asked questions

Will the ATMEGA164P-20PQ drop into a board originally built with the ATTINY3224-XUR?

No — the ATTINY3224-XUR is a surface-mount 20-pin TSSOP device, while the ATMEGA164P-20PQ is a through-hole 40-pin PDIP. The pin count, package, and footprint are completely different; rewiring would be required.

What compliance documentation does Microchip provide for the ATMEGA164P-20PQ?

Microchip provides RoHS and REACH compliance declarations for this part. For UL or IEC certifications, check the device-specific datasheet or contact Microchip directly — the standard AVR ATmega family carries IEC 60730 Class B software library support, but hardware certification varies by variant.