5. Power controller (PWRC)

The Power controller block control the analog supplies block and manages the startup, active and low power phase of the device including the transition from one state to another.

5.1 Features

The Power controller block supports the following features:

5.2 Power supply domains

The STM32WB09xE device embeds three power domains:

The digital power supplied are provided by different regulators:

An embedded SMPS step down converter is available (inserted between the external power and the LDOs).

Figure 4 shows an overview of the different regulators and connections between the power supplies domains.

Figure 4. Power supply domains overview

Block diagram of power supply domains overview showing the connection between external power, regulators, and various system domains.

The diagram illustrates the power supply architecture. At the top, external power lines are shown for \(V_{DDIO}\), \(V_{DDSD}\), and \(V_{FBSD}\). These lines feed into a central VREG PAD block. Within the VREG PAD, there are two switches controlled by CMDNO and CMDNI signals. The LP-Reg (Low Power Regulator) is connected to the \(V_{DDIO}\) line and its output is controlled by the VGATEN signal from the VREG PAD. The MLDO (Main LDO) is connected to the \(V_{DDSD}\) line and its output is controlled by the VGATER signal from the VREG PAD. The SMPS (Switched Mode Power Supply) is also connected to the \(V_{DDSD}\) line and its output feeds into the RFLDOs (RF LDOs) block. The RFLDOs output \(V_{RF}\) is connected to the Analog RF block. The VREG PAD also provides \(V_{DD12O}\) and \(V_{DD12I}\) outputs. These outputs are connected to three main system domains: the V33 domain (VDDIO) containing HSE, LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33; the AlwaysOn domain (VDD12O) containing BLE_wakeup, RTC, IWDG, LPUART, PWRCO, and RCCO; and the Interruptible domain (VDD12I) containing CPU, RF_FSM, BLE, Peripherals, and RCCI. The diagram is labeled MSv58720V1 in the bottom right corner.

Block diagram of power supply domains overview showing the connection between external power, regulators, and various system domains.

5.3 Power voltage supervisor

The STM32WB09xE device embeds several power voltage monitoring:

5.3.1 Power on reset POR / power down reset (PDR) / brown-out reset (BOR)

The device has an integrated power on reset / power down reset, coupled with a brown-out reset circuitry.

During power on, the device remains in reset mode as long as VDDIO is below a \(V_{POR}\) threshold (typically 1.60 V).

During power down, the PDR puts the device under reset when the supply voltage (VDD) drops below the \(V_{PDR}\) threshold (around 20mV below \(V_{POR}\)). The PDR feature is always enabled.

Figure 5. Power on reset/power down reset waveform

Figure 5: Power on reset/power down reset waveform. The graph shows VDDIO voltage (Y-axis) versus time (T, X-axis). The VDDIO voltage ramps up from zero, crosses the POR threshold, reaches a steady state, and then ramps down, crossing the PDR/BOR threshold. The hysteresis is the voltage difference between the POR and PDR/BOR thresholds. The PORESETn signal is low during the reset period, which starts when VDDIO crosses the POR threshold and ends after a time T_TEMPO following the crossing of the PDR/BOR threshold.

The figure is a timing diagram showing the relationship between the supply voltage \(V_{DDIO}\) and the reset signal PORESETn. The vertical axis represents \(V_{DDIO}\) and the horizontal axis represents time T. \(V_{DDIO}\) starts at zero, ramps up linearly, crosses a dashed line labeled 'POR', reaches a plateau, and then ramps down linearly, crossing another dashed line labeled 'PDR / BOR'. The vertical distance between these two dashed lines is labeled 'hysteresis'. The PORESETn signal is shown as a digital waveform. It is in a low state (active reset) starting from the beginning of the time axis until a point marked by a vertical dashed line. This point is \(T_{TEMPO}\) after the \(V_{DDIO}\) signal crosses the 'PDR / BOR' threshold. After this delay, PORESETn transitions to a high state (inactive).

Figure 5: Power on reset/power down reset waveform. The graph shows VDDIO voltage (Y-axis) versus time (T, X-axis). The VDDIO voltage ramps up from zero, crosses the POR threshold, reaches a steady state, and then ramps down, crossing the PDR/BOR threshold. The hysteresis is the voltage difference between the POR and PDR/BOR thresholds. The PORESETn signal is low during the reset period, which starts when VDDIO crosses the POR threshold and ends after a time T_TEMPO following the crossing of the PDR/BOR threshold.

With typical values as follows:

The Brown-Out reset (BOR) generates a device reset when the power supply (VDD) drops under \(V_{PDR}\).

This feature is always active except during the Shutdown mode where the software can decide to enable it or not (through PWRC_CR1.ENSDNBOR bit).

5.3.2 Programmable voltage detector (PVD)

The PVD can be used to monitor:

The PVD can be enabled or disabled through PWRC_CR2.PVDE bit.

When the feature is enabled and the PVD measure a voltage below the comparator, a status flag is raised in the SYSCFG block that can generate an interrupt to the CPU if unmasked (see Section 8.2.8: I/O Interrupt Status and Clear register (IO_ISCR)).

5.4 Operating modes

The STM32WB09xE supports three main operating modes:

The transition from one mode to another is managed through a PMU state machine.

5.4.1 Run mode

In Run mode:

The power consumption may be reduced by gating the clock of the unused peripherals through the RCC clock enable registers (see Section 6.6.18: RCC register map).

Figure 6 shows the regulators and SMPS configuration in Run mode with a product with only 24 Kbytes of RAM.

Figure 6. Power regulators and SMPS configuration in Run mode

Block diagram of power regulators and SMPS configuration in Run mode. The diagram shows three main power domains: V33 domain (VDDIO), AlwaysOn domain (VDD12O), and Interruptible domain (VDD12I). Power is supplied from Vss through various regulators: LP-Reg, VREG PAD, SMPS, and MLDO. The VREG PAD contains CMDNO and CMDNI switches. The V33 domain includes HSE, LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain includes BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO, along with LS IO management. The Interruptible domain includes CPU, RF_FSM, BLE, Peripherals, and RCCI, along with LS IO control. Memory blocks RAM0, RAM1, RAM2, RAM3, and FLASH are also shown. Control signals like VDD12O and VDD12I are distributed to the HSI and other domains. A PU/PD block and IOs are connected to the V33 domain. A PAD reset signal is also present.

The diagram illustrates the power distribution and regulation for the RM0505 microcontroller in Run mode. It features three primary power domains: the V33 domain (VDDIO), the AlwaysOn domain (VDD12O), and the Interruptible domain (VDD12I). Power is supplied from the Vss rail through several regulators: an LP-Regulator, a VREG PAD (containing CMDNO and CMDNI switches), an SMPS, and an MLDO. The V33 domain (VDDIO) includes components like HSE, LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain (VDD12O) includes BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO, along with LS IO management. The Interruptible domain (VDD12I) includes the CPU, RF_FSM, BLE, Peripherals, and RCCI, along with LS IO control. Memory blocks RAM0, RAM1, RAM2, RAM3, and FLASH are connected to the system. Control signals VDD12O and VDD12I are distributed to the HSI and other domains. A PU/PD block and IOs are connected to the V33 domain. A PAD reset signal is also present.

