9. Power control (PWR)

9.1 Introduction

The power controller manages all device power supplies and power modes transitions.

9.2 PWR main features

The power controller (PWR) main features are:

9.3 PWR pins and internal signals

Table 51. PWR input/output pins

Pin nameSignal typeDescription
VDDSupplyMain supply
GNDSupplyMain ground
VDDASupplyAnalog peripherals supply
VSSASupplyAnalog peripherals ground
VDDIO2SupplyIndependent I/O supply
VCAPSupplyLogic supply (\(V_{CORE}\))
VBATSupplyBackup domain supply
VREF+SupplyADC/DAC high reference voltage
VREF-SupplyADC/DAC low reference voltage
WKUPx (x = 1 to 5)InputWakeup pins
CSLEEPOutputMCU in Sleep mode
CSTOPOutputCPU in Stop modes

Table 52. PWR internal input/output signals

Internal signal nameSignal typeDescription
WKUPx (x = 1 to 5)InputWakeup event source

9.4 PWR power supplies and supply domains

Figure 20. Power supply overview with LDO

Figure 20: Power supply overview with LDO. Block diagram showing power supply domains including VDDA domain, VDDIO2 domain, VDD domain, VCORE domain, and Backup domain (VSW), with external connections VDDA, VSSA, VDDIO2, VSS, VDD, VCAP, VBAT, and internal LDO regulator.

MSv68848V3

Figure 20: Power supply overview with LDO. Block diagram showing power supply domains including VDDA domain, VDDIO2 domain, VDD domain, VCORE domain, and Backup domain (VSW), with external connections VDDA, VSSA, VDDIO2, VSS, VDD, VCAP, VBAT, and internal LDO regulator.

9.4.1 External power supplies

The devices require a 1.71 V to 3.6 V VDD operating voltage supply. Several independent supplies can be provided for specific peripherals. Those supplies must not be provided without a valid operating supply on the VDD pin:

Note: VDDIO2 pin is available only on some packages, for more information refer to the device datasheet.

9.4.2 Internal regulator

The devices embed an LDO regulator that aims to provide the \(V_{CORE}\) supply for digital peripherals, SRAMs (except BKPSRAM) and embedded flash memory.

The LDO generates this voltage on \(V_{CAP}\) (one or two pins depending on packages) with a total of the external capacitor of 4.7 μF typical. It can provide four different voltages (voltage scaling) and can operate in Stop modes.

The supply configurations shown in the figure below are supported for the \(V_{CORE}\) core domain supply.

Figure 21. System supply configurations

Figure 21: System supply configurations. The diagram shows two circuit configurations for the VCORE supply. Configuration 1, 'LDO Supply', shows VDD connected to a switch that feeds into a block labeled 'V reg (On)'. The output of this block is VCAP, which is connected to a capacitor and then to VSS. The output of the V reg block is VCORE. Configuration 2, 'LDO Bypass', shows VDD connected to a switch that feeds into a block labeled 'V reg (Off)'. The output of this block is VCAP, which is connected to a capacitor and then to VSS. The output of the V reg block is VCORE. In both cases, VCAP is also connected to an external supply. A dashed vertical line separates the two configurations. The reference 'MSv69922V1' is at the bottom right.
Figure 21: System supply configurations. The diagram shows two circuit configurations for the VCORE supply. Configuration 1, 'LDO Supply', shows VDD connected to a switch that feeds into a block labeled 'V reg (On)'. The output of this block is VCAP, which is connected to a capacitor and then to VSS. The output of the V reg block is VCORE. Configuration 2, 'LDO Bypass', shows VDD connected to a switch that feeds into a block labeled 'V reg (Off)'. The output of this block is VCAP, which is connected to a capacitor and then to VSS. The output of the V reg block is VCORE. In both cases, VCAP is also connected to an external supply. A dashed vertical line separates the two configurations. The reference 'MSv69922V1' is at the bottom right.

Startup with VCORE provided from an external supply (Bypass)

When VCORE is supplied in Bypass mode, the VCORE voltage must first settle at a default level higher than 1.1 V. Due to the LDO default state after power-up (enabled by default), the external VCORE voltage must remain higher than 1.1 V until the LDO is disabled by software.

When the LDO is disabled, the external VCORE voltage can be adjusted according to the user application needs (refer to section General operating conditions of the datasheet for details on VCORE level versus the maximum operating frequency).

When operating in Bypass mode, the application must adjust VOS level in the power voltage scaling selection bits VOS[1:0] in the PWR_VOSCR register. VOS[1:0] must be set according to the external provided core voltage level and related performance.

To adjust the VOS level, the software must select sequentially the intermediate levels.

When increasing the performance:

  1. a) The voltage scaling must be incremented first (for example, when changing from VOS3 to VOS0, the below levels must be selected in the VOS[1:0] bits: VOS2, VOS1, and finally VOS0).
  2. b) The external voltage can be increased.
  3. c) The system frequency can be increased.

When decreasing the performance:

  1. a) The system frequency must be decreased.
  2. b) The external voltage must be decreased.
  3. c) Then the voltage scaling can be decremented (for example when changing from VOS1 to VOS3, below levels must be selected in the VOS[1:0] bits: VOS2 and then VOS3)

9.4.3 Power-up and power-down power sequences

During power-up and power-down phases, the following power sequence requirements must be respected:

During the power-down phase, \(V_{DD}\) can temporarily become lower than other supplies only if the energy provided to the MCU remains below 1 mJ. This allows external decoupling capacitors to be discharged with different time constants during the power-down transient phase.

9.4.4 Independent analog peripherals supply

To improve ADC and DAC conversion accuracy and to extend the supply flexibility, the analog peripherals have an independent power supply that can be separately filtered and shielded from noise on the PCB:

The \(V_{DDA}\) supply voltage can be different from \(V_{DD}\). The presence of \(V_{DDA}\) must be checked before enabling any of the analog peripherals supplied by \(V_{DDA}\) (A/D converter, D/A converter).

Power supply level monitoring, is available on \(V_{DDA}\) via AVDO bit in the PWR_VMSR register (see Section 9.6.4: Analog voltage detector (AVD)).

When a single supply is used, \(V_{DDA}\) can be externally connected to \(V_{DD}\) through the external filtering circuit in order to ensure a noise-free \(V_{DDA}\) reference voltage.

Analog switch voltage booster

By setting BOOSTE and AVD_READY bits in the PWR_PMCR register, the application can reduce the total harmonic distortion (THD) of the I/O analog switches when the supply voltage is below 2.7V to guarantee the same performance as with the full voltage range.

To avoid current consumption due to the booster activation when \(V_{DDA} < 2.7\text{ V}\) and \(V_{DD} > 2.7\text{ V}\), \(V_{DD}\) can be selected as supply voltage for the analog switches, by keeping AVD_READY bit as 0 in the PWR_PMCR register.

Table 53. Analog switched recommended configuration

VDDAVDDBOOSTEAVD_READYAnalog switch supply voltage
≤ 2.7 V≤ 2.7 V11Booster
> 2.7 V00VDD
> 2.7 VDon't care01VDDA

9.4.5 USB transceivers supply

The USB transceivers are supplied from the \(V_{DD}\) power supply pin. To operate properly, USB requires a \(V_{DD}\) range between 3.0 V and 3.6 V.

9.4.6 Independent I/O supply rail

Some I/Os (PA8, PA9, PA15, PB3:8) are supplied from a separate supply rail. The power supply for this rail can range from 1.08 V to 3.6 V and is provided externally through the VDDIO2 pin. The \(V_{DDIO2}\) voltage level is completely independent from \(V_{DD}\) or \(V_{DDA}\). The VDDIO2 pin is available only for some packages. Refer to the pinout diagrams or tables in the related device datasheet(s) for the I/O list(s).

Power supply level monitoring (IO2VM) is available on VDDIO2 via the VDDIO2RDY bit in the PWR_VMSR register.

9.4.7 Backup domain

To retain the content of the backup registers and supply the RTC function when \(V_{DD}\) is turned off, the VBAT pin can be connected to an optional backup voltage supplied by a battery or by another source.

The VBAT pin powers the RTC unit, the LSE oscillator and the PC13 to PC15 I/Os, allowing the RTC to operate even when the main power supply is turned off. The backup SRAM is optionally powered by the VBAT pin when the BREN bit is set in the PWR backup domain control register (PWR_BDCR). The switch to the \(V_{BAT}\) supply is controlled by the power-down reset embedded in the reset block.


