RP2040 vs ATmega328P

The same measures, side by side. A dot marks the stronger figure where two numbers can be ranked.

Raspberry Pi LtdRP2040Raspberry Pi's first microcontroller. Two Cortex-M0+ cores, generous memory and programmable IO in a 7 mm package.
Microchip (Atmel)ATmega328PThe 8-bit chip at the heart of the Arduino Uno. Simple, well understood, and happy on 5 V.
Core and memory
ArchitectureArm Cortex-M0+AVR, 8-bit
Cores2 (stronger)1
Max clock133 MHz (stronger)20 MHz
RAM264 kB (stronger)2 kB
On-chip flashNone32 kB
External flashUp to 16 MB, QSPINone
Connectivity
WirelessNoneNone
USB1.1 host or deviceNone
Inputs and outputs
GPIO pins30 (stronger)23
ADC4 inputs, 12-bit8 inputs, 10-bit
UART21
SPI22 (one through the UART)
I2C21
PWM16 channels (stronger)6 channels
Programmable IO8 state machinesNone
Power
Supply1.8–3.3 V1.8–5.5 V
Deepest sleep0.18 mA typical0.1 µA at 1.8 V (stronger)
Temperature−40 to +85 °C−40 to +105 °C
Package
PackageQFN-56TQFP-32
Body7 × 7 mm7 × 7 mm
Space on the board7 × 7 mm9 × 9 mm
Pin pitch0.4 mm0.8 mm
Released2021No data

Swap sides