MSv58721V1

Block diagram of power regulators and SMPS configuration in Run mode. The diagram shows three main power domains: V33 domain (VDDIO), AlwaysOn domain (VDD12O), and Interruptible domain (VDD12I). Power is supplied from Vss through various regulators: LP-Reg, VREG PAD, SMPS, and MLDO. The VREG PAD contains CMDNO and CMDNI switches. The V33 domain includes HSE, LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain includes BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO, along with LS IO management. The Interruptible domain includes CPU, RF_FSM, BLE, Peripherals, and RCCI, along with LS IO control. Memory blocks RAM0, RAM1, RAM2, RAM3, and FLASH are also shown. Control signals like VDD12O and VDD12I are distributed to the HSI and other domains. A PU/PD block and IOs are connected to the V33 domain. A PAD reset signal is also present.

5.4.2 Deepstop mode

The Deepstop is the only low power mode of the STM32WB09xE allowing to restart from a saved context environment and go on running the application at wakeup.

The conditions to enter the Deepstop mode are:

Note: If the MR_BLE is not used at all by the SoC (or not yet started), the following steps need to be done after any reset to allow low power modes (Deepstop and Shutdown):

In Deepstop mode:

A version of the Deepstop mode called Deepstop2 has been implemented to emulate the Deepstop mode without losing the debugger connection and breakpoints nor watchpoints.

Possible wakeup sources:

After wakeup from Deepstop, all the I/Os are in retention mode (except PA2 and PA3 in order to have SWJTAG available again); if DBGRET bit was set, before entering Deepstop mode, then at wakeup also PA2 and PA3 are in retention mode and SWJTAG is not available. To change I/Os configuration, when exiting Deepstop, it is necessary to reset GPIORET bit after having re-configured GPIO registers through Section 7.4: GPIO registers (this GPIO configuration, can be the same before entering Deepstop, or a new one). At wakeup, the hardware resources located in the VDD12i power domain are reset, the CPU reboots. The wakeup reason is visible in a PWRC register (see Section 5.7.5: Status register 1 (PWRC_SR1) for details).

Figure 7 shows the regulators and SMPS configuration in Deepstop mode, with a configuration requesting retention only on RAM1, RAM2 and RAM3 banks.

Figure 7. Power regulators and SMPS configuration in Deepstop mode(a)

Block diagram of power regulators and SMPS configuration in Deepstop mode. The diagram shows three main power domains: V33 domain (VDDIO), AlwaysOn domain (VDD12O), and Interruptible domain (VDD12I). The V33 domain includes HSE, LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain includes BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO. The Interruptible domain includes CPU, RF_FSM, BLE, Peripherals, and RCCI. Power regulators include LP-Reg, VREG PAD (containing CMDNO, CMDNI, and switches), HSI, SMPS, and MLDO. Memory blocks include RAM0, RAM1, RAM2, RAM3, and FLASH. Control blocks include PU/PD, IOs, LS, and IO control. Power supply pins Vss, VDDIO, and VDDSD are shown at the top. A note indicates that RAM2 and RAM3 are present depending on RAMRET1, 2, 3. The diagram is labeled MSv58722V1.

The diagram illustrates the power management architecture in Deepstop mode. It features three primary power domains: the V33 domain (VDDIO), the AlwaysOn domain (VDD12O), and the Interruptible domain (VDD12I). The V33 domain contains low-power peripherals like HSE, LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain includes wake-up and watchdog components: BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO. The Interruptible domain houses the main system components: CPU, RF_FSM, BLE, Peripherals, and RCCI. Power is supplied through several regulators: LP-Reg, VREG PAD (which includes CMDNO, CMDNI, and control switches), HSI, SMPS, and MLDO. Memory is organized into RAM0, RAM1, RAM2, and RAM3, with RAM2 and RAM3 being optional based on RAMRET1, 2, 3 settings. A FLASH memory block is also present. Control logic includes PU/PD, IOs, LS, and IO control. The diagram also shows the Vss, VDDIO, and VDDSD power pins and a PAD reset input.

MSv58722V1

Block diagram of power regulators and SMPS configuration in Deepstop mode. The diagram shows three main power domains: V33 domain (VDDIO), AlwaysOn domain (VDD12O), and Interruptible domain (VDD12I). The V33 domain includes HSE, LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain includes BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO. The Interruptible domain includes CPU, RF_FSM, BLE, Peripherals, and RCCI. Power regulators include LP-Reg, VREG PAD (containing CMDNO, CMDNI, and switches), HSI, SMPS, and MLDO. Memory blocks include RAM0, RAM1, RAM2, RAM3, and FLASH. Control blocks include PU/PD, IOs, LS, and IO control. Power supply pins Vss, VDDIO, and VDDSD are shown at the top. A note indicates that RAM2 and RAM3 are present depending on RAMRET1, 2, 3. The diagram is labeled MSv58722V1.

a. Strikethrough text indicates that the feature is OFF in Deepstop mode.

5.4.3 Shutdown mode

The Shutdown mode is the least power consuming mode.

The conditions to enter the Shutdown mode are the same conditions needed to enter in Deepstop mode except that the PWRC_CR1.LPMS bit must be equal to 1 (PWRC_DBGR.DEEPSTOP2 bit must be maintained equal to 0).

In Shutdown mode:

A Shutdown exit is similar to a POR startup of the board. The associated reset reason is the PORRSTF flag or EWUF flag (see Section 6.6.15: Clock control and reset status register (RCC_CSR) for reset reason flags detail or Shutdown I/O Wakeup Flag register (PWRC_SDWN_WUF) for PB0 wakeup flag).

The BOR feature may be enabled or disabled during Shutdown through the PWRC_CR1.ENSDNBOR bit).

Figure 8 shows the regulators and SMPS configuration in Shutdown mode, configured with the BOR reset disabled.

Figure 8. Power regulators and SMPS configuration in Shutdown mode(a)

Block diagram of power regulators and SMPS configuration in Shutdown mode. The diagram shows three main power domains: V33 domain (VDDIO), AlwaysOn domain (VDD12O), and Interruptible domain (VDD12I). The V33 domain includes LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain includes BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO. The Interruptible domain includes CPU, RF_FSM, BLE, Peripherals, and RCCI. Power regulators include LP-Reg, SMPS, MLDO, and HSI. Control blocks include VREG PAD, CMDNO, CMDNI, LS IO management, and LS IO control. Memory blocks include RAM0, RAM1, RAM2, RAM3, and FLASH. External pins include Vss, VDDIO, VDDSD, PAD reset, and I/Os. Strikethrough text indicates features that are OFF in Shutdown mode.