Warning: During \(t_{RSTTEMPO}\) (temporization at \(V_{DD}\) startup) or after a PDR has been detected, the power switch between \(V_{BAT}\) and \(V_{DD}\) remains connected to \(V_{BAT}\).
During the startup phase, if \(V_{DD}\) is established in less than \(t_{RSTTEMPO}\) (refer to the datasheet for the value of \(t_{RSTTEMPO}\)) and \(V_{DD} > V_{BAT} + 0.6\text{ V}\), a current may be injected into \(V_{BAT}\) through an internal diode connected between \(V_{DD}\) and the

power switch (\(V_{BAT}\)).

If the power supply/battery connected to the VBAT pin cannot support this current injection, it is strongly recommended to connect an external low-drop diode between this power supply and the VBAT pin.

If no external battery is used in the application, it is recommended to connect \(V_{BAT}\) to \(V_{DD}\) supply and add a 100 nF ceramic decoupling capacitor on VBAT pin

When the backup domain is supplied by \(V_{BAT}\) (analog switch connected to \(V_{BAT}\)), the following pins are available:

Note: Due to the fact that the analog switch can transfer only a limited amount of current, the use of GPIO PC13 to PC15 in output mode is restricted: the speed must be limited to 2 MHz with a maximum load of 30 pF and these I/Os must not be used as a current source (for example to drive a LED).

Backup domain access

After a system reset, the backup domain (RCC backup domain control register RCC_BDCR, RTC registers, TAMP registers, backup registers, and backup SRAM) is protected against possible unwanted write accesses. To enable access to the backup domain, set the DBP bit in the PWR disable backup protection control register (PWR_DBPCR) to enable access to the backup domain.

Backup RAM

The backup domain includes 2 Kbytes of backup RAM accessible in 32-, 16-, or 8-bit data mode. The backup RAM is supplied from the backup regulator in the backup domain. When the backup regulator is enabled through BREN bit in the PWR_BDCR, the backup RAM content is retained even in Standby, and/or VBAT mode (it can be considered as an internal EEPROM if VBAT is always present).

The backup regulator can be ON or OFF depending whether the application needs the backup RAM function in Standby or VBAT modes.

The backup RAM is read protected and mass erased when a tamper event occurs, this is to prevent confidential data such as cryptographic private key, from being accessed.

The backup RAM can be erased in the following ways:

\(V_{BAT}\) battery charging

When \(V_{DD}\) is present, it is possible to charge the external battery on VBAT through an internal resistance.

The \(V_{BAT}\) charging is done either through a 5 kΩ resistor or through a 1.5 kΩ resistor depending on the VBRS bit value in the PWR_BDCR register.

The battery charging is enabled by setting the VBE bit in the PWR_BDCR register. It is automatically disabled in VBAT mode.

9.5 PWR system supply voltage regulation

9.5.1 LDO embedded regulator

The regulator is enabled on power-on reset. To supply the VCORE from the external source that it is possible to disable the regulator by setting the BYPASS bit in the PWR_SCCR register.

The BYPASS bit is written once after power-on reset. Written-once mechanism locks the register and any further write access is ignored. The system must be power cycled before writing a new value.

When VCORE is supplied from an external source the externally applied voltage level must be reflected in the VOSx bits in the PWR_VOSCR register.

The LDO regulator can provide four different voltages (voltage scaling) and can operate in Stop modes.

9.5.2 VCORE supply versus reset, voltage scaling, and low-power modes

After reset, the VCORE is in VOS3.

When exiting the Stop or Standby mode, the voltage range is the VOS3.

9.5.3 Embedded voltage regulator operating modes

There are three different power modes: Run, Stop and Standby modes.

Run mode

The voltage regulator (LDO) provides full power to the VCORE domain (core, memories, and digital peripherals). The regulator output voltage can be scaled by software to different voltage levels (VOS0, VOS1, VOS2, and VOS3) that are configured through the VOS bits in the PWR voltage scaling control register (PWR_VOSCR).

The VOS voltage scaling allows optimization of the power consumption when the system is clocked below the maximum frequency. By default, VOS3 is selected after system reset.

VOSx bits can be changed on-the-fly to adapt to the required system performance.

Stop mode

The voltage regulator (LDO) supplies the VCORE domain to retain the content of registers and internal memories. The regulator mode is selected through the SVOS bits in the PWR power mode control register (PWR_PMCR).

Stop mode power consumption can be further reduced using SVO4 (lower voltage level than VOS3) and even further with SVOS5.

Standby mode

The regulator (LDO) is OFF and the VCORE domains are powered down. The content of the registers and memories are lost except for the Standby circuitry and the backup domain.

9.6 PWR power supply and temperature supervision

Power supply level monitoring is available on the following supplies:

9.6.1 Power-on reset (POR)/power-down reset (PDR)/

The system has an integrated POR/PDR circuitry that ensures proper startup operation.

The system remains in reset mode when VDD is below a specified VPOR threshold, without the need for an external reset circuit. Once the VDD supply level is above the VPOR threshold, the system is taken out of reset (see Figure 22). For more details concerning the power-on/power-down reset threshold, refer to the electrical characteristics section of the datasheets.

Figure 22. Power-on reset (POR)/power-down reset (PDR) waveform

Figure 22: Power-on reset (POR)/power-down reset (PDR) waveform. The diagram shows the VDD voltage ramping up and then down. The rising edge crosses the VPOR threshold, and the falling edge crosses the VPDR threshold. The Reset signal is low while VDD is below VPOR and high once VDD is above VPOR. A hysteresis region is shown between VPOR and VPDR. A temporization period t_RSTTEMPO is indicated between the rising edge crossing VPOR and the Reset signal going high.

The figure illustrates the relationship between the VDD supply voltage and the Reset signal during power-on and power-down sequences. The VDD voltage ramp is shown as a trapezoid. The rising edge of VDD crosses the VPOR threshold, and the falling edge crosses the VPDR threshold. The Reset signal is low while VDD is below VPOR and high once VDD is above VPOR. A hysteresis region is shown between VPOR and VPDR. A temporization period \(t_{RSTTEMPO}\) is indicated between the rising edge crossing VPOR and the Reset signal going high.

Figure 22: Power-on reset (POR)/power-down reset (PDR) waveform. The diagram shows the VDD voltage ramping up and then down. The rising edge crosses the VPOR threshold, and the falling edge crosses the VPDR threshold. The Reset signal is low while VDD is below VPOR and high once VDD is above VPOR. A hysteresis region is shown between VPOR and VPDR. A temporization period t_RSTTEMPO is indicated between the rising edge crossing VPOR and the Reset signal going high.

1. For thresholds and hysteresis values, refer to the datasheets.

9.6.2 Brownout reset (BOR)

During power-on, the brownout reset (BOR) keeps the system under reset until the VDD supply voltage reaches the specified VBOR threshold.

The VBOR threshold is configured through system option bytes. By default, BOR is OFF and it can be enabled by setting the BORH_EN option bit.

The following programmable VBOR thresholds can be selected:

For more details on the brownout reset thresholds, refer to the section “Electrical characteristics” of the product datasheets.

A system reset is generated when the BOR is enabled and the \(V_{DD}\) supply voltage drops below the selected \(V_{BOR}\) threshold.

BOR can be disabled by programming the BORH_EN option bit to 0. To disable the BOR function, \(V_{DD}\) must have been higher than the POR threshold to start the system option byte programming sequence. Once BOR is disabled, the power-down is then monitored by the PDR (see Section 9.6.6).

Figure 23. BOR thresholds

Figure 23: BOR thresholds. A graph showing VDD voltage (y-axis) versus time (x-axis). The VDD voltage ramps up and then down. Two horizontal dashed lines represent the BOR thresholds: V_BOR0 (rising edge) and V_BOR0 (falling edge). The vertical distance between these two lines is labeled 'hysteresis'. A 'Temporization' period is indicated on the x-axis, starting from the rising edge crossing and ending at the falling edge crossing, labeled t_RSTTEMPO. A 'Reset' signal (y-axis) is shown as a low-level pulse that occurs during the temporization period, triggered by the falling edge crossing.

MS31444V5

Figure 23: BOR thresholds. A graph showing VDD voltage (y-axis) versus time (x-axis). The VDD voltage ramps up and then down. Two horizontal dashed lines represent the BOR thresholds: V_BOR0 (rising edge) and V_BOR0 (falling edge). The vertical distance between these two lines is labeled 'hysteresis'. A 'Temporization' period is indicated on the x-axis, starting from the rising edge crossing and ending at the falling edge crossing, labeled t_RSTTEMPO. A 'Reset' signal (y-axis) is shown as a low-level pulse that occurs during the temporization period, triggered by the falling edge crossing.

