2.10. Core Supply Regulator

RP2040 includes an on-chip voltage regulator, allowing the digital core supply (DVDD) to be generated from an external, nominally 1.8V to 3.3V, power supply. In most cases, the regulator's input supply will share an external power source with the chip's digital IO supply IOVDD, simplifying the overall power supply requirements.

To allow the chip to start up, the voltage regulator is enabled by default and will power-on as soon as its input supply is available. Once the chip is out of reset, the regulator can be disabled, placed into a high impedance state, or have its output voltage adjusted, under software control. The output voltage can be set in the range 0.80V to 1.30V in 50mV steps, but is set to a nominal 1.1V at initial power-on, or after a reset event. The voltage regulator can supply up to 100mA.

Although intended to provide the chip's digital core supply (DVDD), the voltage regulator can be used for other purposes if DVDD is powered directly from an external power supply.

2.10.1. Application Circuit

Figure 20. voltage regulator application circuit

Schematic diagram of the voltage regulator application circuit. A 1.8V to 3.3V supply is connected to the VREG_VIN pin. A 1µF capacitor is connected between VREG_VIN and GND. The VREG_VOUT pin is connected to the DVDD pin. A 100nF capacitor is connected between DVDD and GND. The VREG_VOUT pin is also connected to a 1µF capacitor to GND. The DVDD pin is connected to a 100nF capacitor to GND.
Schematic diagram of the voltage regulator application circuit. A 1.8V to 3.3V supply is connected to the VREG_VIN pin. A 1µF capacitor is connected between VREG_VIN and GND. The VREG_VOUT pin is connected to the DVDD pin. A 100nF capacitor is connected between DVDD and GND. The VREG_VOUT pin is also connected to a 1µF capacitor to GND. The DVDD pin is connected to a 100nF capacitor to GND.

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

2.10.2. Operating Modes

The voltage regulator operates in one of three modes. The mode to be used being selected by writing to the EN and HIZ fields in the VREG register, as shown in Table 187. At initial power-on, or following a reset event, the voltage regulator will be in Normal Operation mode.

Table 187. Voltage Regulator Mode Select

ModeENHIZ
Normal Operation a10
High Impedance11
Shutdown0X

a the voltage regulator will be in normal mode at initial power-on or following a reset event

2.10.2.1. Normal Operation Mode

In Normal Operation mode, the voltage regulator’s output is in regulation at the selected voltage, and the regulator is able to supply power.

2.10.2.2. High Impedance Mode

In High Impedance mode, the voltage regulator is disabled and its output pin (VREG_VOUT) is set to a high impedance state. In this mode, the regulator’s power consumption is minimised. This mode allows a load connected to VREG_VOUT to be powered from a power source other than the on-chip regulator. This could allow, for example, the load to be initially powered from the on-chip voltage regulator, and then switched to an external regulator under software control. The external regulator would also need to support a high impedance mode, with only one regulator supplying the load at a time. The supply voltage is maintained by the regulator’s output capacitor during the brief period when both regulators are in high impedance mode.

2.10.2.3. Shutdown Mode

In Shutdown mode, the voltage regulator is disabled, power consumption is minimized and the regulator's output pin (VREG_VOUT) is pulled to 0V.

Shutdown mode is only useful if the voltage regulator is not providing the RP2040's digital core supply (DVDD). If the regulator is supplying DVDD, and brown-out detection is enabled, entering shutdown mode will cause a reset event and the voltage regulator will return to normal mode. If brown-out detection isn't enabled, the voltage regulator will shut down and will remain in shutdown mode until its input supply (VREG_VIN) is power cycled.

2.10.3. Output Voltage Select

The required output voltage can be selected by writing to the VSEL field in the VREG register. The voltage regulator's output voltage can be set in the range 0.80V to 1.30V in 50mV intervals. The regulator output voltage is set to 1.1V at initial power-on or following a reset event. For details, see the VREG register description.

Note that RP2040 may not operate reliably with its digital core supply (DVDD) outside of operating conditions (see Section 5.6 ); it is recommended to set the regulator to 1.10V for most applications.

2.10.4. Status

The VREG register contains a single status field, ROK , which indicates whether the voltage regulator's output is being correctly regulated.

At power on, ROK remains low until the regulator has started up and the output voltage reaches the ROK assertion threshold ( ROK TH.ASSERT ). It then remains high until the voltage drops below the ROK deassertion threshold ( ROK TH.DEASSERT ), remaining low until the output voltage is above the assertion threshold again. ROK TH.ASSERT is nominally 90% of the selected output voltage, 0.99V if the selected output voltage is 1.1V, and ROK TH.DEASSERT is nominally 87% of the selected output voltage, 0.957V if the selected output voltage is 1.1V.