The diagram illustrates the power management architecture in Shutdown mode. It features three primary power domains: the V33 domain (VDDIO), the AlwaysOn domain (VDD12O), and the Interruptible domain (VDD12I). The V33 domain contains components like LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain includes BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO. The Interruptible domain houses the CPU, RF_FSM, BLE, Peripherals, and RCCI. Power regulation is managed by LP-Reg, SMPS, MLDO, and HSI. Control logic is provided by VREG PAD, CMDNO, CMDNI, LS IO management, and LS IO control. Memory is organized into RAM0, RAM1, RAM2, RAM3, and FLASH. External interfaces include Vss, VDDIO, VDDSD, PAD reset, and I/Os. Strikethrough text indicates features that are disabled in Shutdown mode.

MSv58723V1

Block diagram of power regulators and SMPS configuration in Shutdown mode. The diagram shows three main power domains: V33 domain (VDDIO), AlwaysOn domain (VDD12O), and Interruptible domain (VDD12I). The V33 domain includes LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain includes BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO. The Interruptible domain includes CPU, RF_FSM, BLE, Peripherals, and RCCI. Power regulators include LP-Reg, SMPS, MLDO, and HSI. Control blocks include VREG PAD, CMDNO, CMDNI, LS IO management, and LS IO control. Memory blocks include RAM0, RAM1, RAM2, RAM3, and FLASH. External pins include Vss, VDDIO, VDDSD, PAD reset, and I/Os. Strikethrough text indicates features that are OFF in Shutdown mode.

a. Strikethrough text indicates that the feature is OFF in Shutdown mode.

5.4.4 Operating modes transition management

The PWRC block manages the switches from an operating mode to another through a state machine.

Figure 9. PWRC state machine for operating modes transition

State machine diagram for PWRC operating modes transition showing transitions between START (reset), RUN, DEEPSTOP, and SHUTDOWN states.
graph TD; START((START<br>reset)) -- "RESETn" --> RUN((RUN<br>CPU: CRUN/CSLEEP<br>RF: ON/OFF)); RUN -- "CSTOP &amp; RF OFF &amp; CR1.LPMS=SHUTDOWN" --> SHUTDOWN((SHUTDOWN)); RUN -- "CSTOP &amp; RF OFF &amp; CR1.LPMS=DEEPSTOP" --> DEEPSTOP((DEEPSTOP<br>CSTOP<br>RF:OFF)); DEEPSTOP -- "wakeup" --> RUN; SHUTDOWN --> START;

START
LPREG: OFF
MLDO: OFF
SMPS: PRECHARGE
RFLDO: OFF
LSI/LSE: OFF
HSI: OFF
HSE: OFF
POR

RUN
LPREG: ON/OFF
MLDO: ON (1.2V)
SMPS: ON/BYP
RFLDO: ON/OFF
LSI: ON/OFF
LSE: ON/OFF
HSI: ON
HSE: ON/OFF

STOP
LPREG: ON (0.95V)
MLDO: OFF
SMPS: PRECHARGE/(OPEN)
RFLDO: OFF
LSI: ON/OFF
LSE: ON/OFF
HSI: OFF
HSE: OFF

SHUTDOWN
LPREG: OFF
MLDO: OFF
SMPS: OFF
RFLDO: OFF
LSI/LSE: OFF
HSI: OFF
HSE: OFF
POR

CPU: CSLEEP => SLEEPING
CPU: CSTOP => DEEPSLEEP
RF: OFF=> Ready2Sleep

State machine diagram for PWRC operating modes transition showing transitions between START (reset), RUN, DEEPSTOP, and SHUTDOWN states.

5.5 SMPS step down regulator

The STM32WB09xE SMPS is a 20 mA output step down SMPS (switch mode power supply) converter.

The SMPS output voltage can be programmed from 1.2 V to 1.9 V. It is internally clock at 4 MHz or 8 MHz.

The SMPS can be in different configurations:

Except for the configuration SMPS OFF, a L/C BOM must be present on the board and connected to the \(V_{FBSD}\) pad (see Figure 10).

Figure 10. Power supply configuration

Figure 10 shows two power supply configurations for the SMPS step down converter. The left diagram, labeled 'SMPS supply configuration', shows the SMPS Step Down converter connected to VDD, VDDSD, VLXSD, and VFBSD pins. The VFBSD pin is connected to a capacitor (VCAP) and a ground. The output of the SMPS is connected to the Main LDO, RF LDO, and LP Reg. The right diagram, labeled 'NOSMPS supply configuration', shows the SMPS Step Down converter connected to VDD, VDDSD, VLXSD, and VFBSD pins. The VFBSD pin is connected to a capacitor (VCAP) and a ground. The output of the SMPS is connected to the Main LDO, RF LDO, and LP Reg.

The diagram illustrates two power supply configurations for the SMPS step down converter. Both configurations show the SMPS Step Down converter connected to \(V_{DD}\), \(V_{DDSD}\), \(V_{LXSD}\), and \(V_{FBSD}\) pins. In the 'SMPS supply configuration', the \(V_{FBSD}\) pin is connected to a capacitor (\(V_{CAP}\)) and a ground. In the 'NOSMPS supply configuration', the \(V_{FBSD}\) pin is also connected to a capacitor (\(V_{CAP}\)) and a ground. Both configurations show the output of the SMPS connected to the Main LDO, RF LDO, and LP Reg.

Figure 10 shows two power supply configurations for the SMPS step down converter. The left diagram, labeled 'SMPS supply configuration', shows the SMPS Step Down converter connected to VDD, VDDSD, VLXSD, and VFBSD pins. The VFBSD pin is connected to a capacitor (VCAP) and a ground. The output of the SMPS is connected to the Main LDO, RF LDO, and LP Reg. The right diagram, labeled 'NOSMPS supply configuration', shows the SMPS Step Down converter connected to VDD, VDDSD, VLXSD, and VFBSD pins. The VFBSD pin is connected to a capacitor (VCAP) and a ground. The output of the SMPS is connected to the Main LDO, RF LDO, and LP Reg.

The user must configure the provides the PWRC_CR5.SMPSBOMSEL[1:0] according to the BOM implemented on his board. The value to program is indicated in Table 11.

Table 11. SMPS BOM information

BOMInductance (L)Output capacitance (C)SMPSBOMSEL[1:0]
BOM11.5 µH2.2 µF00
BOM22.2 µH4.7 µF01
BOM310 µH4.7 µF10

The SMPS is managed by the PWRC through a state machine shown in Figure 11.

Figure 11. PWRC SMPS state machine overview

