Skip to main content

RP2040E2

Microcontroller

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

Manufacturer

Raspberry Pi

Category

Microcontroller

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:

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.

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.

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 PU5080
Pull-Down ResistanceR PD5080
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.548
Pull-Up Resistance - RPU1&2R PU1&21.3983.063
Pull-Down ResistanceR PD14.2515.75
ParameterSymbolMinimumMaximumUnitsComment
ADC Input Voltage RangeV PIN_ADC0ADC_AVDDV
Effective Number of BitsENOB9bitsSimulated
Resolved Bits12bits
ADC Input ImpedanceR IN_ADC100
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.

Absolute Maximum Ratings

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

Thermal Information

ParameterSymbolMinimumTypicalMaximumUnitsComment
CaseT C-2085°C
Temperature

Typical Application

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

Related Variants

The following components are covered by the same datasheet.

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 Pi
RP2040/DCDRaspberry Pi
RP2040/HCDRaspberry Pi
RP2040B0Raspberry Pi
RP2040B1Raspberry Pi
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.

Get structured datasheet data via API

Get started free