9.6.3 Programmable voltage detector (PVD)

The PVD can be used to monitor the \(V_{DD}\) power supply by comparing it to a threshold selected by the PLS[2:0] bits in the PWR voltage monitor control register (PWR_VMCR). The PVD can also be used to monitor a voltage level on the PVD_IN pin. In this case PVD_IN voltage is compared to the internal VREFINT level.

The PVD is enabled by setting the PVDE bit in PWR voltage monitor control register (PWR_VMCR).

A PVDO flag is available in the PWR voltage monitor status register (PWR_VMSR) to indicate if the \(V_{DD}\) or PVD_IN voltage is higher or lower than the PVD threshold. This event is internally connected to the EXTI and can generate an interrupt, provided it has been enabled through the EXTI registers. The rising/falling edge sensitivity of the EXTI line must be configured according to PVD output behavior, that is, if the EXTI line is configured to rising edge sensitivity, the interrupt is generated when the \(V_{DD}\) or PVD_IN voltage drops below the PVD threshold. As an example, the service routine could perform the emergency shutdown.

Figure 24. PVD thresholds

Figure 24: PVD thresholds diagram showing the relationship between VDD or PVD_IN, PVD thresholds, and control signals.

The diagram illustrates the PVD thresholds and control signals. The top graph plots \(V_{DD}\) or PVD_IN against time T. It shows a ramp-up phase where the signal crosses the \(PVD_{rise}\) threshold, a high state, and a ramp-down phase where it crosses the \(PVD_{fall}\) threshold. The vertical distance between these two thresholds is labeled hysteresis. Below this, the PVDO signal is shown as a digital output that transitions from low to high when PVD_IN crosses \(PVD_{rise}\) and back to low when it crosses \(PVD_{fall}\). The PVDEN signal is shown as a digital enable signal that is high during the active period of PVDO. Arrows indicate that PVDEN is set by SW enable and cleared by PDR reset. The reference code MSv68845V1 is located in the bottom right corner of the diagram area.

Figure 24: PVD thresholds diagram showing the relationship between VDD or PVD_IN, PVD thresholds, and control signals.
  1. 1. For thresholds and hysteresis values, refer to the datasheets.

9.6.4 Analog voltage detector (AVD)

The AVD can be used to monitor the \(V_{DDA}\) supply by comparing it to a threshold selected by the ALS[1:0] bits in the PWR voltage monitor control register (PWR_VMCR).

The AVD is enabled by setting the AVDEN bit in PWR voltage monitor control register (PWR_VMCR).

An AVDO flag is available in the PWR voltage monitor status register (PWR_VMSR) to indicate whether \(V_{DDA}\) is higher or lower than the AVD threshold. This event is internally connected to the EXTI and can generate an interrupt if enabled through the EXTI registers. The AVDO interrupt can be generated when \(V_{DDA}\) drops below the AVD threshold and/or when \(V_{DDA}\) rises above the AVD threshold depending on EXTI rising/falling edge configuration. As an example the service routine could indicate when the \(V_{DDA}\) supply drops below a minimum level.

Figure 25. AVD thresholds

Figure 25: AVD thresholds diagram. The top part shows a graph of VDDA voltage over time (T). A trapezoidal waveform represents the supply voltage. Two horizontal dashed lines indicate the AVDrise and AVDfall thresholds. The vertical distance between these two lines is labeled 'hysteresis'. The bottom part shows the AVDO and AVDEN signals. AVDEN is a control signal that is high during the 'SW enable' period and low during 'SW disable'. AVDO is a status signal that transitions between high and low states based on the VDDA voltage relative to the AVD thresholds.
Figure 25: AVD thresholds diagram. The top part shows a graph of VDDA voltage over time (T). A trapezoidal waveform represents the supply voltage. Two horizontal dashed lines indicate the AVDrise and AVDfall thresholds. The vertical distance between these two lines is labeled 'hysteresis'. The bottom part shows the AVDO and AVDEN signals. AVDEN is a control signal that is high during the 'SW enable' period and low during 'SW disable'. AVDO is a status signal that transitions between high and low states based on the VDDA voltage relative to the AVD thresholds.

1. For thresholds and hysteresis values, refer to the datasheets.

9.6.5 VDDIO2 voltage monitor (IO2VM)

The IO2VM monitors the independent supply voltage VDDIO2 to ensure that the peripheral is in its functional supply range. The VDDIO2RDY flag (available in Section 9.11.10: PWR voltage monitor status register (PWR_VMSR)) indicates whether a valid VDDIO2 supply is present or not.

9.6.6 Backup domain voltage monitoring

In VBAT mode, the battery voltage supply (backup domain) can be monitored by comparing it with two threshold levels: VBAThigh and VBATlow. The VBAT supply monitoring can be enabled/disabled via MONEN bit in PWR backup domain control register (PWR_BDCR). When it is enabled, the battery voltage thresholds increase power consumption.

If the backup domain voltage monitoring internal tamper is enabled in the TAMP peripheral (ITAMP1E = 1 in the TAMP_CR1 register), a tamper event is generated when the battery voltage is above the functional range.

Note: The backup domain voltage is VDD when present, VBAT otherwise.

Figure 26. VBAT thresholds

Figure 26: VBAT thresholds diagram. The top graph shows VBAT voltage over time (T) with a trapezoidal pulse. Two horizontal dashed lines indicate the VBAThigh and VBATlow thresholds. The bottom graph shows the corresponding digital signals VBATH and VBATL, which are high when VBAT is above VBAThigh and low when VBAT is below VBATlow, with a hysteresis region between the two thresholds.

MSv40344V1

Figure 26: VBAT thresholds diagram. The top graph shows VBAT voltage over time (T) with a trapezoidal pulse. Two horizontal dashed lines indicate the VBAThigh and VBATlow thresholds. The bottom graph shows the corresponding digital signals VBATH and VBATL, which are high when VBAT is above VBAThigh and low when VBAT is below VBATlow, with a hysteresis region between the two thresholds.
  1. 1. For thresholds and hysteresis values, refer to the datasheets.

9.6.7 Temperature monitoring

A dedicated temperature sensor cell is embedded in the power control. The junction temperature can be monitored by comparing it with two threshold levels, TEMPhigh and TEMPlow. TEMPH and TEMPL flags in the PWR backup domain status register (PWR_BDSR), which indicates whether the device temperature is higher or lower than the threshold. The temperature monitoring can be enabled/disabled via the MONEN bit in PWR backup domain control register (PWR_BDCR).

When enabled, the temperature thresholds increase power consumption. As an example the levels may be used to trigger a routine to perform temperature control tasks.

If the temperature monitoring internal tamper is enabled in the TAMP peripheral (ITAMP2E = 1 in the TAMP_CR1 register), a tamper event is generated when the temperature is above or below the functional range.

TEMPH and TEMPL wakeup interrupts are available on the RTC tamper signals (see Section 33: Tamper and backup registers (TAMP)).

Figure 27. Temperature thresholds

Figure 27: Temperature thresholds. A graph showing Temperature (Y-axis) versus Time (T, X-axis). The graph illustrates a temperature profile that rises, plateaus, and then falls. Two horizontal dashed lines represent temperature thresholds: TEMP_high (upper) and TEMP_low (lower). Vertical dashed lines indicate the points where the temperature profile crosses these thresholds. Below the graph, two step functions represent the states of TEMPH and TEMPL. TEMPH is high when the temperature is above TEMP_high and low otherwise. TEMPL is low when the temperature is below TEMP_low and high otherwise. The diagram shows hysteresis in the transitions between these states.
Figure 27: Temperature thresholds. A graph showing Temperature (Y-axis) versus Time (T, X-axis). The graph illustrates a temperature profile that rises, plateaus, and then falls. Two horizontal dashed lines represent temperature thresholds: TEMP_high (upper) and TEMP_low (lower). Vertical dashed lines indicate the points where the temperature profile crosses these thresholds. Below the graph, two step functions represent the states of TEMPH and TEMPL. TEMPH is high when the temperature is above TEMP_high and low otherwise. TEMPL is low when the temperature is below TEMP_low and high otherwise. The diagram shows hysteresis in the transitions between these states.

1. For thresholds and hysteresis values, refer to the datasheets.

9.7 PWR power management