PWRC SMPS state machine overview diagram showing states STARTUP, SMPS_REQ, RUN, STOP, NOSMPS, PRECHARGE and signal transitions.
graph TD
    STARTUP([STARTUP]) -- RESETn --> STARTUP
    STARTUP --> SMPS_REQ([SMPS_REQ])
    SMPS_REQ -- "smps_rdy OR CR5.SMPSFRDY" --> RUN([RUN])
    RUN -- "ds_exit" --> STARTUP
    RUN -- "~CR5.NOSMPS" --> STOP([STOP])
    RUN -- "~CR5.SMPSFBYP & !CR5.NOSMPS" --> PRECHARGE([PRECHARGE])
    STOP -- "ds_entry" --> RUN
    STOP -- "!CR5.NOSMPS" --> NOSMPS([NOSMPS])
    NOSMPS -- "!CR5.SMPSFBYP" --> PRECHARGE
    PRECHARGE --> RUN

The diagram illustrates the PWRC SMPS state machine with the following states and transitions:

PWRC SMPS state machine overview diagram showing states STARTUP, SMPS_REQ, RUN, STOP, NOSMPS, PRECHARGE and signal transitions.

After a Power On reset sequence, the SMPS FSM always goes up to Run state.

From there, the SMPS FSM can stay in three states (others are transition states):

When the device enters in Deepstop mode, the PWRC automatically switches the SMPS from Run to Deepstop mode which can be:

5.6 I/O pull-ups/pull-downs during low power mode

When PWRC_CR1.APC is set (default configuration), the pull-up/-down of the IOs is controlled by the PWRC_PUCRx and PWRC_PDCRx registers of the PWRC block, instead of GPIOx_PUPDR register of the GPIO block. This feature avoids glitches on the lines by keeping the same pull-up/-down configuration during all the supported operating modes.

5.7 PWRC registers

Note: all the PWRC APB registers are only 16-bit registers. The 16 MSB bits are always stuck to 0.

5.7.1 Control register 1 (PWRC_CR1)

This register control the BOR in Shutdown, the low power mode selection and the IO control owner.

Address offset: 0x00

Reset value: 0x0000 0114

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.APCIBIAS_RUN_STATEIBIAS_RUN_AUTOENSDNBORLPMS
rwrwrwrwrw

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

Bit 4 APC: Apply pull-up/-down configuration from PWRC or GPIO register.

0: The GPIOx_PUPDR of the GPIO block are used to control the product pull-up/-down of the IOs.

1: The PWRC_PUCRx and PWRC_PDCRx of the PWRC block are used to control the product pull-up/-down of the IOs (default).

Bit 3 IBIAS_RUN_STATE: Enable/Disable IBIAS during Run mode when automatic mode is disabled.

– 0: IBIAS control is disabled (default).

– 1: IBIAS control is enabled.

Bit 2 IBIAS_RUN_AUTO: IBIAS_RUN_AUTO: Enable automatic IBIAS control during Run or Deepstop mode.

– 0: IBIAS control is manual (and controlled by IBIAS_RUN_STATE register)

– 1: IBIAS control is automatic (default).

Bit 1 ENSDNBOR: Enable BOR reset supervising during Shutdown mode.

0: No BOR is monitored during Shutdown mode (default).

1: BOR is monitored during Shutdown mode (a POR reset happens if VDDIO goes below 1.58V during Shutdown mode).

Note: Enabling this feature prevents blocking the device if VDDIO goes below supported voltages during Shutdown. However, it adds an overconsumption.

Bit 0 LPMS: Low Power Mode Selection.

This bit defines if the device enters Deepstop or Shutdown mode when both CPU and MR_BLE requests a low power mode entry.

0: Deepstop mode (default).

1: Shutdown mode.

Note: It is mandatory to ensure that PWRC_DBGR.DEEPSTOP2 bit is reset when LPMS bit is set before entering Shutdown mode.

5.7.2 Control register 2 (PWRC_CR2)

Address offset: 0x04

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.GPIORETRAMRET3RAMRET2RAMRET1DBGRETPVDLS[2:0]PVDE
rwrwrwrwrwrwrwrwrw

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

Bit 8 (1) GPIORET: GPIO retention enable.

Bit 7 RAMRET3: enable the RAM3 bank retention in Deepstop mode.

Bit 6 RAMRET2: enable the RAM2 bank retention in Deepstop mode.

Bit 5 RAMRET1: enable the RAM1 bank retention in Deepstop mode.

Bit 4 DBGRET: PA2 and PA3 retention enable after Deepstop

Bits 3:1 PVDLS[2:0]: Programmable Voltage Detector level selection:

Bit 0 PVDE: Programmable Voltage Detector enable.

Note: it's mandatory to ensure GPIORET bit is set before entering Deepstop unless the DEEPSTOP2 bit is set.

5.7.3 Control register 3 (PWRC_CR3)

This register manages the selection of the wakeup sources to get out of Deepstop mode.

Note: All wakeup sources are disabled by default after reset.

Address offset: 0x08

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
EIWLEIWL2EWBLEHCPUEWBLEEWU11EWU10EWU9EWU8EWU7EWU6EWU5EWU4EWU3EWU2EWU1EWU0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 15 EIWL: Enable wakeup on Internal event (RTC).

0: Wakeup on internal line is disabled (default).

1: Wakeup on internal line is enabled.

Bit 14 EIWL2: Enable wakeup on Internal event (LPUART).

0: Wakeup on internal line is disabled (default).

1: Wakeup on internal line is enabled.

Bit 13 EWBLEHCPU: Enable wakeup on Bluetooth LE Host CPU event.

0: Wakeup on Bluetooth LE Host CPU line is disabled (default).

1: Wakeup on Bluetooth LE Host CPU line is enabled.

Bit 12 EWBLE: Enable wakeup on Bluetooth LE event.

0: Wakeup on Bluetooth LE line is disabled (default).

1: Wakeup on Bluetooth LE line is enabled.

Bit 11 EWU11: Enable wakeup on PA11 I/O event.

0: Wakeup on PA11 I/O line is disabled (default).

1: Wakeup on PA11 I/O line is enabled.

Bit 10 EWU10: Enable wakeup on PA10 I/O event.

0: Wakeup on PA10 I/O line is disabled (default).

1: Wakeup on PA10 I/O line is enabled.

Bit 9 EWU9: Enable wakeup on PA9 I/O event.

0: Wakeup on PA9 I/O line is disabled (default).

1: Wakeup on PA9 I/O line is enabled.

Bit 8 EWU8: Enable wakeup on PA8 I/O event.

0: Wakeup on PA8 I/O line is disabled (default).

1: Wakeup on PA8 I/O line is enabled.

Bit 7 EWU7: Enable wakeup on PB7 I/O event.

