Skip to main content

We use cookies to understand how you use our site and improve your experience. See our Privacy Policy.

RP2040B1

Microcontroller

The RP2040B1 is a microcontroller from Raspberry Pi. View the full RP2040B1 datasheet below including key specifications, electrical characteristics, absolute maximum ratings.

RP2040B1 shares its datasheet with RP2040.C, whose page lists every part number it covers.

Official RP2040B1 datasheet (PDF) — the source this page was extracted from.

RP2040B1 Key Specifications

ParameterValue
ADC (Bit)12bit
Core Size32 Bit
CPU CoreARM Cortex-M0+
CPU Maximum Speed133MHz
Number of I/O30
Operating Temperature-20℃~+85℃ °C
Oscillator TypeBuilt-in+External
Program Memory TypeExternal
Supply Voltage1.8V~3.3V

RP2040B1 Overview

Part: RP2040 — Raspberry Pi (Trading) Ltd.

Type: Microcontroller

Description: Low-cost, high-performance microcontroller featuring dual ARM Cortex-M0+ processors running up to 133 MHz, 264 KB on-chip SRAM, and support for up to 16 MB off-chip Flash memory.

Operating Conditions:

  • Supply voltage: 1.8–3.3 V (IOVDD)
  • Max CPU frequency: Up to 133 MHz

Absolute Maximum Ratings:

  • Max supply voltage: 3.63 V (IOVDD)

Key Specs:

  • Processor: Dual ARM Cortex-M0+
  • Max CPU frequency: 133 MHz
  • On-chip SRAM: 264 KB
  • Max off-chip Flash support: 16 MB
  • GPIO pins: 30 multi-function
  • ADC: 4-channel, 12-bit
  • DMA channels: 8
  • PIO state machines: 8

Features:

  • Dual ARM Cortex-M0+ processors
  • 264KB on-chip SRAM
  • Support for up to 16MB off-chip Flash
  • DMA controller
  • 2 × SPI, 2 × I2C, 2 × UART
  • 16 × PWM channels
  • USB 1.1 Host/Device controller and PHY
  • 8 × Programmable I/O (PIO) state machines
  • 4-channel 12-bit ADC with internal temperature sensor
  • Low-power sleep and dormant modes
  • On-chip voltage regulator
  • Accurate on-chip clock
  • 30 multi-function GPIO pins

Package:

RP2040B1 Features

The ARM Cortex-M0+ processor features and benefits are:

  • Tight integration of system peripherals reduces area and development costs.

  • Thumb instruction set combines high code density with 32-bit performance.

  • Support for single-cycle I/O access.

  • Power control optimization of system components.

  • Integrated sleep modes for low-power consumption.

  • Fast code execution enables running the processor with a slower clock or increasing sleep mode time.

  • Optimized code fetching for reduced flash and ROM power consumption.

  • Hardware multiplier.

  • Deterministic, high-performance interrupt handling for time-critical applications.

  • Deterministic instruction cycle timing.

  • Support for system level debug authentication.

  • Serial Wire Debug reduces the number of pins required for debugging.

RP2040B1 Pin Configuration

NameDescription
GPIOxGeneral-purpose digital input and output. RP2040 can connect one of a number of internal peripherals to each GPIO, or control GPIOs directly from software.
GPIOx/ADCyGeneral-purpose digital input and output, with analogue-to-digital converter function. The RP2040 ADC has an analogue multiplexer which can select any one of these pins, and sample the voltage.
QSPIxInterface to a SPI, Dual-SPI or Quad-SPI flash device, with execute-in-place support. These pins can also be used as software-controlled GPIOs, if they are not required for flash access.
USB_DM and USB_DPUSB controller, supporting Full Speed device and Full/Low Speed host. A 27Ω series termination resistor is required on each pin, but bus pullups and pulldowns are provided internally.
XIN and XOUTConnect a crystal to RP2040's crystal oscillator. XIN can also be used as a single-ended CMOS clock input, with XOUT disconnected. The USB bootloader requires a 12 MHz crystal or 12 MHz clock input.
RUNGlobal asynchronous reset pin. Reset when driven low, run when driven high. If no external reset is required, this pin can be tied directly to IOVDD.
SWCLK and SWDIOAccess to the internal Serial Wire Debug multi-drop bus. Provides debug access to both processors, and can be used to download code.
TESTENFactory test mode pin. Tie to GND.
GNDSingle external ground connection, bonded to a number of internal ground pads on the RP2040 die.
IOVDDPower supply for digital GPIOs, nominal voltage 1.8 V to 3.3 V