9.7.1 Voltage scaling

The voltage regulator supporting voltage scaling with the following features:

For more details on voltage scaling values, refer to the product datasheets.

After reset, the system starts on the lowest Run mode voltage scaling (VOS3). The voltage scaling can then be changed on-the-fly by software by programming VOS bits in PWR voltage scaling control register (PWR_VOSCR) according to the required system performance. When exiting from the Stop mode or Standby mode, the Run mode voltage scaling is reset to the default VOS3 value.

Before entering Stop mode, the software should preselect the SVOS level in PWR power mode control register (PWR_PMCR). The Stop mode voltage scaling for SVOS4 and SVOS5 also sets the voltage regulator in Low-power mode to further reduce power consumption.

9.7.2 Power management examples

Example of VCORE voltage scaling behavior in Run mode.

Figure 28 illustrates the following system operation sequence example:

  1. 1. After reset, the system starts from HSI with VOS3.
  2. 2. The system performance is first increased to a medium-speed clock from the PLL with voltage scaling VOS2. To do this:
    1. a) Program the voltage scaling to VOS2.
    2. b) Once the VCORE supply has reached the required level indicated by VOSRDY, increase the clock frequency by enabling the PLL.
    3. c) Once the PLL is locked, switch the system clock.
  3. 3. The system performance is then increased to high-speed clock from the PLL with voltage scaling VOS1. To do this:
    1. a) Program the voltage scaling to VOS1.
    2. b) Once the VCORE supply has reached the required level indicated by VOSRDY, increase the clock frequency.
  4. 4. The system performance is then reduced to a medium-speed clock with voltage scaling VOS2. To do this:
    1. a) First decrease the system frequency.
    2. b) Then decrease the voltage scaling to VOS2.
  5. 5. The next step is to reduce the system performance to the HSI clock with voltage scaling VOS3. To do this:
    1. a) Switch the clock to HSI.
    2. b) Disable the PLL.
    3. c) Decrease the voltage scaling to VOS3.
  6. 6. The system performance can then be increased to high-speed clock from the PLL. To do this:
    1. a) Program the voltage scaling to VOS1.
    2. b) Once the VCORE supply has reached the required level indicated by VOSRDY, increase the clock frequency by enabling the PLL.
    3. c) Once the PLL is locked, switch the system clock.

When the system performance (clock frequency) is changed, VOS shall be set accordingly, otherwise the system might be unreliable.

Figure 28. Dynamic voltage scaling in Run mode

Timing diagram for dynamic voltage scaling in Run mode showing V_CORE, VOS, VOSRDY, PLLxON, ck_sys, and ck_hclk signals over time. The diagram illustrates transitions between different voltage levels (VOS 1, 2, 3) and the corresponding states of the system clock (ck_sys) and high-speed clock (ck_hclk).

The figure is a timing diagram illustrating dynamic voltage scaling (DVS) in Run mode. It shows the relationship between the core voltage (VCORE), the voltage scaling register (VOS), the voltage scaling ready signal (VOSRDY), the PLL enable signal (PLLxON), and the system clock (cksys) and high-speed clock (ckhclk). The diagram is divided into several phases:

At the bottom of the diagram, a table summarizes the states of the signals and the clock sources:

RUNWait VOSRDYWait PLLRUNWait VOSRDYRUNWait VOSRDYRUNWait VOSRDYWait PLLRUN
RUN from HSIRun from PLLRUN from HSIRun from PLL

MSv40350V2

Timing diagram for dynamic voltage scaling in Run mode showing V_CORE, VOS, VOSRDY, PLLxON, ck_sys, and ck_hclk signals over time. The diagram illustrates transitions between different voltage levels (VOS 1, 2, 3) and the corresponding states of the system clock (ck_sys) and high-speed clock (ck_hclk).

9.8 Power modes

By default, the microcontroller is in Run mode after a system or a power reset. Several low-power modes are available to save power when the CPU does not need to be kept running, for example when waiting for an external event. It is up to the user to select the mode that gives the best compromise between low-power consumption, short startup time and available wakeup sources.

The device features these low-power modes:

HSI RC, HSI48, the CSI RC, and the HSE crystal oscillators are also switched off.
The RTC can remain active (Standby mode with RTC, Standby mode without RTC).
The Brownout reset (BOR) always remains active in Standby mode.
The state of the I/O (except I/Os used by Standby mode) during Standby mode can be retained.
After entering Standby mode, SRAMs and register contents are lost except for registers and backup SRAM in the backup domain and Standby circuitry.
The device exits Standby mode when an external reset (NRST pin), an IWDG reset, WKUP pin event (configurable rising or falling edge), an RTC event occurs (alarm, periodic wakeup, timestamp), or a tamper detection. The tamper detection can be raised either due to external pins or due to an internal failure detection.
The system clock after wakeup is HSI at 32 MHz.
Refer to Section 9.8.6: Standby mode.

In addition, the power consumption in Run mode can be reduced by one of the following means:

The table below shows the power modes overview.

Table 54. Low-power mode summary(1)

Mode nameEntryWakeup source(2)Wakeup system clockEffect on clocksVoltage regulators
Sleep
(Sleep-now or
Sleep-on-exit)
WFI or Return
from ISR
Any interruptSame as before
entering Sleep mode
CPU clock OFF
No effect on other
clocks or analog clock
sources
VOS3,
VOS2,
VOS1 or
VOS0
WFEWakeup event
StopLPMS = 0 +
SLEEPDEEP bit +
WFI or Return
from ISR or WFE
Any EXTI line
(configured in the
EXTI registers)
Specific
peripherals
events
CSI when
STOPWUCK = 1 in
RCC_CFGR
HSI with the
frequency before
entering the Stop
mode, at up to
64 MHz, when
STOPWUCK = 0
All clocks OFF except
LSI and LSE

HSI or CSI can be
enabled temporarily
when requested by
software
SVOS3,
SVOS4, or
SVOS5
StandbyLPMS = 1 +
SLEEPDEEP bit +
WFI or Return
from ISR or WFE
WKUP pin edge,
RTC event,
external reset in
NRST pin,
IWDG reset
HSI clock at 32 MHzAll clocks OFF except
LSI and LSE
OFF
  1. 1. Peripherals are able to wake-up the system from top mode this is only possible when SVOS3 is selected before entering stop mode. Refer to Table 55. Functionalities depend on the work mode.
  2. 2. Refer to the next table.
Table 55. Functionalities depending on the working mode(1)
PeripheralRunSleepStopStandbyVBAT
AvailableWakeup capabilityAvailableWakeup capability
SVOS3SVOS4SVOS5
CPUY--------
Flash memory (128K Mbytes)OO-(2)------
SRAM1 (16 Kbytes)YY(3)O(4)------
SRAM2 (16 Kbytes)Y(3)Y(3)O(4)------
BKPSRAMOOO---O-O
Backup registersYYY---Y-Y
Brownout reset (BOR)YYYOOOYO-
Programmable voltage detector (PVD)OOOOOO---
Analog voltage detector (AVD)OOOOOO---
GPDMAOO-------
High-speed internal (HSI)OOO------
Oscillator HSI48OO-------
High-speed external (HSE)OO-------
Low-speed internal (LSI)OOOO--O--
Low-speed external (LSE)OOO---O-O
Low-power RC oscillator (CSI)OOO------
Clock security system (CSS) on HSEOO-------
Clock security system on LSEOOOOO(5)O(5)OOO
Backup domain voltage monitoring, temperature monitoringOOOOO(5)O(5)OOO
RTC/TAMPOOOOOOOOO
Number of TAMP pins222222222
USBOOOO-----
USARTx (x = 1,2,3)OOOO-----
Low-power UART (LPUART)OOOO-----
I2Cx (x = 1,2)OOOO-----
I3Cx (x = 1,2)OOOO-----
SPIx (x = 1,2,3)OOOO-----
FDCAN1OO-------
ADC1OO-------
DAC1 (2 converters)OOO------
COMP1OOOO-----
OPAMP1OO-------
Temperature sensor (DTS)OOOO-----
Table 55. Functionalities depending on the working mode(1) (continued)
PeripheralRunSleepStopStandbyVBAT
AvailableWakeup capabilityAvailableWakeup capability
SVOS3SVOS4SVOS5
Timers (TIMx)OO-------
Low-power timer LPTIMx (x = 1,2)OOOO-----
Independent watchdog (IWDG)OOOOOOOO-
Window watchdog (WWDG)OO-------
SysTick timer (SYSTICK)OO-------
Random number generator (RNG)OO-------
HASH acceleratorOO-------
CRC calculation unitOO-------
GPIOsOO-----(6)O(7)-
EXTIOOOOOO---
  1. 1. Y = yes (enable). O = optional (disable by default, can be enabled by software). - = not available.
  2. 2. The flash memory can be configured in low-power mode. By default, it is not in low-power mode during stop (SVOS3, SVOS4).
  3. 3. The SRAM clock can be gated ON or OFF independently. By default clock is enabled in RUN and sleep mode.
  4. 4. The SRAMs can be powered ON or OFF independently. By default, it is not in power OFF mode during stop.
  5. 5. Wakeup with internal tamper.
  6. 6. GPIOs state can be retained during Standby mode. By default GPIOs states are not retained.
  7. 7. 5-pin capable of wakeup from Standby mode PA0, PA2, PB7, PC1, and PC13.