0: Wakeup on PB7 I/O line is disabled (default).

1: Wakeup on PB7 I/O line is enabled.

5.7.4 Control register 4 (PWRC_CR4)

This register manages the polarity for the I/Os wakeup sources to get out of Deepstop mode.

Note: The wakeup event are only edge detection, not level detection.

Address offset: 0x0C

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.WUP11WUP10WUP9WUP8WUP7WUP6WUP5WUP4WUP3WUP2WUP1WUP0
rwrwrwrwrwrwrwrwrwrwrwrw

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

5.7.5 Status register 1 (PWRC_SR1)

This register provides the information concerning which source woke up the device after a Deepstop.

Address offset: 0x10

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
IWUFIWUF2WBLEHCPUFWBLEFWUF11WUF10WUF9WUF8WUF7WUF6WUF5WUF4WUF3WUF2WUF1WUF0
rrc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1

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

Bit 15 IWUF: Internal wakeup flag (RTC).

Note: The user must clear the RTC wakeup flag inside the RTC IP to clear this bit (mirror of the RTC wakeup line on the PWRC block).

Bit 14 IWUF2: Internal wakeup 2 flag (LPUART).

Cleared by writing 1 in this bit.

Note: The user must clear before LPUART wakeup flag inside the LPUART IP to clear this bit.

Bit 13 WBLEHCPUF: Bluetooth LE Host CPU wakeup flag.

Cleared by writing 1 in this bit.

Bit 12 WBLEF: Bluetooth LE wakeup flag.

Cleared by writing 1 in this bit.

Bit 11 WUF11: PA11 I/O wakeup flag.

Cleared by writing 1 in this bit.

Bit 10 WUF10: PA10 I/O wakeup flag.

Cleared by writing 1 in this bit.

Bit 9 WUF9: PA9 I/O wakeup flag.

Cleared by writing 1 in this bit.

5.7.6 Status register 2 (PWRC_SR2)

This register provides some status flags related to the Power Voltage Detector and the SMPS blocks.

Address offset: 0x14

Reset value: 0x0000 -3-6

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
IOBOOTVAL[3:0]PVDORes.Res.REGLPSIOBOOTVAL2[3:0]Res.SMPSRDYSMPSENSMPSBYPR
rrrrrrrrrrrrr

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

Bits 15:12 IOBOOTVAL: I/Os value latched at POR.

Note: This information may be used but the boot loader to manage boot on serial interfaces for instance.

Bit 11 PVDO: Power voltage Detector Output.

When the Power voltage Detector is enabled (PWRC_CR2.PVDE=1), this bit indicates when the VDDIO is lower than the selected threshold (through PWRC_CR2.PVDLS bit field).

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

Bit 8 REGLPS: Low Power regulator ready status.

Bits 7:4 IOBOOTVAL2: I/Os value latched at POR.

Note: This information may be used but the boot loader to manage boot on serial interfaces for instance.

Bit 3 Reserved, must be kept at reset value.

Bit 2 SMPSRDY: SMPS ready status.

0: SMPS regulator is not ready.

1: SMPS regulator is ready.

Bit 1 SMPSENR: SMPS Run mode status.

This bit mirrors the internal ENABLE_3V3 control signal connected to the SMPS and driven by the hardware.

0: SMPS regulator is not regulating (in PRECHARGE or NOSMPS mode).

1: SMPS regulator is in Run mode.

Bit 0 SMPSBYPR: SMPS PRECHARGE mode status.

This bit mirrors the PRECHARGE control state of the SMPS.

0: SMPS regulator is not in PRECHARGE mode.

1: SMPS regulator is in PRECHARGE mode (VSMPS connected to VDDIO)

5.7.7 Control register 5 (PWRC_CR5)

This register is used to configure the SMPS.

Address offset: 0x1C