Table 1. The function of each pin is briefly described here. Full electrical specifications can be found in Chapter 5.

Table 2. General Purpose Input/Output (GPIO) Bank 0 Functions

NameDescription
USB_VDDPower supply for internal USB Full Speed PHY, nominal voltage 3.3 V
ADC_AVDDPower supply for analogue-to-digital converter, nominal voltage 3.3 V
VREG_VINPower input for the internal core voltage regulator, nominal voltage 1.8 V to 3.3 V
VREG_VOUTPower output for the internal core voltage regulator, nominal voltage 1.1 V, 100 mAmax current
DVDDDigital core power supply, nominal voltage 1.1 V. Can be connected to VREG_VOUT, or to some other board-level power supply.

RP2040B1 Electrical Characteristics

ParameterSymbolMinimumMaximumUnitsComment
Pin Input Leakage CurrentI IN1μ A
Input Voltage High @IOVDD=1.8VV IH0.65 * IOVDDIOVDD + 0.3V
Input Voltage High @IOVDD=2.5VV IH1.7IOVDD + 0.3V
Input Voltage High @IOVDD=3.3VV IH2IOVDD + 0.3V
Input Voltage Low @IOVDD=1.8VV IL-0.30.35 * IOVDDV

characteristics

ParameterSymbolMinimumMaximumUnitsComment
Input Voltage Low @IOVDD=2.5VV IL-0.30.7V
Input Voltage Low @IOVDD=3.3VV IL-0.30.8V
Input Hysteresis Voltage@ IOVDD=1.8VV HYS0.1 * IOVDDVSchmitt Trigger enabled
Input Hysteresis Voltage@ IOVDD=2.5VV HYS0.2VSchmitt Trigger enabled
Input Hysteresis Voltage@ IOVDD=3.3VV HYS0.2VSchmitt Trigger enabled
Output Voltage High@ IOVDD=1.8VV OH1.24IOVDDVI OH = 2, 4, 8 or 12mA depending on setting
Output Voltage High@ IOVDD=2.5VV OH1.78IOVDDVI OH = 2, 4, 8 or 12mA depending on setting
Output Voltage High@ IOVDD=3.3VV OH2.62IOVDDVI OH = 2, 4, 8 or 12mA depending on setting
Output Voltage Low@ IOVDD=1.8VV OL00.3VI OL = 2, 4, 8 or 12mA depending on setting
Output Voltage Low@ IOVDD=2.5VV OL00.4VI OL = 2, 4, 8 or 12mA depending on setting
Output Voltage Low@ IOVDD=3.3VV OL00.5VI OL = 2, 4, 8 or 12mA depending on setting
Pull-Up ResistanceR PU5080kΩ
Pull-Down ResistanceR PD5080kΩ
Maximum Total IOVDD currentI IOVDD_MAX50mASum of all current being sourced by GPIO and QSPI pins
Maximum Total VSS current due to IO (IOVSS)I IOVSS_MAX50mASum of all current being sunk into GPIO and QSPI pins
ParameterSymbolMinimumMaximumUnitsComment
Pin Input Leakage CurrentI IN1μ A

Table 633. Oscillator pin characteristics when using a Square Wave input