Note that adjusting the output voltage to a higher voltage will cause ROK to go low until the assertion threshold for the higher voltage is reached. ROK will also go low if the regulator is placed in high impedance mode.

2.10.5. Current Limit

The voltage regulator includes a current limit to prevent the load current exceeding the maximum rated value. The output voltage will not be regulated and will drop below the selected value when the current limit is active.

2.10.6. List of Registers

The voltage regulator shares a register address space with the chip-level reset subsystem. The registers for both subsystems are listed here. Only, the VREG register is part of the voltage register subsystem. The BOD and CHIP_RESET registers are part of the chip-level reset subsystem. The shared address space is referred to as vreg_and_chip_reset elsewhere in this document.

The VREG_AND_CHIP_RESET registers start at a base address of 0x40064000 (defined as VREG_AND_CHIP_RESET_BASE in SDK).

Table 188. List of VREG_AND_CHIP_RESET registers

OffsetNameInfo
0x0VREGVoltage regulator control and status
0x4BODbrown-out detection control
0x8CHIP_RESETChip reset control and status

VREG_AND_CHIP_RESET: VREG Register

Offset: 0x0

Description

Voltage regulator control and status

Table 189. VREG Register

BitsDescriptionTypeReset
31:13Reserved.--
12ROK : regulation status
0=not in regulation, 1=in regulation
RO0x0
11:8Reserved.--
7:4VSEL : output voltage select
0000 to 0101 - 0.80V
0110 - 0.85V
0111 - 0.90V
1000 - 0.95V
1001 - 1.00V
1010 - 1.05V
1011 - 1.10V (default)
1100 - 1.15V
1101 - 1.20V
1110 - 1.25V
1111 - 1.30V
RW0xb
3:2Reserved.--
1HIZ : high impedance mode select
0=not in high impedance mode, 1=in high impedance mode
RW0x0
0EN : enable
0=not enabled, 1=enabled
RW0x1

VREG_AND_CHIP_RESET: BOD Register

Offset: 0x4

Description

brown-out detection control

Table 190. BOD Register

BitsDescriptionTypeReset
31:8Reserved.--
BitsDescriptionTypeReset
7:4VSEL : threshold select
0000 - 0.473V
0001 - 0.516V
0010 - 0.559V
0011 - 0.602V
0100 - 0.645V
0101 - 0.688V
0110 - 0.731V
0111 - 0.774V
1000 - 0.817V
1001 - 0.860V (default)
1010 - 0.903V
1011 - 0.946V
1100 - 0.989V
1101 - 1.032V
1110 - 1.075V
1111 - 1.118V
RW0x9
3:1Reserved.--
0EN : enable
0=not enabled, 1=enabled
RW0x1

VREG_AND_CHIP_RESET: CHIP_RESET Register

Offset: 0x8

Description

Chip reset control and status

Table 191.
CHIP_RESET Register

BitsDescriptionTypeReset
31:25Reserved.--
24PSM_RESTART_FLAG : This is set by psm_restart from the debugger. Its purpose is to branch bootcode to a safe mode when the debugger has issued a psm_restart in order to recover from a boot lock-up. In the safe mode the debugger can repair the boot code, clear this flag then reboot the processor.WC0x0
23:21Reserved.--
20HAD_PSM_RESTART : Last reset was from the debug portRO0x0
19:17Reserved.--
16HAD_RUN : Last reset was from the RUN pinRO0x0
15:9Reserved.--
8HAD_POR : Last reset was from the power-on reset or brown-out detection blocksRO0x0
7:0Reserved.--

2.10.7. Detailed Specifications

Table 192. Voltage Regulator Detailed Specifications

ParameterDescriptionMinTypMaxUnits
\( V_{VREG\_VIN} \)input supply voltage1.631.8 - 3.33.63V
\( \Delta V_{VREG\_VOUT} \)output voltage variation-3+3% of selected output voltage
\( I_{MAX} \)output current100mA
\( I_{LIMIT} \)current limit150350450mA
\( ROK_{TH.ASSERT} \)ROK assertion threshold879093% of selected output voltage
\( ROK_{TH.DEASSERT} \)ROK deassertion threshold848790% of selected output voltage
\( t_{POWER-ON}^a \)power-up time275350\( \mu s \)

a values will vary with load current and capacitance on VREG_VOUT. Conditions: EN = 1, load current = 0mA, VREG_VIN ramps up in 100 \( \mu s \)