Debug mode

By default, the debug connection is lost if the application puts the MCU in Stop or Standby mode while the debug features are used. This is because the Cortex-M33 core is no longer clocked.

However, by setting some configuration bits in the DBGMCU control registers, the software can be debugged even when using the low-power modes extensively. For more details, refer to Section 41.2.5: Debug and low-power modes.

9.8.1 Slowing down system clocks

In Run mode, the speed of the system clocks (SYSCLK, HCLK, PCLK) can be reduced by programming the prescaler registers. These prescalers can also be used to slow down the peripherals before entering the Sleep mode.

For more details, refer to Section 10: Reset and clock control (RCC).

9.8.2 Peripheral clock gating

In Run mode, the HCLK and PCLK for individual peripherals and memories can be stopped at any time to reduce the power consumption.

To further reduce the power consumption in Sleep mode, the peripheral clocks can be disabled before executing the WFI or WFE instructions.

The peripheral clock gating is controlled by the RCC_AHBxENR and RCC_APBxENR registers.

Disabling the peripherals clocks in Sleep mode can be performed automatically by resetting the corresponding bit in the RCC_AHBxLPENR and RCC_APBxLPENR registers.

9.8.3 Low-power modes

Entering into a low-power mode

The MCU enters in low-power modes by executing the WFI (wait for interrupt), or WFE (wait for event) instructions, or when the SLEEPONEXIT bit in the Cortex-M33 system control register is set on Return from ISR.

Entering into a low-power mode through WFI or WFE is executed only if no interrupt is pending or no event is pending.

Exiting a low-power mode

The way the MCU exits the Sleep or Stop mode depends on the way the low-power mode was entered:

The MCU exits Standby mode through an external reset (NRST pin), an IWDG reset, a rising edge on one of the enabled WKUPx pins or a RTC/TAMP event (see Figure 369: RTC block diagram).

After waking up from Standby mode, the program execution restarts in the same way as after a reset (boot pin sampling, option bytes loading, reset vector is fetched).

Caution: When the device is in Stop mode, a peripheral interrupt powers on the an internal oscillator. The corresponding NVIC interrupt channel must be enabled to allow the interrupt to exit the device from Stop mode. It is not allowed to disable a peripheral interrupt by disabling only the NVIC channel while keeping the peripheral interrupt enable, as the device could remain in Stop mode with the clock ON.

9.8.4 Sleep mode

I/O states in Sleep mode

In Sleep mode, all I/O pins keep the same state as in Run mode.

Entering the Sleep mode

The MCU enters the Sleep mode as described in Entering into a low-power mode, when the SLEEPDEEP bit in the Cortex-M33 system control register is clear (see the table below for details on how to enter the Sleep mode).

Exiting the Sleep mode

The MCU exits the Sleep mode as described in Exiting a low-power mode (see the table below for details on how to exit the Sleep mode).

Table 56. Sleep mode

Sleep modeDescription
Mode entryWFI (wait for interrupt) or WFE (wait for event) while:
– SLEEPDEEP = 0
– No interrupt (for WFI) or event (for WFE) pending
Refer to the Cortex-M33 system control register.
On return from ISR while:
– SLEEPDEEP = 0 and
– SLEEPONEXIT = 1
– No interrupt pending
Refer to the Cortex-M33 system control register.
Mode exitIf WFI or Return from ISR was used for entry
Interrupt (see Table 97: STM32H503xx vector table)
If WFE was used for entry and SEVONPEND = 0:
Wakeup event (see Section 17.3: EXTI functional description)
If WFE was used for entry and SEVONPEND = 1:
Interrupt even when disabled in NVIC (see Table 97: STM32H503xx vector table) or Wakeup event (see Section 17.3: EXTI functional description)
Wakeup latencyNone

9.8.5 Stop mode

The Stop mode is based on the Cortex-M33 Deepsleep mode combined with the peripheral clock gating. The voltage regulator is configured by SVOSx bits (the selected SVOS4 and SVOS5 levels add an additional startup delay when exiting from system Stop mode). In Stop mode, all clocks in the core domain are stopped. The PLL, HSI, HSI48, CSI, and HSE oscillators are disabled.

It is possible to keep the HSI or CSI clock enabled during Stop mode in order to be quickly available as kernel clock for peripherals.

All SRAMs and register contents are preserved, but the SRAMs can be totally switched off to further reduced consumption. The user can select which memory is discarded during Stop mode by means of xxSO bits in PWR power mode control register (PWR_PMCR).

The BOR is always available in Stop mode.

I/O states in Stop mode

In the Stop mode, all I/O pins keep the same state as in the Run mode.

Entering the Stop mode

The MCU enters the Stop mode as described in Entering into a low-power mode, when the SLEEPDEEP bit in the Cortex-M33 system control register is set (see Table 57 for details on how to enter the Stop mode).

If the flash memory programming is ongoing, the Stop mode entry is delayed until the memory access is finished.

If an access to the APB domain is ongoing, the Stop mode entry is delayed until the APB access is finished.

In Stop mode, the following features can be selected by programming the individual control bits:

The AVD and the PVD can be used in Stop mode. If they are not needed, they must be disabled by software to save their power consumptions.

The ADC1, the DAC1 (two channels) and the temperature sensor can consume power during the Stop mode, unless they are disabled before entering this mode.

Exiting the Stop mode

The MCU exits Stop mode by enabling an EXTI interrupt or event depending on how the low-power mode was entered. Some peripherals are able to wakeup the system (refer to Table 100: EXTI line connections) from Stop mode, this is only possible when SVOS3 is selected before entering stop mode (refer to Table 55: Functionalities depending on the

working mode). GPIO pins configured to EXTI external interrupt or event are able to wakeup the system from stop mode in all voltage scales including SVOS4 and SVOS5.

Note: When wakeup from Stop with peripherals is needed, SVOS3 must be selected.

When exiting Stop mode by issuing an interrupt or a wakeup event, CSI is selected as system clock if the bit STOPWUCK is set in RCC clock configuration register 1 (RCC_CFGR). The HSI oscillator is selected as system clock if STOPWUCK is cleared. The wakeup time is shorter when CSI is selected as the wakeup system clock. The HSI selection allows a wakeup at higher frequency (up to 64 MHz).

The MCU exits Stop mode by enabling an EXTI interrupt or event depending on how the low-power mode was entered.

When exiting the Stop mode, the MCU is in Run mode, VOS3.

Table 57. Stop mode

Stop modeDescription
Mode entryWFI (wait for interrupt) or WFE (wait for event) while:
  • – SLEEPDEEP bit is set in Cortex-M33 system control register
  • – No interrupt (for WFI) or event (for WFE) pending
  • – LPMS = 000 in PWR_CR1
On Return from ISR while:
  • – SLEEPDEEP bit is set in Cortex-M33 system control register
  • – SLEEPONEXIT = 1
  • – No interrupt pending
  • – LPMS = 0 in PWR_PMCR
Note: To enter Stop mode, all EXTI line pending bits (in the EXTI rising edge pending register (EXTI_RPR1)), and the peripheral flags generating wakeup interrupts must be cleared. Otherwise, the Stop mode entry procedure is ignored and the program execution continues.
Mode exitIf WFI or Return from ISR was used for entry:
  • - any EXTI line configured in interrupt mode (the corresponding EXTI interrupt vector must be enabled in the NVIC). The interrupt source can be external interrupts or peripherals with wakeup capability (see Table 97: STM32H503xx vector table).
