ATmega328P vs RP2040

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

Microchip (Atmel)ATmega328PThe 8-bit chip at the heart of the Arduino Uno. Simple, well understood, and happy on 5 V.
Raspberry Pi LtdRP2040Raspberry Pi's first microcontroller. Two Cortex-M0+ cores, generous memory and programmable IO in a 7 mm package.
Core and memory
ArchitectureAVR, 8-bitArm Cortex-M0+
Cores12 (stronger)
Max clock20 MHz133 MHz (stronger)
RAM2 kB264 kB (stronger)
On-chip flash32 kBNone
External flashNoneUp to 16 MB, QSPI
Connectivity
WirelessNoneNone
USBNone1.1 host or device
Inputs and outputs
GPIO pins2330 (stronger)
ADC8 inputs, 10-bit4 inputs, 12-bit
UART12
SPI2 (one through the UART)2
I2C12
PWM6 channels16 channels (stronger)
Programmable IONone8 state machines
Power
Supply1.8–5.5 V1.8–3.3 V
Deepest sleep0.1 µA at 1.8 V (stronger)0.18 mA typical
Temperature−40 to +105 °C−40 to +85 °C
Package
PackageTQFP-32QFN-56
Body7 × 7 mm7 × 7 mm
Space on the board9 × 9 mm7 × 7 mm
Pin pitch0.8 mm0.4 mm
ReleasedNo data2021

Swap sides