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

Microchip ATMEGA48P-20PU AVR 8-bit MCU, 20MHz, 4KB Flash

MPNATMEGA48P-20PU
Active

Microchip AVR® ATmega ATMEGA48P-20PU, 8-bit MCU, 20MHz, 4KB FLASH, 512B SRAM, 256B EEPROM, 28-DIP (0.300", 7.62mm), Through Hole, -40°C~85°C, 2.7V~5.5V.

$3.1100Ref. price · indicative, final on quote
Packaging28-DIP (0.300", 7.62mm)
RoHSROHS3 Compliant
SeriesAVR® ATmega
Independent supplier — new & surplus stockAuthenticity-screened · ESD-safe packingListing updated Jul 2026

Specifications

ATMEGA48P-20PU 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 size512 x 8
Core size8-Bit
EEPROM size256 x 8
PeripheralsBrown-out Detect/Reset, POR, PWM, WDT
ConnectivityI²C, SPI, UART/USART
Number of i (O)23
Core processorAVR
Case28-DIP (0.300\", 7.62mm)
Data convertersA/D 6x10b
Program memory size4KB (2K x 16)

Product details

This 28-pin DIP AVR — what it brings to a through-hole BOM

The Microchip ATMEGA48P-20PU is an 8-bit AVR microcontroller in a 28-pin PDIP package, running at 20 MHz with 4 KB of flash program memory. It carries 512 bytes of SRAM and 256 bytes of EEPROM, along with 23 general-purpose I/O lines.

20 MHz throughput — what the 1 MIPS per MHz means for loop timing

At 20 MHz this core executes most instructions in a single clock cycle, delivering roughly 20 MIPS. That is enough for a 10 kHz control loop with headroom for protocol handling and ADC reads.

4 KB flash and 512 bytes SRAM — sizing the firmware budget

The 4 KB flash (2K x 16) is the hard ceiling for compiled code. With 512 bytes of SRAM, look-at tables and interrupt contexts must be kept small. The 256 bytes of EEPROM can hold calibration constants or configuration bytes that survive power loss. If the application needs more than a few kilobytes of code or a moderate RAM buffer, stepping to the ATMEGA48's higher-density siblings in the same DIP footprint is the practical move.

Active lifecycle — no LTB concern for current builds

The base product number ATMEGA48 gives a clear path to pin-compatible upgrades (e.g., more flash) within the same AVR family if project requirements grow.

Through-hole PDIP — designed for hand-assembly and socketed prototyping

The 28-pin PDIP (0.300" row spacing) is a traditional through-hole package. It fits standard 0.1" protoboards, DIP sockets, and wave-solder lines. The wide pin pitch simplifies rework and makes this a go-to for one-off builds, educational kits, and legacy product maintenance where an SMT adapter would add cost.

Frequently asked questions

What is the difference between ATMEGA48P-20PU and ATMEGA48PA-PU?

The ATMEGA48PA-PU is a later revision of the same base MCU, with minor updates to the ADC and EEPROM timing characteristics. The 'P' variant (ATMEGA48P-20PU) is the picoPower version with improved power consumption. Both are pin-compatible in the same PDIP footprint, but the PA revision has slightly different calibration and timing specifications — check the respective datasheet errata before a direct swap without code review.

How to program the ATMEGA48P-20PU?

The ATMEGA48P-20PU supports In-System Programming (ISP) via the SPI interface using the standard AVR 6-pin header (MISO, MOSI, SCK, RESET, VCC, GND). It is also programmable with an AVR Dragon, AVRISP mkII, or any compatible SPI programmer. The internal oscillator is enabled by default, so no external clock is required to get started.

Can ATMEGA48P-20PU be used with Arduino?

Yes. The ATmega48P core is supported in the Arduino IDE as a target board. You can use an Arduino Uno or a dedicated AVR ISP programmer to upload sketches to the ATMEGA48P-20PU. Note that the 4 KB flash and 512-byte SRAM limit the sketch size compared to the larger ATmega328P used on a standard Uno.