If WFE was used for entry and SEVONPEND = 0:If WFE was used for entry and SEVONPEND = 1:
Note: All peripheral clocks must be enabled to allow this peripheral to generate a wakeup from Stop interrupt ([PERIPH]EN and [PERIPH]LPEN bits must be set in the RCC, and a functional independent clock must be selected).
Wakeup latencyLongest wakeup time between: HSI or CSI wakeup time and Flash wakeup time from Stop mode.

9.8.6 Standby mode

The lowest power mode in which the BOR is active is the Standby mode. It is based on the Cortex-M33 Deepsleep mode, with the voltage regulators disabled. The PLL, HSI, HSI48, CSI, and HSE oscillators are switched off.

The SRAMs and register contents are lost except for registers in the backup domain and Standby circuitry (see Figure 20: Power supply overview with LDO).

The BOR is always available in Standby mode.

The RTC outputs on PC13 are functional in Standby mode. PC14 and PC15 used for LSE are also functional. The five wakeup pins (WKUPx, x = 1 to 5) and four RTC tampers pins are available.

I/O states in Standby mode

In the Standby mode, the I/Os are by default in floating state. If the IORETEN bit in the PWR_IORETR register is set, the I/Os output state is retained. IO Retention mode is enabled for all IO except the IO support the standby functionality and JTAG IOs (PA13, PA14, PA15, and PB4). When entering into Standby mode, the state of the output is sampled, and the pull-up or pull-down resistor are set to maintain the IO output during Standby mode.

If the JTAGIORETEN bit in the PWR_IORETR register is set, the I/Os output state is retained. IO Retention mode is enabled for PA13, PA14, PA15, and PB4 (default JTAG pull-up/pull-down after wakeup are not enabled).

After wakeup from Standby mode, as long as IORETEN (or JTAGIORETEN for JTAG IOs) is set, the retained state (pull-up/pull-down) remains applied.

The GPIO pin state before Standby can be identified with the GPIO_IDR register (when both GPIO port clock and input buffer are enabled).

The application can release the IO state (clear the retained Pull-up/Pull-down) by clearing the IORETEN (or JTAGIORETEN for JTAG IOs) bit, this can be done before or after reconfiguring the GPIOs and related peripherals.

For example, this allows the application to configure the GPIO to a known state before releasing the retained state.

Note: Only the I/O digital output state is retained.

Figure 29. I/O states in Standby mode

IO state retention disabled

GPIO modeNormalFloatingNormal (default after reset)
System modeRunStandby (Vcore off)Run

Standby entry: WFI/WFE/Sleep on exit

IORETEN (PWR):

Wakeup request:


IO state retention enabled

GPIO modeNormalState retained (PU/PD)Normal
System modeRunStandby (Vcore off)Run

Standby entry: WFI/WFE/Sleep on exit

IORETEN (PWR): Set (at entry), Clear (at exit)

Wakeup request:

MSv68837V1

Entering Standby mode

The MCU enters the Standby mode as described in Entering into a low-power mode, when the SLEEPDEEP bit in the Cortex-M33 system control register is set (see Table 58 for details on how to enter Standby mode).

In Standby mode, the following features can be selected by programming individual control bits:

Exiting Standby mode

The MCU exits the Standby mode as described in Exiting a low-power mode. The SBF status flag in the PWR status register (PWR_PMSR) indicates that the MCU was in Standby mode. All registers are reset after wakeup from Standby except for PWR backup domain control register (PWR_BDCR) and PWR I/O retention register (PWR_IORETR) (see Table 58 for more details on how to exit Standby mode).

When exiting Standby mode, I/Os output state that were retained during Standby through IORETEN bit, keep this configuration upon exiting Standby mode until the IORETEN bit in the PWR_IORETR register is cleared. Once IORETEN is cleared, the I/Os are either configured to their reset values or to the pull-up/pull-down state according to the GPIOx_PUPDR registers.

For I/Os, with a pull-up or pull-down predefined after reset (some JTAG/SWD I/Os), in case those pull-up or pull-down are different from the retained values during Standby, both a pull-down and pull-up are applied until IORETEN is cleared, releasing the retained value.

Also in case the GPIOx_PUPDR values programed after exiting from Standby are different from the retained values during Standby, both a pull-down and pull-up are applied until IORETEN is cleared, releasing the retained value.

Table 58. Standby mode

Standby modeDescription
Mode entryWFI (wait for interrupt) or WFE (wait for event) while:
  • – SLEEPDEEP bit is set in Cortex-M33 system control register
  • – No interrupt (for WFI) or event (for WFE) pending
  • – LPMS = 1 in PWR_PMCR
  • – WUFx bits cleared in PWR_WUSR
On Return from ISR while:
  • – SLEEPDEEP bit is set in Cortex-M33 system control register
  • – SLEEPONEXIT = 1
  • – No interrupt pending
  • – LPMS = 1 in PWR_PMCR
  • – WUFx bits cleared in PWR_WUSR
  • – RTC/TAMP flags corresponding to the chosen wakeup source, cleared
Mode exitWKUPx pin edge, RTC event, external Reset in NRST pin, IWDG Reset, BOR reset
Wakeup latencyReset phase

9.8.7 Power modes output pins

In order to help the debug, two signals are available as device pins alternate functions:

When set, CSLEEP indicates that the system is in Sleep mode: WFI or WFE has been executed.

When cleared, CSLEEP indicates that the system is in Run mode.

When set, CSTOP indicates that the system is in Stop mode, meaning that the following conditions are filled:

When cleared, CSTOP indicates that the system is not in Stop mode: AHB/APB clocks are running.

The table below explains the MCU power mode depending on these signals states.

Table 59. Power modes output states versus MCU power modes

CSLEEPCSTOPMCU power modes(1)
00Run mode
10Sleep mode
11Stop mode

1. CSLEEP and CSTOP are generated in the core domain, therefore they are not driven in Standby mode.

9.9 PWR privileged protection

By default, after a reset, all PWR registers can be read or written with both privileged and unprivileged accesses, except PWR_PRIVCFGR that can be written with privileged access only. PWR_PRIVCFGR can be read by privileged and unprivileged accesses.

The NSPRIV bit of PWR_PRIVCFGR can be written with privileged access only. This bit configures the privileged access of all PWR functions defined in Table 60: PWR privilege configuration summary.

When the NSPRIV bit is set in PWR_PRIVCFGR:

Table 60. PWR privilege configuration summary

PWR functionRegister namePrivileged bits
Low-power modePWR_PMCRAll bits
Backup domain and VBAT mode configurationPWR_BDCRAll bits
PWR_DBPCRAll bits
I/Os retention configurationPWR_IORETRAll bits
Wake-up pins WKUPx (x = 1 to 5)PWR_WUCRWUPENx
WUPPx
WUPPUPD
PWR_WUSCRCWUFx
Voltage scaling (VOS) configurationPWR_VOSCRVOS[1:0]
Voltage detection and monitoringPWR_SCCRAll bits
PWR_VMCRAll bits

9.10 PWR interrupts

The table below gives a summary of the interrupt sources and the way to control them.

Table 61. PWR interrupt requests

Interrupt vectorInterrupt eventEvent flagEnable control bitInterrupt clear methodExit Sleep, Stop modesExit and Standby modes
PVD/AVD outputProgrammable voltage detector through EXTI line 16PVDO/AVDOEXTI line 16 enabledWrite EXTI PIF16 = 1YesNo

9.11 PWR registers

The PWR registers can be accessed in word, half-word and byte format, unless otherwise specified.

9.11.1 PWR power mode control register (PWR_PMCR)

This register is protected against unprivileged access when NSPRIV = 1.

Address offset: 0x000

Reset value: 0x0000 000C

31302928272625242322212019181716
Res.Res.Res.Res.Res.SRAM1SOSRAM2SORes.Res.Res.Res.Res.Res.Res.Res.Res.
rwrw
1514131211109876543210
Res.Res.AVD_READYBOOST_ERes.Res.FLPSRes.CSSFRes.Res.Res.SVOS[1:0]Res.LPMS
rwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bit 26 SRAM1SO: AHB SRAM1 shut-off in Stop mode

0: AHB RAM1 content is kept in Stop mode.

1: AHB RAM1 content is lost in Stop mode.

Bit 25 SRAM2SO: AHB SRAM2 shut-off in Stop mode.

0: AHB RAM2 content is kept in Stop mode.

1: AHB RAM2 content is lost in Stop mode.

Bits 24:14 Reserved, must be kept at reset value.

9.11.2 PWR status register (PWR_PMSR)