ParameterSymbolMinimumMaximumUnitsComment
Single Ended Input Voltage HighV IHSE2V
Single Ended Input Voltage LowV ILSE0.8V
Differential Input Voltage HighV IHDIFF0.2V
Differential Input Voltage LowV ILDIFF-0.2V
Output Voltage HighV OH2.8USB_VDDV
Output Voltage LowV OL00.3V
Pull-Up Resistance - RPU2R PU20.8731.548kΩ
Pull-Up Resistance - RPU1&2R PU1&21.3983.063kΩ
Pull-Down ResistanceR PD14.2515.75kΩ
ParameterSymbolMinimumMaximumUnitsComment
ADC Input Voltage RangeV PIN_ADC0ADC_AVDDV
Effective Number of BitsENOB9bitsSimulated
Resolved Bits12bits
ADC Input ImpedanceR IN_ADC100kΩ
ParameterSymbolMinimumMaximumUnitsComment
Input Voltage HighV IH0.65*IOVDDIOVDD + 0.3VXIN only. XOUT floating
Input Voltage LowV IL00.35*IOVDDVXIN only. XOUT floating

See Section 2.16 for more details on the Oscillator, and Minimal Design Example for information on crystal usage.

RP2040B1 Absolute Maximum Ratings

ParameterSymbolMinimumMaximumUnitsComment
I/O Supply VoltageIOVDD-0.53.63V
Voltage at IOV PIN-0.5IOVDD + 0.5V

RP2040B1 Thermal Information

ParameterSymbolMinimumTypicalMaximumUnitsComment
CaseT C-2085°C
Temperature

RP2040B1 Typical Application

The regulator must have 1 μ F capacitors placed close to its input (VREG_VIN) and output (VREG_VOUT) pins.

Variants on the same datasheet

These parts have exact links to the same datasheet. They are candidates to compare, not verified drop-in replacements; check package, pinout and electrical limits.

Part NumberManufacturerPackage
RP2040Raspberry PiQFN-56
RP2040-E1Raspberry Pi—
RP2040-E10Raspberry Pi—
RP2040-E2Raspberry Pi—
RP2040-E3Raspberry Pi—
RP2040-E4Raspberry Pi—
RP2040-E5Raspberry Pi—
RP2040-E6Raspberry Pi—
RP2040-E7Raspberry Pi—
RP2040-E8Raspberry Pi—
RP2040-E9Raspberry Pi—
RP2040.CRaspberry PiQFN-56
RP2040/DCDRaspberry Pi—
RP2040/HCDRaspberry Pi—
RP2040B0Raspberry Pi—
RP2040E2Raspberry Pi—

Other Microcontrollers (MCU)

  • STM32F407VET6 – STMicroelectronics, ARM Cortex-M4 MCU
  • STM32H743VIT6 – STMicroelectronics, Microcontroller Unit (MCU)
  • ESP32-S31NRV32 – Espressif Systems, Wi-Fi 6 / Bluetooth 5.4 / 802.15.4 Wireless SoC (RISC-V MCU)
  • RP2040 – Raspberry Pi, Microcontroller
  • STM32L011F4U6 – STMicroelectronics, Ultra-low-power Arm Cortex-M0+ MCU
  • NRF52840-QIAA-R7 – Nordic Semiconductor, Wireless Microcontroller
  • STM32U575RIT6 – STMicroelectronics, Ultra-low-power Arm Cortex-M33 32-bit MCU
  • GD32F103C8T6 – GigaDevice, Arm Cortex-M3 32-bit MCU

All Microcontrollers (MCU) datasheetsAll Raspberry Pi datasheets (26)

Data on this page is extracted from publicly available manufacturer datasheets using automated tools including AI. It may contain errors or omissions. Always verify specifications against the official manufacturer datasheet before making design or purchasing decisions. See our Terms of Service. Rights holders can submit a takedown request.

Ask your AI agent about the RP2040B1

Connect SheetsData to Claude, Cursor, Codex or any MCP client and your agent reads this datasheet for you: pinout, limits, register maps and design checks, with the numbers taken from the PDF.

claude mcp add --transport http sheetsdata https://mcp.sheetsdata.com/mcp

Then ask: "Can the RP2040B1 run from my 12 V rail? Check it against the datasheet limits."

Create a free account $2 of usage every month, no card needed.