Reset value: 0x0000 6014

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.SMPS_PRECH_CUR_SEL[1:0]CLKDETR_DISABLESMPS_ENA_DCMNOSMPSSMPSFBYPSMPSLPOPENRes.Res.SMPSBOMSEL[1:0]SMPSLVL[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 14:13 SMPS_PRECH_CUR_SEL[1:0]: Select SMPS PRECHARGE limit current.

00: 2.5 mA

01: 5 mA

10: 10 mA

11: 20 mA (default)

Bit 12 CLKDETR_DISABLE: disable the SMPS clock detection

The SMPS clock detection enables an automatic SMPS bypass switching in case of unexpected loss of the SMPS clock.

0: SMPS clock detection mechanism enabled (default).

1: SMPS clock detection mechanism disabled.

Bit 11 SMPS_ENA_DCM: Discontinuous conduction mode enable.

0: SMPS DCM is disabled (default).

1: SMPS DCM is enabled.

Bit 10 NOSMPS: No SMPS mode.

0: SMPS is enabled (default).

1: SMPS is disabled.

Note: this configuration (SMPS disabled) should be used only when the SMPS_FB pad is directly connected to the VBATT (external voltage), without L/C BOM.

Bit 9 SMPSFBYP: Force the SMPS in PRECHARGE mode.

0: no effect (default).

1: SMPS is disabled and bypassed.

Note: when this bit is set, the VSMPS output is connected to the VDDIO. The actual state of the SMPS is visible in the SMPS mode status bits in PWRC_SR2 register.

Bit 8 SMPSLPOPEN: Select OPEN mode instead of PRECHARGE mode for the SMPS during Deepstop.

0: in Deepstop, the SMPS is in PRECHARGE mode with output connected to VDDIO (default).

1: in Deepstop, the SMPS is disabled with floating output.

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

Bits 5:4 SMPSBOMSEL[1:0]: Select the SMPS BOM.

Note: BOM correspondence/details is available in Table 11: SMPS BOM information.

Bits 3:0 SMPSLVL[3:0]: Select the SMPS output voltage level.

This bit field selects the SMPS voltage output level with a granularity of ~50mV.

The SMPS output voltage level, \(V_{SMPS}\), must be configured such that \(V_{BAT} - V_{SMPS} \geq 0.2V\)

Warning: The SMPS output voltage must not be changed of more than one step while the SMPS is in use. The sequence to reprogram a new SMPS output voltage is described in Section 5.8.2: SMPS output level re-programming.

5.7.8 I/O Port A pull-up control register (PWRC_PUCRA)

This register is used to control the pull-up for the PA0 to PA15 I/O when the PWRC_CR1.APC bit is set.

Caution: If both pull-up and pull-down are enabled in the PWRC_PUCRA and PWRC_PDCRA registers for an I/O, then pull-down is applied.

The user must take care to disable the pull on I/O programmed in Analog mode.

Address offset: 0x20

Reset value: 0x0000 0F07

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.PUA11PUA10PUA9PUA8Res.Res.Res.Res.PUA3PUA2PUA1PUA0
rwrwrwrwrwrwrwrw

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

Bit 11 PUA11: Pull-up enable for PA11 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 10 PUA10: Pull-up enable for PA10 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 9 PUA9: Pull-up enable for PA9 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 8 PUA8: Pull-up enable for PA8 I/O.

0: No pull-up.

1: Pull-up enabled (default).

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

Bit 3 PUA3: Pull-up enable for PA3 I/O.

0: No pull-up (default).

1: Pull-up enabled.

Bit 2 PUA2: Pull-up enable for PA2 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 1 PUA1: Pull-up enable for PA1 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 0 PUA0: Pull-up enable for PA0 I/O.

0: No pull-up.

1: Pull-up enabled (default).

5.7.9 I/O Port A pull-down control register (PWRC_PDCRA)

This register is used to control the pull-down for the PA0 to PA15 I/O when the PWRC_CR1.APC bit is set.

Caution: If both pull-up and pull-down are enabled in the PWRC_PUCRA and PWRC_PDCRA registers for an I/O, then pull-down is applied.

The user must take care to disable the pull on I/O programmed in Analog mode.

Address offset: 0x24

Reset value: 0x0000 0008

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.PDA11PDA10PDA9PDA8Res.Res.Res.Res.PDA3PDA2PDA1PDA0
rwrwrwrwrwrwrwrw

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

Bit 11 PDA11: pull-down enable for PA11 I/O.
0: No pull-down (default).
1: pull-down enabled.

Bit 10 PDA10: pull-down enable for PA10 I/O.
0: No pull-down (default).
1: pull-down enabled.

Bit 9 PDA9: pull-down enable for PA9 I/O.
0: No pull-down (default).
1: pull-down enabled.

Bit 8 PDA8: pull-down enable for PA8 I/O.
0: No pull-down (default).
1: pull-down enabled.

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

Bit 3 PDA3: pull-down enable for PA3 I/O.
0: No pull-down.
1: pull-down enabled (default).

Bit 2 PDA2: pull-down enable for PA2 I/O.
0: No pull-down (default).
1: pull-down enabled.

Bit 1 PDA1: pull-down enable for PA1 I/O.
0: No pull-down (default).
1: pull-down enabled.

Bit 0 PDA0: pull-down enable for PA0 I/O.
0: No pull-down (default).
1: pull-down enabled.

5.7.10 I/O Port B pull-up control register (PWRC_PUCRB)

This register is used to control the pull-up for the PB0 to PB15 I/O when the PWRC_CR1.APC bit is set.

Caution: If both pull-up and pull-down are enabled in the PWRC_PUCRA and PWRC_PDCRA registers for an I/O, then pull-down is applied.

The user must take care to disable the pull on I/O programmed in Analog mode.

Address offset: 0x28

Reset value: 0x0000 F0FF

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
PUB15PUB14PUB13PUB12Res.Res.Res.Res.PUB7PUB6PUB5PUB4PUB3PUB2PUB1PUB0
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 15 PUB15: Pull-up enable for PB15 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 14 PUB14: Pull-up enable for PB14 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 13 PUB13: Pull-up enable for PB13 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 12 PUB12: Pull-up enable for PB12 I/O.

0: No pull-up.

1: Pull-up enabled (default).

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

Bit 7 PUB7: Pull-up enable for PB7 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 6 PUB6: Pull-up enable for PB6 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 5 PUB5: Pull-up enable for PB5 I/O.

0: No pull-up.

1: Pull-up enabled (default).

Bit 4 PUB4: Pull-up enable for PB4 I/O.

0: No pull-up.

1: Pull-up enabled (default).

5.7.11 I/O Port B pull-down control register (PWRC_PDCRB)

This register is used to control the pull-down for the PB0 to PB15 I/O when the PWRC_CR1.APC bit is set.

Caution: If both pull-up and pull-down are enabled in the PWRC_PUCRA and PWRC_PDCRA registers for an I/O, then pull-down is applied.

The user must take care to disable the pull on I/O programmed in Analog mode.

Address offset: 0x2C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
PDB15PDB14PDB13PDB12Res.Res.Res.Res.PDB7PDB6PDB5PDB4PDB3PDB2PDB1PDB0
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 15 PDB15: pull-down enable for PB15 I/O.

0: No pull-down (default).

1: pull-down enabled.

Bit 14 PDB14: pull-down enable for PB14 I/O.

0: No pull-down (default).

1: pull-down enabled.

Bit 13 PDB13: pull-down enable for PB13 I/O.

0: No pull-down (default).

1: pull-down enabled.

Bit 12 PDB12: pull-down enable for PB12 I/O.

0: No pull-down (default).

1: pull-down enabled.

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

Bit 7 PDB7: pull-down enable for PB7 I/O.

0: No pull-down (default).

1: pull-down enabled.

Bit 6 PDB6: pull-down enable for PB6 I/O.

0: No pull-down (default).

1: pull-down enabled.

Bit 5 PDB5: pull-down enable for PB5 I/O.

0: No pull-down (default).

1: pull-down enabled.

Bit 4 PDB4: pull-down enable for PB4 I/O.

0: No pull-down (default).

1: pull-down enabled.

Bit 3 PDB3: pull-down enable for PB3 I/O.
0: No pull-down (default).
1: pull-down enabled.

Bit 2 PDB2: pull-down enable for PB2 I/O.
0: No pull-down (default).
1: pull-down enabled.

Bit 1 PDB1: pull-down enable for PB1 I/O.
0: No pull-down (default).
1: pull-down enabled.

Bit 0 PDB0: pull-down enable for PB0 I/O.
0: No pull-down (default).
1: pull-down enabled.

5.7.12 Control register 6 (PWRC_CR6)

This register manages the selection of the wakeup sources to get out of Deepstop mode.

Note: All wakeup sources are disabled by default after reset.

Address offset: 0x30

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.EWU19EWU18EWU17EWU16EWU15EWU14EWU13EWU12
rwrwrwrwrwrwrwrw

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

Bit 7 EWU19: Enable wakeup on PB15 I/O event.

0: Wakeup on PB15 I/O line is disabled (default).

1: Wakeup on PB15 I/O line is enabled.

Bit 6 EWU18: Enable wakeup on PB14 I/O event.

0: Wakeup on PB14 I/O line is disabled (default).

1: Wakeup on PB14 I/O line is enabled.

Bit 5 EWU17: Enable wakeup on PB13 I/O event.

0: Wakeup on PB13 I/O line is disabled (default).

1: Wakeup on PB13 I/O line is enabled.

Bit 4 EWU16: Enable wakeup on PB12 I/O event.

0: Wakeup on PB12 I/O line is disabled (default).

1: Wakeup on PB12 I/O line is enabled.

Bit 3 EWU15: Enable wakeup on PA3 I/O event.

0: Wakeup on PA3 I/O line is disabled (default).

1: Wakeup on PA3 I/O line is enabled.

Bit 2 EWU14: Enable wakeup on PA2 I/O event.

0: Wakeup on PA2 I/O line is disabled (default).

1: Wakeup on PA2 I/O line is enabled.

Bit 1 EWU13: Enable wakeup on PA1 I/O event.

0: Wakeup on PA1 I/O line is disabled (default).

1: Wakeup on PA1 I/O line is enabled.

Bit 0 EWU12: Enable wakeup on PA0 I/O event.

0: Wakeup on PA0 I/O line is disabled (default).

1: Wakeup on PA0 I/O line is enabled.

5.7.13 Control register 7 (PWRC_CR7)

This register manages the polarity for the I/Os wakeup sources to get out of Deepstop mode.

Note: The wakeup event are only edge detection, not level detection.

Address offset: 0x34

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.WUP19WUP18WUP17WUP16WUP15WUP14WUP13WUP12
rwrwrwrwrwrwrwrw

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

Bit 7 WUP19: Wakeup polarity for PB15 IO event.

Bit 6 WUP18: Wakeup polarity for PB14 IO event.

Bit 5 WUP17: Wakeup polarity for PB13 IO event.

Bit 4 WUP16: Wakeup polarity for PB12 IO event.

Bit 3 WUP15: Wakeup polarity for PA3 IO event.

Bit 2 WUP14: Wakeup polarity for PA2 IO event.

Bit 1 WUP13: Wakeup polarity for PA1 IO event.

Bit 0 WUP12: Wakeup polarity for PA0 IO event.

5.7.14 Status register 3 (PWRC_SR3)

This register provides the information concerning which source woke up the device after a Deepstop.

Address offset: 0x38

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.WUF19WUF18WUF17WUF16WUF15WUF14WUF13WUF12
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1

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

Bit 7 WUF19: PB15 I/O wakeup flag.

0: no wakeup from PB15 I/O occurred since last clear.

1: a wakeup from PB15 I/O occurred since last clear.

Cleared by writing 1 in this bit.

Bit 6 WUF18: PB14 I/O wakeup flag.

0: no wakeup from PB14 I/O occurred since last clear.

1: a wakeup from PB14 I/O occurred since last clear.

Cleared by writing 1 in this bit.

Bit 5 WUF17: PB13 I/O wakeup flag.

0: no wakeup from PB13 I/O occurred since last clear.

1: a wakeup from PB13 I/O occurred since last clear.

Cleared by writing 1 in this bit.

Bit 4 WUF16: PB12 I/O wakeup flag.

0: no wakeup from PB12 I/O occurred since last clear.

1: a wakeup from PB12 I/O occurred since last clear.

Cleared by writing 1 in this bit.

Bit 3 WUF15: PA3 I/O wakeup flag.

0: no wakeup from PA3 I/O occurred since last clear.

1: a wakeup from PA3 I/O occurred since last clear.

Cleared by writing 1 in this bit.

5.7.15 Shutdown I/O Wakeup Enable register (PWRC_SDWN_WUEN)

Address offset: 0x3C

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.WUEN
rw

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

5.7.16 Shutdown I/O Wakeup Polarity register (PWRC_SDWN_WUPOL)

Address offset: 0x40

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.WUPO
L
rw

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

Bit 0 WUPOL: PB0 I/O wakeup from shutdown polarity.

0: PB0 pin wakeup from shutdown on high pulse or high level detection.

1: PB0 pin wakeup from shutdown on low pulse or low level detection.

5.7.17 Shutdown I/O Wakeup Flag register (PWRC_SDWN_WUF)

This register is reset on PORESETn.

Address offset: 0x44

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.WUF
rc_w0

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

Bit 0 WUF: PB0 I/O wakeup from shutdown flag.

0: shutdown wakeup from PB0 pin not occurred.

1: shutdown wakeup from PB0 pin occurred.

5.7.18 Debug register (PWRC_DBGR)

This register is used for debug features.

Address offset: 0x84

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
DIS_PRECH[2:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DEEPSTOP2
rwrwrwrw
ST logo
ST logo

5.7.19 Extended status and reset register (PWRC_EXTSRR)

This register provides flags about Bluetooth activity start and Deepstop sequence occurrence or not.

Address offset: 0x88

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.RFPHASEFDEEPSTOPFRes.Res.Res.Res.Res.Res.Res.Res.Res.
rc_w1rc_w1

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

Bit 10 RFPHASEF: RFPHASE Flag.

0: the Bluetooth LE IP does not require any attention.

1: the Bluetooth LE IP is awake and may require a system attention.

This bit is set by hardware when a radio wakeup event occurs.

This bit is reset by hardware when the Bluetooth LE IP raises the “ready to sleep” information.

The software can reset this bit by writing 1 in it.

Bit 9 DEEPSTOPF: System DEEPTSTOP Flag.

0: the device did not enter Deepstop mode.

1: the device entered a Deepstop mode.

This bit is set by hardware when a Deepstop sequence occurred.

The software can reset this bit by writing 1 in it.

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

5.7.20 Trimming values register (PWRC_TRIMR)

This register provides the trimming values applied by hardware.

Address offset: 0x90

Reset value: 0x---- ---- (0x0000 0307 when device is not trimmed)

Note: A Hardware default value is defined after reset. It is overwritten by the information stored in flash memory on trimmed devices, and kept as-is for devices without trimming information.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.SMPS_TRIM[2:0]TRIM_MR[3:0]RFD_REG_TRIM[3:0]
rrrrrrrrrrr

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

Bit 11 Reserved, must be kept at reset value.

Bits 10:8 SMPS_TRIM[2:0]: SMPS output voltage trimming.
Note: the default value is the centered value (“011”).

Bits 7:4 TRIM_MR[3:0]: Main regulator voltage trimming.
Default value when no trimming is “0000”.

Bits 3:0 RFD_REG_TRIM[3:0]: RF LDO trimming.
Default value when no trimming is “0111”.

5.7.21 Software trimming values register (PWRC_ENGTRIM)

This register allows the software to overwrite the hardware trimming values.

Address offset: 0x94

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.SMPS_TRIM[2:0]SMPSTRIMENTRIM_MR[3:0]TRIMMRENRFD_REG_TRIM[3:0]TRIMRFDREGEN
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 13:11 SMPS_TRIM[2:0]: SMPS output voltage trimming chosen by the software.

Bit 10 SMPSTRIMEN: SMPS_TRIM software overwrite enable.

0: Hardware trimming value from TRIMR.SMPS_TRIM bit field is applied.

1: Trimming value from ENGTRIM.SMPS_TRIM bit field is applied

Bits 9:6 TRIM_MR[3:0]: Main regulator voltage trimming chosen by the software.

Bit 5 TRIMMREN: TRIM_MR software overwrite enable.

0: Hardware trimming value from TRIMR.TRIM_MR bit field is applied.

1: Software trimming value from ENGTRIM.TRIM_MR bit field is applied

Bits 4:1 RFD_REG_TRIM[3:0]: RF LDO trimming chosen by the software.

Bit 0 TRIMRFDREGEN: RFD_REG_TRIM software overwrite enable.

0: Hardware trimming value from TRIMR.RFD_REG_TRIM bit field is applied.

1: Software trimming value from ENGTRIM.RFD_REG_TRIM bit field is applied

5.7.22 PWRC register map

Refer to Table 3: Memory map and peripheral register boundary addresses for the PWRC base address location in the STM32WB09xE.

Note: All the PWRC registers are retained during Deepstop mode.

The shaded cells indicate the bit fields located in the VDD33 power domain. This implies the associated feature is applied even during Shutdown state (but are lost at Shutdown mode exit as a PORESETn is generated).

Table 12. PWRC register map and reset values

OffsetRegister313029282726252423222120191817161514131211109876543210
0x00PWRC_CR1Res.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.APCIBIAS_RUN_STATEIBIAS_RUN_AUTOENSDNBORLPMS
10100
0x04PWRC_CR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GPIORETRAMRET3RAMRET2RAMRET1DBGRETRes.PVDLSRes.PVDE
-----------------------00000-0-0
0x08PWRC_CR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EIWLEIWL2EWBLEHCPUEWBLEEWU11EWU10EWU9EWU8EWU7EWU6EWU5EWU4EWU3EWU2EWU1EWU0
----------------0000000000000000
0x0CPWRC_CR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WUP11WUP10WUP9WUP8WUP7WUP6WUP5WUP4WUP3WUP2WUP1WUP0
--------------------000000000000
0x10PWRC_SR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWUFIWUF2WBLEHCPUFWBLEFWUF11WUF10WUF9WUF8WUF7WUF6WUF5WUF4WUF3WUF2WUF1WUF0
----------------0000000000000000
0x14PWRC_SR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IOBOOTVAL[3:0]PVDORes.Res.REGLPSIOBOOTVAL2[3:0]Res.SMPSRDYSMPSENRSMPSBYPR
-----------------0-11--110
0x18Reserved
ST logo
ST logo

Table 12. PWRC register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x1CPWRC_CR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SMPS_PRECH_CUR_SEL[1:0]CLKDETR_DISABLESMPS_ENA_DCMNOSMPSSMPSFBYPSMPSLPOENRes.Res.SMPSBOMSEL[1:0]SMPSLV[3:0]
Reset value-----------------100000-010100
0x20PWRC_PUCRARes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PUA11PUA10PUA9PUA8Res.Res.Res.
Reset value-----------------111111------1
0x24PWRC_PDCRARes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PDA11PDA10PDA9PDA8Res.Res.Res.
Reset value-----------------000000------0
0x28PWRC_PUCRBRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PUB15PUB14PUB13PUB12Res.Res.Res.Res.Res.Res.
Reset value----------------1111-----1111111
0x2CPWRC_PDCRBRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PDB15PDB14PDB13PDB12Res.Res.Res.Res.Res.Res.
Reset value----------------0000-----0000000
0x30PWRC_CR6Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EWU19EWU18EWU17EWU16EWU15EWU14EWU13EWU12
Reset value-------------------------00000000
0x34PWRC_CR7Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WUP19WUP18WUP17WUP16WUP15WUP14WUP13WUP12
Reset value-------------------------00000000
0x38PWRC_SR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WUF19WUF18WUF17WUF16WUF15WUF14WUF13WUF12
Reset value-------------------------00000000
0x3CPWRC_SDWN_WUENRes.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.WUEN
Reset value------------------------------0
0x40PWRC_SDWN_WUPOLRes.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.WUPOL
Reset value------------------------------0
0x44PWRC_SDWN_WUFRes.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.WUF
Reset value------------------------------0
0x48 - 0x80Reserved
0x84PWRC_DBGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DIS_PRE[2:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DEEPSTOP2
Reset value----------------000------------0

Table 12. PWRC register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x88PWRC_EXTSRRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RFPHASEFDEEPSTOPFRes.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value---------------------00---------
0x90PWRC_TRIMRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SMPS_TRIM[3:0]TRIM_MR[3:0]RFD_REG_TRIM[3:0]
Reset value---------------------01100000111
0x94PWRC_ENGTRIMRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SMPS_TRIM[3:0]SMPSTRIMENTRIM_MR[3:0]TRIMMRENRFD_REG_TRIM[3:0]TRIMRFDGEN
Reset value------------------00000000000000
ST logo
ST logo

5.8 Programmer's model

5.8.1 Reset reason management

The CPU has many reasons to be reset and executes its reset handler. Table 13 provides an overview of the flags that can help the embedded software to get the root cause of the CPU restart.

Table 13. Flags versus CPU reboot reason

CPU reboot reasonRCC_CSRPWRC_ISCR
(in SYSCFG)
PWRC_EXT
SRR
LOCKUPRSTFWDGRSTFSFTRSTFPORRSTFPADRSTFWAKEUP_ISCDEEPSTOPF
POR/BOR reset---11--
NRSTn pad reset----1--
Watchdog reset-1--1--
System reset (CPU request)--1-1--
LOCKUP reset1---1--
Deepstop exit on wakeup event-----11
Deepstop exit on watchdog reset-1--1--
Deepstop exit on NRSTn pad reset----1--
Deepstop exit on POR/BOR---11--
Shutdown exit---11--

If the reboot reason is a wakeup from Deepstop, then the wakeup source(s) can be read in the PWRC_SR1 register as shown in Table 14.

Table 14. Wakeup reason flags

Wakeup reasonIWUF2PWRC_SR1
IWUFWBLEHC
PUF
WBLEFWUFx
Wakeup on Bluetooth LE event---1-
Wakeup on Host timer in MR_BLE event--1--
Wakeup on RTC event-1---
Wakeup on LPUART event1----
Wakeup on I/Os----1

Note: If several (enabled) wakeup events occur, several bits are high in the PWRC_SR1. The wakeup flags are set as soon as a wakeup event (enabled in PWRC_CR3 register) occurs, the associated flag is set in the PWRC_SR1 register even if the device is in active mode or in the sleep exit sequence (initiated by another wakeup source).

Caution: Those flags have to be cleared by software knowing a Deepstop entry sequence cannot happen if a wakeup flag is already active when the system request a Deepstop mode.

5.8.2 SMPS output level re-programming

The SMPS output voltage cannot be modified on-the-fly why the SMPS is in use of more than one step. When the software needs to re-program the SMPS output voltage to another value, the following sequence must be respected:

Caution: This sequence must be launched only when no radio activity / RF transfer is ongoing.