Address offset: 0x004

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.SBFSTOPFRes.Res.Res.Res.Res.
rr

Bits 31:7 Reserved, must be kept at reset value.

Bit 6 SBF: System standby flag

This bit is set by hardware and cleared only by a POR or by setting the CSSF bit.

0: system has not been in Standby mode.

1: system has been in Standby mode.

Bit 5 STOPF: Stop flag

This bit is set by hardware and cleared only by any reset or by setting the CSSF bit.

0: system has not been in Stop mode.

1: system has been in Stop mode.

Bits 4:0 Reserved, must be kept at reset value.

9.11.3 PWR voltage scaling control register (PWR_VOSCR)

These fields can be protected against unprivileged access depending on the PWR_PRIVCFGR register configuration.

Address offset: 0x010

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VOS[1:0]Res.Res.Res.Res.
rwrw

Bits 31:6 Reserved, must be kept at reset value.

Bits 5:4 VOS[1:0]: voltage scaling selection according to performance

These bits control the \(V_{CORE}\) voltage level and allow to obtain the best trade-off between power consumption and performance:

00: scale 3 (default)

01: scale 2

10: scale 1

11: scale 0

Bits 3:0 Reserved, must be kept at reset value.

9.11.4 PWR voltage scaling status register (PWR_VOSSR)

Address offset: 0x014

Reset value: 0x0000 2008

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
ACTVOS[1:0]ACTVOSRDYRes.Res.Res.Res.Res.Res.Res.Res.Res.VOSRDYRes.Res.Res.
rrrr

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:14 ACTVOS[1:0]: voltage output scaling currently applied to \(V_{CORE}\)

This field provides the last VOS value.

00: VOS3 (lowest power)

01: VOS2

10: VOS1

11: VOS0 (highest frequency)

Bit 13 ACTVOSRDY: Voltage level ready for currently used VOS

0: \(V_{CORE}\) is above or below the current voltage scaling provided by ACTVOS[1:0].

1: \(V_{CORE}\) is equal to the current voltage scaling provided by ACTVOS[1:0]

Bits 12:4 Reserved, must be kept at reset value.

Bit 3 VOSRDY: Ready bit for \(V_{CORE}\) voltage scaling output selection.

0: Not ready, voltage level below VOS selected level.

1: Ready, voltage level at or above VOS selected level.

Note: The VOSRDY flag should be used only when switching from low to high-voltage scale (like switching from VOS3 to VOS0).

Bits 2:0 Reserved, must be kept at reset value.

9.11.5 PWR backup domain control register (PWR_BDCR)

This register is protected against unprivileged access when NSPRIV = 1.

This register is not reset by wakeup from Standby mode, RESET signal, and VDD POR. It is only reset by VSW POR and VSWRST reset. This register must not be accessed when the VSWRST bit in the RCC_BDCR register resets the VSW domain.

MONEN and BREN bits must not be accessed when the VSWRST bit in the RCC_BDCR register resets the VSW domain. After reset, MONEN and BREN of this register are write-protected. Prior to modifying their content, the DBP bit in the PWR_DBPCR register must be set to disable the write protection.

Address offset: 0x020

Power-on reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.VBRsVBERes.Res.Res.Res.Res.Res.MONENBREN
rwrwrwrw

Bits 31:10 Reserved, must be kept at reset value.

Bit 9 VBRs: \(V_{BAT}\) charging resistor selection
0: Charge \(V_{BAT}\) through a 5 kΩ resistor.
1: Charge \(V_{BAT}\) through a 1.5 kΩ resistor.

Bit 8 VBE: \(V_{BAT}\) charging enable
0: \(V_{BAT}\) battery charging disabled.
1: \(V_{BAT}\) battery charging enabled.

Note: Reset only by POR.

Bits 7:2 Reserved, must be kept at reset value.

Bit 1 MONEN: Backup domain voltage and temperature monitoring enable
0: Backup domain voltage and temperature monitoring disabled
1: Backup domain voltage and temperature monitoring enabled

Bit 0 BREN: Backup RAM retention in Standby and \(V_{BAT}\) modes
When this bit set, the backup regulator (used to maintain the backup RAM content in Standby and \(V_{BAT}\) modes) is enabled.
If BREN is cleared, the backup regulator is switched off. The backup RAM can still be used in Run and Stop modes. However its content is lost in Standby and \(V_{BAT}\) modes.
If BREN is set, the application must wait till the backup regulator ready flag (BRRDY) is set to indicate that the data written into the SRAM is maintained in Standby and \(V_{BAT}\) modes.
0: Backup RAM content lost in Standby and \(V_{BAT}\) modes.
1: Backup RAM content preserved in Standby and \(V_{BAT}\) modes

9.11.6 PWR disable backup protection control register (PWR_DBPCR)

This register is protected against unprivileged access when NSPRIV = 1.

Address offset: 0x024

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBP
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 DBP: Disable backup domain write protection

In reset state, all registers and SRAM in backup domain are protected against parasitic write access. This bit must be set to enable write access to these registers.

0: Write access to backup domain disabled

1: Write access to backup domain enabled

9.11.7 PWR backup domain status register (PWR_BDSR)

This register is not reset by wakeup from Standby mode, RESET signal, and VDD POR. It is only reset by VSW POR and VSWRST reset.

Address offset: 0x028

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.TEMPHTEMPLVBATHVBATLRes.Res.Res.BRRDY
rrrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:24 Reserved, must be kept at reset value.

Bit 23 TEMPH: temperature level monitoring versus high threshold

0: temperature below high threshold level

1: temperature equal or above high threshold level

Bit 22 TEMPL: temperature level monitoring versus low threshold

0: temperature above low threshold level

1: temperature equal or below low threshold level

Bit 21 VBATH: VBAT level monitoring versus high threshold

0: VBAT level below high threshold level

1: VBAT level equal or above high threshold level

Bit 20 VBATL: \(V_{BAT}\) level monitoring versus low threshold
0: \(V_{BAT}\) level above low threshold level
1: \(V_{BAT}\) level equal or below low threshold level

Bits 19:17 Reserved, must be kept at reset value.

Bit 16 BRRDY: backup regulator ready
This bit is set by hardware to indicate that the backup regulator is ready.
0: backup regulator not ready
1: backup regulator ready

Bits 15:0 Reserved, must be kept at reset value.

9.11.8 PWR supply configuration control register (PWR_SCCR)

This register is protected against unprivileged access when NSPRIV = 1.

Address offset: 0x030

Reset value: 0x0000 0100

Reset by POR only, not reset by wakeup from Standby mode and RESET pad. The BYPASS bit of this register is written once after POR. Written-once mechanism locks the register and any further write access is ignored. The system must be power cycled before writing a new value.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.LDOEN rRes.Res.Res.Res.Res.Res.Res.BYPAS S rwo
Bit 8LDOEN: LDO enable
Bit 0BYPASS: power management unit bypass

Bits 31:9 Reserved, must be kept at reset value.

Bit 8 LDOEN: LDO enable
The value is set by hardware when the package uses the LDO regulator.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 BYPASS: power management unit bypass
0: Power management unit normal operation. Use the internal regulator.
1: Power management unit bypassed. Use the external power (voltage monitoring still active)

9.11.9 PWR voltage monitor control register (PWR_VMCR)

This register is protected against unprivileged access when NSPRIV = 1.

The PVDE and PLS bits are protected by the lock mechanism. The lock control is in the SBS module controlled by the PVDL bit in the SBS_CFGR2 register. By default, the PVDE, and PLS are unlocked.

Address offset: 0x034

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.ALS[1:0]AVDENRes.Res.Res.Res.PLS[2:0]PVDE
rwrwrwrwrwrwrw

Bits 31:11 Reserved, must be kept at reset value.

Bits 10:9 ALS[1:0]: analog voltage detector (AVD) level selection

These bits select the analog voltage detector (AVD) thresholds.

00: AVD level0 (\(V_{AVD0}\) around 1.7 V)

01: AVD level1 (\(V_{AVD1}\) around 2.1 V)

10: AVD level2 (\(V_{AVD2}\) around 2.5 V)

11: AVD level3 (\(V_{AVD3}\) around 2.8 V)

Bit 8 AVDEN: peripheral voltage monitor on \(V_{DDA}\) enable

0: peripheral voltage monitor on \(V_{DDA}\) disabled

1: peripheral voltage monitor on \(V_{DDA}\) enabled

Bits 7:4 Reserved, must be kept at reset value.

Bits 3:1 PLS[2:0]: programmable voltage detector (PVD) level selection

