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 | ||
| Architecture | Arm Cortex-M0+ | AVR, 8-bit |
| Cores | 2 (stronger) | 1 |
| Max clock | 133 MHz (stronger) | 20 MHz |
| RAM | 264 kB (stronger) | 2 kB |
| On-chip flash | None | 32 kB |
| External flash | Up to 16 MB, QSPI | None |
| Connectivity | ||
| Wireless | None | None |
| USB | 1.1 host or device | None |
| Inputs and outputs | ||
| GPIO pins | 30 (stronger) | 23 |
| ADC | 4 inputs, 12-bit | 8 inputs, 10-bit |
| UART | 2 | 1 |
| SPI | 2 | 2 (one through the UART) |
| I2C | 2 | 1 |
| PWM | 16 channels (stronger) | 6 channels |
| Programmable IO | 8 state machines | None |
| Power | ||
| Supply | 1.8–3.3 V | 1.8–5.5 V |
| Deepest sleep | 0.18 mA typical | 0.1 µA at 1.8 V (stronger) |
| Temperature | −40 to +85 °C | −40 to +105 °C |
| Package | ||
| Package | QFN-56 | TQFP-32 |
| Body | 7 × 7 mm | 7 × 7 mm |
| Space on the board | 7 × 7 mm | 9 × 9 mm |
| Pin pitch | 0.4 mm | 0.8 mm |
| Released | 2021 | No data |