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