These bits select the programmable voltage detector (PVD) thresholds.

000: PVD level0 (\(V_{PVD0}\) around 1.95 V)

001: PVD level1 (\(V_{PVD1}\) around 2.1 V)

010: PVD level2 (\(V_{PVD2}\) around 2.25 V)

011: PVD level3 (\(V_{PVD3}\) around 2.4 V)

100: PVD level4 (\(V_{PVD4}\) around 2.55 V)

101: PVD level5 (\(V_{PVD5}\) around 2.7 V)

110: PVD level6 (\(V_{PVD6}\) around 2.85 V)

111: PVD_IN pin

Bit 0 PVDE: PVD enable

0: PVD disabled

1: PVD enabled

9.11.10 PWR voltage monitor status register (PWR_VMSR)

Address offset: 0x03C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.PVDORes.VDDIO2RDYAVDORes.Res.Res.
rrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:23 Reserved, must be kept at reset value.

Bit 22 PVDO: programmable voltage detect output

This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit.

0: \(V_{DD}\) is equal or higher than the PVD threshold selected through the PLS[2:0] bits.

1: \(V_{DD}\) is lower than the PVD threshold selected through the PLS[2:0] bits.

Note: Since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set.

Bit 21 Reserved, must be kept at reset value.

Bit 20 VDDIO2RDY: voltage detector output on \(V_{DDIO2}\)

This bit is set and cleared by hardware.

0: \(V_{DDIO2}\) is below the threshold of the \(V_{DDIO2}\) voltage monitor.

1: \(V_{DDIO2}\) is equal or above the threshold of the \(V_{DDIO2}\) voltage monitor.

Bit 19 AVDO: analog voltage detector output on \(V_{DDA}\)

This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit.

0: \(V_{DDA}\) is equal or higher than the AVD threshold selected with the ALS[2:0] bits.

1: \(V_{DDA}\) is lower than the AVD threshold selected with the ALS[2:0] bits.

Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after standby or reset until the AVDEN bit is set.

Bits 18:0 Reserved, must be kept at reset value.

9.11.11 PWR wakeup status clear register (PWR_WUSCR)

Each bit CWUFx is protected against unprivileged access when NSPRIV = 1.

Address offset: 0x040

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CWUF 5CWUF 4CWUF 3CWUF 2CWUF 1
wwwww

Bits 31:5 Reserved, must be kept at reset value.

Bits 4:0 CWUFx: clear wakeup pin flag for WUFx (x = 5 to 1)

These bits are always read as 0.

0: no effect

1: writing 1 clears the WUFx wakeup pin flag (bit is cleared to 0 by hardware).

9.11.12 PWR wakeup status register (PWR_WUSR)

Address offset: 0x044

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WUF5WUF4WUF3WUF2WUF1
rrrrr

Bits 31:5 Reserved, must be kept at reset value.

Bits 4:0 WUFx: wakeup pin WUFx flag (x = 5 to 1)

This bit is set by hardware and cleared only by a RESET pin or by setting the CWUFx bit in PWR_WUSCR register.

0: no wakeup event occurred.

1: a wakeup event received from WUFx pin.

9.11.13 PWR wakeup configuration register (PWR_WUCR)

Each bit WUPENx is protected against unprivileged accesswhen NSPRIV=1.

Address offset: 0x048

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.WUPPUPD5[1:0]WUPPUPD4[1:0]WUPPUPD3[1:0]WUPPUPD2[1:0]WUPPUPD1[1:0]
rwwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.WUPP 5WUPP 4WUPP 3WUPP 2WUPP 1Res.Res.Res.WUPE N5WUPE N4WUPE N3WUPE N2WUPE N1
rwrwrwrwrwrwrwrwrwrw

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:16 WUPPUPDx[1:0]: wakeup pin pull configuration for WKUPx (x = 5 to 1)

These bits define the I/O pad pull configuration used when WUPENx = 1. The associated GPIO port pull configuration must be set to the same value or to 00. The wakeup pin pull configuration is kept in Standby mode.

Bits 15:13 Reserved, must be kept at reset value.

Bits 12:8 WUPPx: wakeup pin polarity bit for WUPx (x = 5 to 1)

These bits define the polarity used for event detection on WUPx external wakeup pin.

Bits 7:5 Reserved, must be kept at reset value.

Bits 4:0 WUPENx: enable wakeup pin WUPx (x = 5 to 1)

These bits are set and cleared by software.

Note: an additional wakeup event is detected if WUPx pin is enabled (by setting the WUPENx bit) when WUPx pin level is already high when WUPPx selects rising edge, or low when WUPPx selects falling edge.

ST logo
ST logo

9.11.14 PWR I/O retention register (PWR_IORETR)

This register is protected against unprivileged access when NSPRIV=1.

Address offset: 0x050

Reset value: 0x0001 0001

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JTAGIO
RETEN
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IORET
EN
rw

Bits 31:17 Reserved, must be kept at reset value.

Bit 16 JTAGIORETEN: IO retention enable for JTAG IOs

0: IO Retention mode is disabled.

1: IO Retention mode is enabled for PA13, PA14, PA15 and PB4.

when entering into Standby mode, the output is sampled, and applied to the output IO during the Standby power mode

Bits 15:1 Reserved, must be kept at reset value.

Bit 0 IORETEN: IO retention enable:

0: IO Retention mode is disabled.

1: IO Retention mode is enabled for all IOs except the ones supporting the standby functionality (PC13, PC14 and PC15) and JTAG IOs (PA13, PA14, PA15, PB4).

When entering into Standby mode, the output is sampled, and applied to the output IO during the Standby power mode.

Note: the IO state is not retained if the DBG_STANDBY bit is set in DBGMCU_CR register.

9.11.15 PWR privilege configuration register (PWR_PRIVCFGR)

This register can be written only when the access is privileged. It can be read by privileged or unprivileged access.

Address offset: 0x104

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NSPRI
V
Res.
rw

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 NSPRIV: PWR functions privilege configuration

Set and reset by software. This bit can be written only by privileged access.

0: Read and write to PWR functions can be done by privileged or unprivileged access.

1: Read and write to PWR functions can be done by privileged access only.

Bit 0 Reserved, must be kept at reset value.

9.11.16 PWR register map

Table 62. PWR register map and reset values

OffsetRegister313029282726252423222120191817161514131211109876543210
0x000PWR_PMCERRes.Res.Res.Res.Res.SRAM1SOSRAM2SORes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AVD_READYBOOSTERes.Res.FLPSRes.CSSFRes.Res.Res.Res.svOS[1:0]Res.LPMS
Reset value000000110
0x004PWR_PMSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SBFSTOPFRes.Res.Res.Res.Res.
Reset value00
0x008 to 0x00FReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x010PWR_VOSCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.vOS[1:0]Res.Res.Res.Res.
Reset value00
0x014PWR_VOSSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ACTVOS[1:0]ACTVOSRDYRes.Res.Res.Res.Res.Res.Res.Res.Res.VOSRDYRes.Res.Res.
Reset value0011
0x018 to 0x01FReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x020PWR_BDCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VBRRes.Res.Res.Res.Res.Res.MONENBRENRes.
Reset value00000
0x024PWR_DBPCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBPRes.
Reset value00
0x028PWR_BDSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x02CReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x030PWR_SCCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0x034PWR_VMCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
ST logo
ST logo

Table 62. PWR register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x03CPWR_VMSRRes.Res.Res.Res.Res.Res.Res.Res.Res.PVDDRes.Res.0 VDDIO2RDYAVDDRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000
0x040PWR_WUSCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CWUF5CWUF4CWUF3CWUF2CWUF1
Reset value000000
0x044PWR_WUSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WUF5WUF4WUF3WUF2WUF1
Reset value000000
0x048PWR_WUCRRes.Res.Res.Res.Res.Res.Res.WUPPUPD5WUPPUPD4WUPPUPD3WUPPUPD2WUPPUPD1Res.Res.Res.Res.Res.Res.Res.WUPP5WUPP4WUPP3WUPP2WUPP1Res.Res.Res.WUPEN5WUPEN4WUPEN3WUPEN2WUPEN1
Reset value0000000000000000000000000
0x04CReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
0x050PWR_IORETRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.JTAGIORETENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IORETEN
Reset value11
0x054 to 0x0FFReservedRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
0x104PWR_PRIVCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NSPRIVRes.Res.Res.Res.
Reset value0
Refer to Section 2.2 for the register boundary addresses.