# RP2040: dual Cortex-M0+ at 133 MHz, 264 kB SRAM, 8 PIO state machines

> The Raspberry Pi RP2040 chip behind the Pico: cores, memory, GPIO, PWM, ADC, USB and programmable I/O, from the datasheet.

Canonical: https://roboticsengineering.in/components/rp2040-microcontroller/ | Published: 2026-11-03 | Updated: 2026-11-03

**The RP2040 is a dual-core Arm Cortex-M0+ microcontroller running at 133 MHz with 264 kB of on-chip SRAM, 30 GPIO pins, 16 PWM channels and 8 programmable I/O (PIO) state machines.** It is the chip on the Raspberry Pi Pico family, including the [Pico W](https://roboticsengineering.in/components/raspberry-pi-pico-w/). Figures are from the Raspberry Pi RP2040 datasheet.

## Key specifications

| CPU | dual Cortex-M0+, 133 MHz |
| --- | --- |
| SRAM | 264 kB |
| GPIO | 30 (4 analogue inputs) |
| PWM | 16 channels |
| ADC | 12-bit, 500 ksps, 4 channels |
| USB | 1.1 host and device |
| PIO | 8 state machines |

## What the datasheet promises

| Item | Datasheet value |
| --- | --- |
| Processor | Dual Arm Cortex-M0+, up to 133 MHz (or 200 MHz at 1.15 V, see the datasheet) |
| Memory | 264 kB of on-chip SRAM in six banks; up to 16 MB of off-chip flash over QSPI |
| GPIO | 30 multifunction pins, 4 of which can be analogue inputs |
| Serial buses | 2 UARTs, 2 SPI controllers, 2 I2C controllers |
| PWM | 16 channels |
| ADC | 12-bit, 500 ksps, 4 channels plus an internal temperature sensor |
| USB | USB 1.1 controller and PHY, host and device |
| Programmable I/O | 8 PIO state machines for custom interfaces |
| Other blocks | DMA controller, interpolator, integer divider, 2 PLLs, on-chip programmable LDO for the core voltage |
| Process | 40 nm |

The chip has no radio and no on-chip flash: a board adds the flash chip and, on the Pico W, the wireless module. The PIO state machines are what set it apart; they let you build interfaces such as extra UARTs, LED strip drivers or encoder readers that run beside the main code.

## Using it on a robot

- Use the 16 PWM channels for motor drivers and servos from one chip.
- Use a PIO state machine to read a quadrature encoder or drive an addressable LED strip without using CPU time.
- Check the I/O voltage in the datasheet before connecting 5 V sensors, and use a level shifter such as the [TXS0108E](https://roboticsengineering.in/components/txs0108e-level-shifter/) where needed.
- For built-in Wi-Fi and Bluetooth, use an ESP32 board such as the [ESP32-C3](https://roboticsengineering.in/components/esp32-c3-soc/).

## Sources and further reading

- [Raspberry Pi RP2040 datasheet](https://pip-assets.raspberrypi.com/categories/814-rp2040/documents/RP-008371-DS-1-rp2040-datasheet.pdf) — processor, memory, GPIO, peripherals and PIO above.

Last reviewed: November 2026. Limits are from the Raspberry Pi datasheet for the chip; boards add their own flash, regulator and pin choices. No price is quoted because it has not been checked.
