5. Power controller (PWR)
The power controller block controls 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:
- • low power mode choice and entry/exit sequences
- • the flash memory power (ON/OFF) and the power down sequence
- • RAM banks retention control
- • power monitoring:
- – POR/PDR reset on rising/falling VDDIO voltage
- – Programmable voltage detector (PVD) monitoring of the VDDIO with programmable threshold or of an external analog input voltage (compared to the internal VBG).
- • I/Os pull-up/-down during low power mode
- • Wakeup I/O configuration
- • SMPS bypass on-the-fly (BOF)
5.2 Power supply domains
STM32WL3Rxx devices embed three power domains:
- • VDD33 (also termed VDDIO or VDD):
- – the voltage range is between 1.7 V and 3.6 V,
- – it supplies a part of the I/O ring, the embedded regulators and the system analog IPs as power management block and embedded oscillators,
- • VDD12o:
- – always-on digital power domain,
- – this domain is generally supplied at 1.2 V during active phase of the device
- – this domain is supplied at either 1.0 V or 1.2 V during low power mode (Deepstop). Refer to Section 5.4.2: Deepstop mode for details
- • VDD12i:
- – interruptible digital power domain,
- – this domain is generally supplied at 1.2 V during active phase of the device
- – this domain is shut down during low power mode (Deepstop)
The digital power supplied are provided by different regulators:
- • a main LDO (MLDO):
- – providing the 1.2 V from a 1.4-3.3 V input voltage,
- – supplies both VDD12i and VDD12o when the device is active,
- – is disabled during the low power mode (Deepstop).
- • a low power LDO (LPREG):
- – stays enabled during both active and low power phases,
- – providing a 1.0 V or 1.2 V voltage,
- – is not connected to the digital domain when the device is active,
- – is connected to the VDD12o domain during low power mode (Deepstop).
- • a dedicated LDO (RFLDO) to provide a 1.2 V to the analog RF block.
An embedded SMPS step down converter is available (inserted between the external power and the LDOs), but can be bypassed statically or dynamically (see Control register 5 (PWR_CR5)).
Figure 4 shows an overview of the different regulators and connections between the power supply domains.
Figure 4. Power supply domain overview

The diagram illustrates the power supply architecture of the RM0551. At the top, three main power lines are shown: \(V_{DDIO}\), \(V_{DDSD}\), and \(V_{FBSO}\). The \(V_{DDSD}\) line feeds into an SMPS (Switched Mode Power Supply) block. The SMPS output connects to an RFLDOs (Radio Frequency Low Dropout Regulator) block, which in turn provides \(V_{RF}\) to the Analog RF block. The SMPS also provides power to the VREG PAD block. The VREG PAD block contains two switches, CMDNO and CMDNI, controlled by gate signals VGATEN and VGATEP respectively. The output of the VREG PAD is \(V_{DD12O}\), which feeds into the AlwaysOn domain. The VREG PAD also connects to an LP-Reg (Low Power Regulator) block, which provides power to the V33 domain. The VREG PAD also connects to the Interruptible domain via \(V_{DD12I}\). The V33 domain (VDDIO) includes components: LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain (VDD12O) includes: MR_SUBGHz_wakeup, LPUART, RTC, IWDG, PWRCO, and RCCO. The Interruptible domain (VDD12I) includes: HSI, HSE, CPU, RF_FSM, MR_SUBGHz, Peripherals, and RCCI. The diagram is labeled MSv58743V1 in the bottom right corner.
5.3 Power voltage supervisor
STM32WL3Rxx devices embed several power voltage monitoring:
- • Power On reset (POR) / Power Down reset (PDR) / Brown-Out reset (BOR)
- • BORH monitoring
- • Power voltage Detector (PVD)
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 \(V_{DDIO}\) is below a \(V_{POR}\) threshold (typically 1.65V).
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

With typical values as follow:
- – \(V_{POR}\): 1.65 V
- – hysteresis: 20 mV (so \(V_{PDR}\): 1.63 V)
- – \(T_{TEMPO}\): 250 us
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 the PWR_CR1.ENSDNBOR bit).
5.3.2 BORH
The BORH is a VDDIO monitoring that raised an associated signal when the monitored voltage drops under a specified threshold.
However, the goal of this device feature is to monitor the VDDIO versus 2.0 V. Indeed, when the VDDIO goes below 2.0 V, the SMPS should be stopped.
It is recommended to use the PVD feature at application level to monitor the VDDIO with freedom to program dynamic threshold without any impact nor relationship with the hardware.
This feature can be enabled/disabled through PWR_CR1.ENBORH bit.
This feature is disabled during Shutdown mode.
When the feature is enabled and the BORH detect a VDDIO below the threshold, a status flag is raised in the SYSCFG block that can generate an interrupt to the CPU if unmasked (see I/O interrupt status and clear register (IO_ISCR)).
Caution: The BORH is associated to a flash write protection: if a programming is on-going, the flash controller stops it before the end but through a proper sequence to avoid any flash corruption.
5.3.3 Power voltage detection (PVD)
The PVD can be used to monitor:
- • the VDDIO:
- – the VDDIO is compared to a programmed threshold (between 2.05V and 2.91 V),
- – the threshold programming is done through PWR_CR2.PVDLS[2:0] bit field,
The PVD can be enabled or disabled through PWR_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 I/O interrupt status and clear register (IO_ISCR)).
5.4 Operating modes
STM32WL3Rxx devices support 3 main operating modes:
- • Run mode
- • Deepstop mode
- • Shutdown mode
- • Ultra Deepstop mode
The transition from one mode to another is managed through a PMU state machine.
5.4.1 Run mode
In Run mode:
- • both regulators (MLDO and LPREG) are enabled,
- • the MLDO provides the power supply for both VDD12i and VDD12o,
- • the system clock and bus clock are running,
- • the CPU and the radio can be used.
The power consumption may be reduced by gating the clock of the unused peripherals through the RCC clock enable registers (see Section 6.7: RCC register map).
The Figure 6 shows the regulators and SMPS configuration in Run mode with a product with 32 Kbytes of RAM.
Figure 6. Power regulators and SMPS configuration in Run mode

The diagram illustrates the power management architecture in Run mode. Key components and connections include:
- Power Supplies: \(V_{ss}\) is the ground reference. External supplies \(V_{DDIO}\) and \(V_{DDSD}\) are connected to the top of the diagram.
- Regulators:
- LP-Reg: A low-power regulator connected to \(V_{ss}\) and providing \(V_{DD12O}\). It is controlled by VGATEN from the VREG PAD.
- MLDO: A main low-dropout regulator connected to \(V_{ss}\) and providing \(V_{DD12I}\). It is controlled by VGATEP from the VREG PAD.
- SMPS: A Switched Mode Power Supply connected to \(V_{DDSD}\) and providing \(V_{DDIO}\).
- VREG PAD: A control block containing CMDNO and CMDNI registers that manage the regulators.
- V33 domain (VDDIO): Contains LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. It is powered by the SMPS.
- AlwaysOn domain (VDD12O): Contains MR_SUBGHz_wakeup, LPUART, RTC, WDOG, PWRCO, and RCCO. It is powered by the LP-Reg.
- Interruptible domain (VDD12I): Contains HSI, HSE, CPU, RF_FSM, MR_SUBGHz, Peripherals, and RCCi. It is powered by the MLDO.
- Other Blocks:
- HSI: Internal High-Speed Oscillator, connected to the Interruptible domain.
- IO management: Includes LS and IO management blocks, connected to the AlwaysOn and Interruptible domains.
- IOs: Input/Output pins, connected to the V33 domain and IO management.
- PU/PD: Power-Up/Power-Down control block.
- PAD reset: Reset control block.
- Memory: RAM0 and FLASH are connected to the Interruptible domain.
MSv58744V1
5.4.2 Deepstop mode
Deepstop is the only low-power mode of STM32WL3Rxx devices, allowing to restart from a saved context environment and go on running the application at wakeup.
The conditions to enter the Deepstop mode are:
- • The radio (MR_SUBGHz) is sleeping
- • The CPU is sleeping (WFI with SLEEPDEEP information active)
- • No unmasked wakeup sources is active (including those from a previous wakeup sequence for which the software did not clear the associated flag after wakeup) the PWR_CR1.LPMS bit is equal to 0.
- • Set PWR_CR2.GPIORET bit (see Control register 2 (PWR_CR2)) to enable GPIOs configuration retention.
- • If SMPS clock variable rate multiplier is enabled RCC_KRMR.KRMEN=1 (see SMPS clock variable rate multiplier register (RCC_KRMR)), in order to guarantee a good SMPS startup at next wakeup, its mandatory to put RCC_CFGR.SMPSDIV=0.
In Deepstop mode:
- • The system and bus clocks are stopped as the RC64MPLL block is OFF
- • The VDD12i power domain is switched off
- • The VDDI2o power domain is ON and supplied by the LPREG which regulated voltage is:
- – 1.2 V if the bit PWR_CR2.LPREG_FORCE_VH=1
- – 1.0 V in all the other cases
The current regulation status of the LPREG is reported by the PWR_CR2.LPREG_VH_STATUS bit
- • The RAM0 bank is kept in retention
- • The slow clock can be running or stopped, depending on the software configuration present before Deepstop entry:
- – ON or OFF
- – LSE or LSI source
- • The RTC, IWDG and LPUART stay active (if enabled and one slow clock source is ON)
- • The MR_SUBG wakeup block including its timer stay active (if enabled and one slow clock source is ON)
- • The configurations of all the I/Os are latched before entering Deepstop mode:
- – AF configuration is latched only for the I/Os on which is mapped at least one pin of a peripheral that can be active in Deepstop mode (RTC, IWDG and LPUART)
- – All the I/Os able to drive either a static low or high output level, some of which also carry the slow clock information LCO or RTC_OUT.
- • 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.
- • This variant can be selected by setting the PWR_DBGR.DEEPSTOP2 bit.
- • In this case, the Deepstop mode sequence (entry and exit) is done without shutting down the VDD12i power domain.
Possible wakeup sources:
- • the MR_SUBG block is able to generate two events to wakeup the system through its
- embedded wakeup timer running on slow clock:
- – SUBG RFIP wakeup time is reached,
- • The RTC is able to generate a wakeup event
- • The LPUART is able to generate a wakeup event
- • The IWDG is able to generate a reset event
- • All I/Os are able to wakeup the system
After wakeup from Deepstop, all the I/Os (except PA2 and PA3) are in retention mode; if DBGRET bit is set (in this case also PA2 and PA3 are in retention mode), retaining the configuration they had before entering Deepstop. To change their 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 DEESPTOP, or a new one). If DBGRET bit was reset before entering Deepstop, PA2 and PA3 take their GPIO reset configuration after wakeup from Deepstop, until a new GPIO configuration is set.
At wakeup, the hardware resources located in the VDD12i power domain are reset, the CPU reboots. The wakeup reason is visible in a PWR register (see Internal source wakeup status register (PWR_IWUF), Port A wakeup status register (PWR_WUFA) and Port B wakeup status register (PWR_WUFB) for details).
Figure 7 shows the regulators and SMPS configuration in Deepstop mode, with a configuration requesting retention on the SRAM0 bank.
Figure 7. Power regulators and SMPS configuration in Deepstop mode

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 LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain maintains essential functions including MR_SUBGHz_wakeup, RTC, WDOG, PWRCO, and RCCO. The Interruptible domain supports the main system components: HSI, HSE, CPU, RF_FSM, MR_SUBGHz, Peripherals, and RCCi. Power is supplied by an LP-Regulator to the V33 domain and a SMPS to the Interruptible domain. A VREG PAD with CMDNO and CMDNI control signals and transistors VGATEN and VGATEP manages the power flow between domains. The MLDO regulator provides VDD12I. Memory is split into RAM0 (AlwaysOn) and FLASH (Interruptible). The PU/PD and IOs blocks manage power-up/down and I/O states, while LS IO management coordinates between domains. External pins Vss, VDDIO, VDDSD, PAD reset, and VDD12I are also indicated.
MSv58745V1
5.4.3 Ultra Deepstop mode
Ultra DeepStop mode is the least power consuming mode that can retain crucial information in RAM.
The conditions to enter the Ultra Deepstop mode are the same as those required to enter Shutdown mode, except that the PWR_PDCRA.UDS bit must be equal to 1 (PWR_DBGR.DEEPSTOP2 bit must be maintained equal to 0).
In Ultra Deepstop mode:
- • The system is powered down as the SMPS regulator is OFF (both VDD12i and VDD12o power domains are OFF)
- • The LP regulator is kept ON with a driving capability of 1.0 V only
- • The VDDIO power domain is ON
- • All clocks are OFF (system and slow clock tree) as RC64MPLL, LSI and LSE are OFF,
- • If PWR_CR1.APC = 1, the I/Os pull-up/-down are controlled by the PWR_PUCRx/PWR_PDCRx during the Ultra Deepstop mode
- • The only wakeup sources are a low pulse on the RSTN pin or configurable pulse or level on PB0/PA0/PA7/PA8/PA9/PA11 pins through Shutdown I/O Wakeup Enable register (PWR_SDWN_WUEN) and Shutdown I/O Wakeup Polarity register (PWR_SDWN_WUPOL)
An Ultra Deepstop exit is similar to a POR board startup, but the content of the RAM0 is kept throughout the low-power period. The associated reset reason is the PORRSTF flag or EWUF flag (see V33 reset status register (RCC_CSR) for the reset reason flag details, or Shutdown I/O Wakeup Flag register (PWR_SDWN_WUF) for the PB0/PA0/PA7/PA8/PA9/PA11 wakeup flag).
The BOR feature can be enabled or disabled during Ultra Deepstop mode through the PWR_CR1.ENSDNBOR bit.
The following figure shows the regulators and SMPS configuration in Ultra Deepstop mode, configured with the BOR reset disabled.
Figure 8. Power regulators and SMPS configuration in Ultra Deepstop mode

The diagram illustrates the power management architecture in Ultra 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 LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain maintains essential functions including MR_SUBGHz_wakeup, RTC, WDOG, PWRCO, and RCCO. The Interruptible domain houses the main system components: HSI, HSE, CPU, RF_FSM, MR_SUBGHz, Peripherals, and RCCI. Power is supplied through an LP-Regulator (LP-Reg) and a Switched-Mode Power Supply (SMPS). A VREG PAD with CMDNO and CMDNI switches controls the regulators via VGATEN and VGATEP signals. Memory is provided by RAM0 and FLASH. The system includes a PAD reset block, PU/PD control, and IOs. External power inputs are Vss, VDDIO, and VDDSD.
MSv58746V1
5.4.4 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 PWR_CR1.LPMS bit must be equal to 1 (PWR_DBGR.DEEPSTOP2 bit must be maintained equal to 0). In Shutdown mode:
- • the system is powered down as both regulators are OFF (so both VDD12i and VDD12o power domains are OFF),
- • only the VDDIO power domain is ON,
- • All clocks are OFF (system and slow clock tree) as RC64MPLL, LSI and LSE are OFF,
- • if PWR_CR1.APC = 1, the I/Os pull-up/-down are controlled by the PWR_PUCRx/PWR_PDCRx during the Shutdown mode.
- • the only wakeup sources are a low pulse on the RSTN pin or configurable pulse on the PB0/PA0/PA7/PA8/PA9/PA11 pins.
- • the only wakeup sources are a low pulse on the RSTN pin or configurable pulse or level on PB0 pin through the I/O Port A pull-up control register (PWR_PUCRA), Shutdown I/O wakeup enable register (PWR_SDWN_WUEN) and Shutdown I/O wakeup polarity register (PWR_SDWN_WUPOL)
A Shutdown exit is similar to a POR startup of the board. The associated reset reason is the PORRSTF flag or EWUF flag (see V33 reset status register (RCC_CSR) for reset reason flags detail or Shutdown I/O Wakeup flag register (PWR_SDWN_WUF) for PB0 wakeup flag).
The BOR feature may be enabled or disabled during Shutdown through the PWR_CR1.ENSDNBOR bit).
The Figure 9 shows the regulators and SMPS configuration in Shutdown mode, configured with the BOR reset disabled.
Figure 9. Power regulators and SMPS configuration in Shutdown mode

Diagram of power regulators and SMPS configuration in Shutdown mode:
- Inputs / Rails: VDDIO, VDDSD, VSS, PAD reset, IOs (with PU/PD), LS IO management.
- VREG PAD: Contains LP-Reg, CMDNO, CMDNI, MLDO, VGATEN, VGATEP switches, and HSI.
- SMPS block connected to VDDSD.
- V33 domain (VDDIO):
LSI, LSE, BOR,POR,PVD,PWRC33, RCC33. - AlwaysOn domain (VDD12O): MR_SUBGHz_wakeup, LPUART, RTC, WDOG, PWRCo, RCCo.
- Interruptible domain (VDD12I): HSI, HSE, CPU, RF_FSM, MR_SUBGHz, Peripherals, RCCi.
- Memory blocks: RAM0, FLASH.
MSv58747V1

5.4.5 Operating modes transition management
The PWR block manages the switches from an operating mode to another through a state machine.
Figure 10. PWR state machine for operating mode transitions

stateDiagram-v2
[*] --> START
START --> RUN : RESETn
RUN --> SHUTDOWN : DEEPSTOP & RF OFF & CR1.LPMS=SHUTDOWN
RUN --> ULTRA_DEEPSTOP : DEEPSTOP & RF OFF & CR1.LPMS=DEEPSTOP
RUN --> DEEPSTOP : DEEPSTOP & RF OFF & CR1.LPMS=DEEPSTOP
ULTRA_DEEPSTOP --> RUN : wakeup
DEEPSTOP --> RUN : wakeup
SHUTDOWN --> START : RESETn
DEEPSTOP --> SHUTDOWN : DEEPSTOP & RF OFF & CR1.LPMS=SHUTDOWN
START (reset)
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
CCPU: STOP => DEEPSLEEP
RF: OFF => Ready2Sleep
SHUTDOWN
LPREG: OFF
MLDO: OFF
SMPS: OFF
RFLDO: OFF
LSI/LSE: OFF
HSI: OFF
HSE: OFF
POR,
EXT reset pin, WKUP pins
ULTRA DEEPSTOP
LPREG: ON
MLDO: OFF
SMPS: OFF
RFLDO: OFF
LSI/LSE: OFF
HSI: OFF
HSE: OFF
POR,
EXT reset pin, WKUP pins
DEEPSTOP
LPREG: ON (0.95V)
MLDO: OFF
SMPS: PRECHARGE/(OPEN?)
RFLDO: OFF
LSI: ON/OFF
LSE: ON/OFF
HSI: OFF
HSE: OFF
5.5 SMPS step down regulator
The STM32WL3Rxx SMPS is a 120 mA output step down SMPS (switch mode power supply)
The SMPS output voltage can be programmed from 1.2 V to 2.4 V. Its internal clock frequency is 4 MHz or 8 MHz when RCC_KRMR.KRMEN=0 (see SMPS clock variable rate multiplier register (RCC_KRMR)) or a programmable frequency clock SMPS_CLK_KRM when RCC_KRMR.KRMEN=1. In this latter case the SMPS can be clocked at System Clock divided by 8 to 16 with unitary steps (CLK_SMPS_KRM). This feature can be useful in case the channel to be received is at a frequency that is an integer multiple of the SMPS clock.
The SMPS can be in different configurations:
- • ON:
- – the \(V_{FBSD}\) pin of the SMPS outputs a regulated voltage (from 1.2 V to 2.4 V),
- – the SMPS needs a clock.
- • OFF:
- – the \(V_{FBSD}\) pin has to be forced externally with VDDIO,
- – the SMPS does not need a clock.
- • STATIC BYPASS ON THE FLY
- – the \(V_{FBSD}\) pin is internally connected to VDDSD via a switch, with a maximum current of 40mA.
- – the SMPS doesn't need a clock and is disabled.
- • DYNAMIC BYPASS ON THE FLY
- – the \(V_{FBSD}\) pin outputs a programmable regulated voltage, with a maximum current of 40mA.
- – the SMPS doesn't need a clock and is disabled.
- • OPEN:
- – the \(V_{FBSD}\) pin is floating,
- – the SMPS does not need a clock.
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 11).
Figure 11. Power supply configuration

The user must configure the field PWR_CR5.SMPSBOMSEL[1:0] according to the BOM implemented on his board. The value to program is indicated in Table 12.
Table 12. SMPS BOM information
| BOM | Inductor (L) | Output capacitor (C) | SMPSBOMSEL[1:0] |
|---|---|---|---|
| BOM1 | 1.5 μH | 2.2 μF | 00 |
| BOM2 | 2.2 μH | 4.7 μF | 01 |
| BOM3 | 10 μH | 4.7 μF | 10 |
The SMPS is managed by the PWR through a state machine shown in Figure 12.
Figure 12. PWR SMPS state machine overview
stateDiagram-v2
[*] --> STARTUP : RESETn
STARTUP --> SMPS_REQ
STARTUP : smps_req=0
STARTUP : smps_precharge=1
SMPS_REQ --> RUN : smps_rdy OR CR5.SMPSFRDY
SMPS_REQ : smps_req=1
SMPS_REQ : smps_precharge=1
RUN --> STOP : ds_entry
STOP --> RUN : ds_exit
RUN --> NOSMPS : -CR5.NOSMPS-
RUN --> PRECHARGE : -CR5.SMPSFBYP & !CR5.NOSMPS-
RUN : smps_req=1
RUN : smps_precharge=1
STOP : smps_req=0
STOP : smps_precharge=~CR5.SMPSLPOPEN
NOSMPS --> RUN : !CR5.NOSMPS
NOSMPS : smps_req=0
NOSMPS : smps_precharge=0
PRECHARGE --> RUN : !CR5.SMPSFBYP
PRECHARGE : smps_req=0
PRECHARGE : smps_precharge=1
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):
- • Run:
- – the SMPS is ON in a Run mode,
- – the SMPS clock is running,
- – the VFBSD is regulated and voltage amplitude is the one programmed in the PWR_CR5.SMPSLVL bit field,
- – an L/C BOM is present on the board and is connected to the VFBSD pad of the STM32WL3Rxx (see Figure 11).
- • NOSMPS (if the software configures PWR_CR5.NOSMPS=1 or PWR_CR5.NOSMPS_BOF=1):
- – the SMPS is OFF,
- – the SMPS clock is stopped,
- – the VFBSD is directly connected to the VDDSD through the VFBSD pad of the STM32WL3Rxx (see Figure 11),
- – the PWR does not control any specific sequencing on the SMPS during low power entry/exit phases.
When the device enters in Deepstop mode, the PWR automatically switches the SMPS from Run to STOP mode, which can be:
- – if PWR_CR5.SMPSLPOPEN = 0: SMPS output is the VDDSD
- – if PWR_CR5.SMPSLPOPEN = 1: the SMPS output is floating.
5.5.1 SMPS bypass on-the-fly (BOF)
Bypass on-the-fly (BOF) is a feature that permits to bypass the SMPS. This can be done directly with a power switch (static bypass mode) or via an LDO (dynamic bypass mode).
In case radio extra sensitivity is needed, the user can switch on the fly on LDO (dynamic bypass mode) before entering radio receiver mode. In this way the SMPS is OFF.
This can be handled by software through an interrupt handler on RX request. The interrupt that may control is MR_SUBG TX/RX Sequence interrupt.
When BOF is done in static bypass mode, the SMPS is disabled and the SMPS output is connected to the battery via an internal switch. In this case both Deepstop and Run mode operations can be chosen.
The static mode connects the SMPS output to the battery after the first start-up of STM32WL3Rxx devices and the connection is done until a reset occurs.
When BOF is done in dynamic bypass mode, the SMPS is disabled and the LDO is enabled. The LDO is connected between the battery and the SMPS output. LDO voltage is programmable through register PWR_BOF_TUNE.BOFO_TUNE. It is recommended to use the same output voltage than the one chosen for the SMPS through PWR_CR5.SMPSLVL register. If it's not the case, only BOF LDO output voltage less than SMPS output voltage must be chosen. In this case only Run mode operation is possible.
A current limitation is implemented in both static and dynamic bypass modes. It is set via PWR_DBGSMPS.BOFO_CUR_SEL bits. Always use a bigger current limitation than the current expected to flow through the BOF. For example, for +14dBm transmission, a current consumption from the battery of 40mA is expected. In this case 60mA current limitation has to be set.
5.5.1.1 How to program a static bypass mode:
- 1. Program PWR_DBGSMPS.BOFO_CUR_SEL
- 2. Program PWR_CR5.SMPS_BOFO_STATIC=1
- 3. PROGRAM PWR_CR5.NOSMPS_BOFO=1
5.5.1.2 Program a dynamic bypass mode:
- 1. Program PWR_DBGSMPS.BOFO_CUR_SEL, PWR_CR5.SMPSLVL if not already done in the sequence, PWR_BOFO_TUNE.BOFO_TUNE
- 2. Program PWR_CR5.SMPS_BOFO_DYN=1
- 3. Program PWR_CR5.NOSMPS_BOFO=1
5.6 PWR register descriptions
Note: All the PWR APB registers are only 16-bit registers. The 16 MSBs are always stuck at 0.
5.6.1 Control register 1 (PWR_CR1)
This register control the BOR in Shutdown, the BORH feature, the low power mode selection and the IO control owner.
Address offset: 0x00
Reset value: 0x0000 0114
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | ENBORL | Res. | Res. | ENBORH | APC | IBIAS_RUN_STATE | IBIAS_RUN_AUTO | ENSDNBOR | LPMS |
| rw | rw | rw | rw | rw | rw | rw |
Bits 31:9 Reserved, must be kept at reset value.
Bit 8 ENBORL: Enable BORL reset supervising during Run mode
- – 0: No BORL is monitored during Run mode.
- – 1: BORL is monitored during Run mode (a POR reset happens if VDDIO goes below 1.6 V during Run mode).
Bits 7:6 Reserved, must be kept at reset value.
Bit 5 ENBORH: Enable the BORH software configuration.
- – 0: BORH is OFF (VBOR0): threshold is 1.6 V (default).
- – 1: BORH is enabled, the threshold is
Bit 4 APC: Apply pull-up/-down configuration from PWR 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 PWR_PUCRx and PWR_PDCRx of the PWR 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: Enable automatic IBIAS control during Run/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 Ultra Deepstop/Shutdown mode.
- – 0: No BOR is monitored during Ultra Deepstop/Shutdown mode (default).
- – 1: BOR is monitored during Ultra Deepstop/Shutdown mode (a POR reset happens if VDDIO goes below 1.6 V during Ultra Deepstop/Shutdown mode).
Note: Enabling this feature prevents blocking the device if VDDIO goes below supported voltages during Ultra Deepstop/Shutdown mode. 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_SUBG requests a low power mode entry.
- – 0: Deepstop mode (default).
- – 1: Ultra Deepstop/Shutdown mode.
5.6.2 Control register 2 (PWR_CR2)
Address offset: 0x04
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | RFREG ON_ST ATUS | RFREG RDY | RFREG BYP | RFREG CEXT | RFREG EN | Res. | GPIOR ET | LPREG _VH_S TATUS | LPREG _FORC E_VH | Res. | DBG R ET | PVDLS[2:0] | PVDE | ||
| r | r | rw | rw | rw | rw | r | rw | rw | rw | rw | rw | rw | |||
Bits 31:15 Reserved, must be kept at reset value.
Bit 14 RFREGON_STATUS: RF Regulator On Status.
- – 0: RF Regulator is disabled
- – 1: RF Regulator is enabled
Bit 13 RFREGRDY: RF Regulator Ready flag
- – 0: RF Regulator is not ready
- – 1: RF Regulator is ready
Bit 12 RFREGBYP: RF Regulator Bypass Enable
- – 0: internally generated 1.2 V
- – 1: LDO output connected to VSMPS
Bit 11 RFREGCEXT: RF Regulator External Supply Bypass
- – 0: Internal supply only
- – 1: External supply bypass capability
Bit 10 RFREGEN: RF Regulator enable
- – 0: Disable RF Regulator (Note: RF Regulator can still be enabled by the RFSUGB or RCC_CR.HSEON)
- – 1: Enable RF Regulator
- Bit 9 Reserved, must be kept at reset value.
- Bit 8 GPIORET: GPIO retention enable.
- – 0: GPIOs don't retain their configuration during and exiting from Deepstop (default)
- – 1: GPIOs retain their configuration during and exiting from Deepstop.
- Bit 7 LPREG_VH_STATUS: LPREG status
- – 0: LPREG=1 V during Deepstop mode (default).
- – 1: LPREG=1.2 V during Deepstop mode.
- Bit 6 LPREG_FORCE_VH: force LPREG=1.2 V during Deepstop mode.
Set and clear by software. This bit allows to select the LPREG voltage. - – 0: LPREG=1 V during Deepstop mode (default).
- – 1: Force LPREG=1.2 V during Deepstop mode.
- Bit 5 Reserved, must be kept at reset value.
- Bit 4 DBGRET: PA2 and PA3 retention enable after Deepstop
- – 0: PA2, PA3 GPIOs don't retain their configuration exiting from Deepstop (default).
- – 1: PA2, PA3 GPIOs retain their configuration exiting from Deepstop.
- Bits 3:1 PVDLS[2:0]: Programmable Voltage Detector level selection:
- – 000: 2.05V - Lowest level
- – 001: 2.20 V
- – 010: 2.36 V
- – 011: 2.52 V
- – 100: 2.64 V
- – 101: 2.81 V
- – 110: 2.91 V - Highest level
- – 111: Reserved
- Bit 0 PVDE: Programmable Voltage Detector enable.
- – 0: the Power Voltage Detector feature is disabled (default).
- – 1: the Power Voltage Detector feature is enabled.
Note: it is mandatory to ensure GPIORET bit is set before entering Deepstop in order GPIOs retain their configuration.
5.6.3 Internal source wakeup enable register (PWR_IEWU)
This register manages the selection of the internal 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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | EWMR SUBG HCPU | EWMR SUBG | Res. | Res. | Res. | Res. | Res. | Res. | EIWL1 | EIWL0 |
| rw | rw | rw | rw |
Bits 31:10 Reserved, must be kept at reset value.
Bit 9 EWMRSUBGHCPU: Enable wakeup on MRSUBG Host CPU event.
- – 0: Wakeup on MRSUBG Host CPU event is disabled (default).
- – 1: Wakeup on MRSUBG Host CPU event is enabled.
Bit 8 EWMRSUBG: Enable wakeup on MRSUBG RFIP event.
- – 0: Wakeup on MRSUBG RFIP event is disabled (default).
- – 1: Wakeup on MRSUBG RFIP event is enabled.
Bits 7:2 Reserved, must be kept at reset value.
Bit 1 EIWL1: Enable wakeup on Internal event (RTC).
- – 0: Wakeup on internal line is disabled (default).
- – 1: Wakeup on internal line is enabled.
Bit 0 EIWL0: Enable wakeup on Internal event (LPUART).
- – 0: Wakeup on internal line is disabled (default).
- – 1: Wakeup on internal line is enabled.
5.6.4 Internal source wakeup polarity register (PWR_IWUP)
This register manages the polarity for the internal 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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | WMRS UBGH CPUP | WMRS UBGP | Res. | Res. | Res. | Res. | Res. | Res. | IWUP1 | IWUP0 |
| rw | rw | rw | rw |
Bits 31:10 Reserved, must be kept at reset value.
Bit 9 WMRSUBGHCPUP: Wakeup polarity for MRSUBG Host CPU event.
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
Bit 8 WMRSUBGP: Wakeup polarity for MRSUBG event.
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
Bits 7:2 Reserved, must be kept at reset value.
Bit 1 IWUP1: Wakeup polarity for internal wakeup line 1 event (RTC).
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
Bit 0 IWUP0: Wakeup polarity for internal wakeup line 0 event (LPUART).
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
5.6.5 Internal source wakeup status register (PWR_IWUF)
This register provides the information concerning which internal source woke up the device after a Deepstop.
Address offset: 0x10
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | WMRS UBGH CPUF | WMRS UBGF | Res. | Res. | Res. | Res. | Res. | Res. | IWUF1 | IWUF0 |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 |
Bits 31:10 Reserved, must be kept at reset value.
Bit 9 WMRSUBGHCPUF: MRSUBG Host CPU wakeup flag.
- – 0: no wakeup from MRSUBG Host CPU occurred since last clear.
- – 1: a wakeup from MRSUBG Host CPU occurred since last clear.
Cleared by writing 1 in this bit.
Bit 8 WMRSUBGF: MRSUBG wakeup flag.
- – 0: no wakeup from MRSUBG occurred since last clear.
- – 1: a wakeup from MRSUBG occurred since last clear.
Cleared by writing 1 in this bit.
Bits 7:2 Reserved, must be kept at reset value.
Bit 1 IWUF1: Internal wakeup flag (RTC).
- – 0: no wakeup from RTC occurred since last clear.
- – 1: a wakeup from RTC occurred since last clear.
Cleared by writing 1 in this bit.
Bit 0 IWUF0: Internal wakeup flag (LPUART).
- – 0: no wakeup from LPUART occurred since last clear.
- – 1: a wakeup from LPUART occurred since last clear.
Cleared by writing 1 in this bit.
5.6.6 Status register 2 (PWR_SR2)
This register provides some status flags related to the Power Voltage Detector and the SMPS blocks.
Address offset: 0x14
Reset value: 0x0000 X3X6
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| IOBOOTVAL[3:0] | PVDO | Res. | REGM S | REGLP S | IOBOOTVAL2[3:0] | Res. | SMPS RDY | SMPSEN R | SMPSB YPR | ||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | ||
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:12 IOBOOTVAL: I/Os value latched at POR.
- – bit 3: PA11 input value latched at POR,
- – bit 2: PA10 input value latched at POR,
- – bit 1: PA9 input value latched at POR,
- – bit 0: PA8 input value latched at POR.
Note: This information may be used by 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 (PWR_CR2.PVDE=1), this bit indicates when the VDDIO is lower than the selected threshold (through PWR_CR2.PVDLS bit field).
- – 0: The VDDIO is not lower than threshold or PVD feature is not enabled.
- – 1: The VDDIO is lower than the selected threshold.
Bit 10 Reserved, must be kept at reset value.
Bit 9 REGMS: Main regulator ready status.
- – 0: The Main regulator is not ready.
- – 1: The Main regulator is ready.
Bit 8 REGLPS: Low Power regulator ready status.
- – 0: The Low Power regulator is not ready.
- – 1: The Low Power regulator is ready.
Bits 7:4 IOBOOTVAL2: I/Os value latched at POR.
- – bit 3: PB15 input value latched at POR,
- – bit 2: PB14 input value latched at POR,
- – bit 1: PB13 input value latched at POR,
- – bit 0: PB12 input value latched at POR.
Note: This information may be used by 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.6.7 Control register 5 (PWR_CR5)
This register is used to configure the SMPS.
Address offset: 0x1C
Reset value: 0x0000 6024
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SMPS_ BOF_D YN | SMPS_PRECH_ CUR_SEL[1:0] | CLKDE TR_DI SABLE | SMPS_ ENA_D CM | NOSM PS | SMPSF BYP | SMPSL POPEN | NOSM PS_BO F | SMPS_ BOF_S TATIC | SMPSBOMSEL[ 1:0] | SMPSLVL[3:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
- Bit 15 SMPS_BOF_DYN: SMPS Bypass on the Fly dynamic
– 0: disabled (by default)
– 1: SMPS Bypass on the fly dynamic is enabled (EN_LDO=1)
- 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 PWR_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.
Bit 7 NOSMPS_BOF: No SMPS Mode in the case of BOF usage
When this bit is set, the SMPS regulator is disabled.
- – 0: No effect, SMPS is enabled. (default)
- – 1: SMPS is disabled;
Note: this configuration should be used only when SMPS_BOF_STATIC=1 or SMPS_BOF_DYN=1 and permits both Run and Deepstop operating modes.
- Bit 6 SMPS_BOF_STATIC: SMPS Bypass on the Fly static
- – 0: disabled (by default)
- – 1: SMPS Bypass on the fly static is enabled (EN_SW=1)
Bits 5:4 SMPSBOMSEL[1:0]: Select the SMPS BOM.
- – 00: BOM1
- – 01: BOM2
- – 10: BOM3 (default)
- – 11: Not applicable
Note: BOM correspondence/details is available in Table 12: 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 100 mV.
- – 0000: 1.20 V (min VBAT = 1.95V)
- – 0001: 1.20 V (min VBAT = 1.95V)
- – 0010: 1.20 V (min VBAT = 1.95V)
- – 0011: 1.30 V (min VBAT = 1.95V)
- – 0100: 1.40 V (min VBAT = 2.0 V) (default)
- – 0101: 1.50 V (min VBAT = 2.0 V)
- – 0110: 1.60 V (min VBAT = 2.15V)
- – 0111: 1.70 V (min VBAT = 2.2 V)
- – 1000: 1.80 V (min VBAT = 2.3 V)
- – 1001: 1.90 V (min VBAT = 2.45V)
- – 1010: 2 V (min VBAT = 2.6 V)
- – 1011: 2.1 V (min VBAT = 2.7V)
- – 1100: 2.2 V (min VBAT = 2.8 V)
- – 1101: 2.3 V (min VBAT = 2.8 V)
- – 1110: 2.4 V (min VBAT = 2.9 V)
- – 1111: 2.4 V (min VBAT = 2.9 V)
– Warning: The SMPS output voltage must not be changed 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.6.8 I/O Port A pull-up control register (PWR_PUCRA)
This register is used to control the pull-up for the PA0 to PA15 I/O when the PWR_CR1.APC bit is set.
Caution: If both pull-up and pull-down are enabled in the PWR_PUCRA and PWR_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 FFF7
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | PUA11 | PUA10 | PUA9 | PUA8 | PUA7 | Res. | Res. | Res. | PUA3 | PUA2 | PUA1 | PUA0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:12 Reserved, must be kept at reset value.
Bits 11:7 PUAx (x=11 to 7): pull-up enable for PAx I/O.
- – 0: No pull-up.
- – 1: Pull-up enabled (default).
Bits 6:4 Reserved, must be kept at reset value.
Bits 3:0 PUAx (x=3 to 0): pull-up enable for PAx I/O.
- – 0: No pull-up.
- – 1: Pull-up enabled (default).
5.6.9 I/O Port A pull-down control register (PWR_PDCRA)
This register is used to control the pull-down for the PA0 to PA15 I/O when the PWR_CR1.APC bit is set.
Caution: If both pull-up and pull-down are enabled in the PWR_PUCRA and PWR_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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | PDA11 | PDA10 | PDA9 | PDA8 | PDA7 | UDS | Res. | Res. | PDA3 | PDA2 | PDA1 | PDA0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:12 Reserved, must be kept at reset value.
Bits 11:7 PDAx (x=11 to 7): pull-down enable for PAx I/O.
- – 0: no pull-down (default).
- – 1: pull-down enabled.
Bit 6 UDS: set Ultra Deepstop mode (it is reset only by a POR reset).
- - 0: Ultra Deepstop mode disabled
- - 1: Ultra Deepstop mode enabled
Bits 5:4 Reserved, must be kept at reset value.
Bits 3:0 PDAx (x=3 to 0): pull-down enable for PAx I/O.
- – 0: no pull-down (default)
- – 1: pull-down enabled
5.6.10 I/O Port B pull-up control register (PWR_PUCRB)
This register is used to control the pull-up for the PB0 to PB15 I/O when the PWR_CR1.APC bit is set.
Caution: If both pull-up and pull-down are enabled in the PWR_PUCRA and PWR_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 FFFF
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| PUB15 | PUB14 | PUB13 | PUB12 | Res. | Res. | Res. | Res. | PUB7 | PUB6 | Res. | Res. | Res. | PUB2 | PUB1 | PUB0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:12 PUBx (x=15 to 12): Pull-up enable for PBx I/O.
- – 0: No pull-up.
- – 1: Pull-up enabled (default).
Bits 11:9 Reserved, must be kept at reset value.
Bits 7:6 PUBx (x=8 to 6): Pull-up enable for PBx I/O.
- – 0: No pull-up.
- – 1: Pull-up enabled (default).
Bits 5:3 Reserved, must be kept at reset value.
Bits 2:0 PUBx (x=2 to 0): Pull-up enable for PBx I/O.
- – 0: No pull-up.
- – 1: Pull-up enabled (default).
5.6.11 I/O Port B pull-down control register (PWR_PDCRB)
This register is used to control the pull-down for the PB0 to PB15 I/O when the PWR_CR1.APC bit is set.
Caution: If both pull-up and pull-down are enabled in the PWR_PUCRA and PWR_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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| PDB15 | PDB14 | PDB13 | PDB12 | Res. | Res. | Res. | Res. | PDB7 | PDB6 | Res. | Res. | Res. | PDB2 | PDB1 | PDB0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:12 PDBx (x=15 to 12): pull-down enable for PBx I/O.
- – 0: No pull-down (default).
- – 1: pull-down enabled.
Bits 11:8 Reserved, must be kept at reset value.
Bits 7:6 PDBx (x=7 to 6): pull-down enable for PBx I/O.
- – 0: No pull-down (default).
- – 1: pull-down enabled.
Bits 5:3 Reserved, must be kept at reset value.
Bits 2:0 PDBx (x=2 to 0): pull-down enable for PBx I/O.
- – 0: No pull-down (default).
- – 1: pull-down enabled.
5.6.12 Port A wakeup enable register (PWR_EWUA)
This register manages the selection of the wakeup sources related to IO port A to get out of Deepstop mode.
Note: All wakeup sources are disabled by default after reset.
Address offset: 0x30
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | EWU11 | EWU10 | EWU9 | EWU8 | EWU7 | Res. | Res. | Res. | EWU3 | EWU2 | EWU1 | EWU0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:12 Reserved, must be kept at reset value.
Bits 11:7 EWUx (x = 11 to 7): Enable wakeup on PAx I/O event.
- – 0: Wakeup on PAx I/O line is disabled (default).
- – 1: Wakeup on PAx I/O line is enabled.
Bits 6:4 Reserved, must be kept at reset value.
Bits 3:0 EWUx (x = 3 to 0): Enable wakeup on PAx I/O event.
- – 0: Wakeup on PAx I/O line is disabled (default).
- – 1: Wakeup on PAx I/O line is enabled.
5.6.13 Port A wakeup polarity register (PWR_WUPA)
This register manages the polarity for the port A 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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | WUP11 | WUP10 | WUP9 | WUP8 | WUP7 | Res. | Res. | Res. | WUP3 | WUP2 | WUP1 | WUP0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:12 Reserved, must be kept at reset value.
- Bits 11:7 WUPx (x = 11 to 7): Wakeup polarity for PAx IO event.
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
Bits 6:4 Reserved, must be kept at reset value.
- Bits 3:0 WUPx (x = 3 to 0): Wakeup polarity for PAx IO event.
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
5.6.14 Port A wakeup status register (PWR_WUFA)
This register provides the information concerning which port A I/O source woke up the device after a Deepstop.
Address offset: 0x38
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | WUF11 | WUF10 | WUF9 | WUF8 | WUF7 | Res. | Res. | Res. | WUF3 | WUF2 | WUF1 | WUF0 |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 |
Bits 31:12 Reserved, must be kept at reset value.
Bits 11:7 WUFx (x = 11 to 7): PAx I/O wakeup flag.
- – 0: no wakeup from PAx I/O occurred since last clear.
- – 1: a wakeup from PAx I/O occurred since last clear.
Cleared by writing 1 in this bit.
Bits 6:4 Reserved, must be kept at reset value.
Bits 3:0 WUFx (x = 3 to 0): PAx I/O wakeup flag.
- – 0: no wakeup from PAx I/O occurred since last clear.
- – 1: a wakeup from PAx I/O occurred since last clear.
Cleared by writing 1 in this bit.
5.6.15 Port B wakeup enable register (PWR_EWUB)
This register manages the selection of the wakeup sources related to IO port B to get out of Deepstop mode.
Note: All wakeup sources are disabled by default after reset.
Address offset: 0x40
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| EWU14 | EWU14 | EWU13 | EWU12 | Res. | Res. | Res. | Res. | EWU7 | EWU6 | Res. | Res. | Res. | EWU2 | EWU1 | EWU0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:15 Reserved, must be kept at reset value.
Bits 15:12 EWUx (x = 14 to 12): Enable wakeup on PBx I/O event.
- – 0: Wakeup on PBx I/O line is disabled (default).
- – 1: Wakeup on PBx I/O line is enabled.
Bits 11:8 Reserved, must be kept at reset value.
Bits 7:6 EWUx (x = 7 to 6): Enable wakeup on PBx I/O event.
- – 0: Wakeup on PBx I/O line is disabled (default).
- – 1: Wakeup on PBx I/O line is enabled.
Bits 5:3 Reserved, must be kept at reset value.
Bits 2:0 EWUx (x = 2 to 0): Enable wakeup on PBx I/O event.
- – 0: Wakeup on PBx I/O line is disabled (default).
- – 1: Wakeup on PBx I/O line is enabled.
5.6.16 Port B wakeup polarity register (PWR_WUPB)
This register manages the polarity for the port B I/Os wakeup sources to get out of Deepstop mode.
Note: The wakeup event are only edge detection, not level detection.
Address offset: 0x44
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| WUP15 | WUP14 | WUP13 | WUP12 | Res. | Res. | Res. | Res. | WUP7 | WUP6 | Res. | Res. | Res. | WUP2 | WUP1 | WUP0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:12 WUPx (x = 15 to 12): Wakeup polarity for PBx IO event.
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
Bits 11:8 Reserved, must be kept at reset value.
Bits 7:6 WUPx (x = 7 to 6): Wakeup polarity for PBx IO event.
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
Bits 5:3 Reserved, must be kept at reset value.
Bits 2:0 WUPx (x = 2 to 0): Wakeup polarity for PBx IO event.
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
5.6.17 Port B wakeup status register (PWR_WUFB)
This register provides the information concerning which port B I/O woke up the device after a Deepstop.
Address offset: 0x48
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| WUF15 | WUF14 | WUF13 | WUF12 | Res. | Res. | Res. | Res. | WUF7 | WUF6 | Res. | Res. | Res. | WUF2 | WUF1 | WUF0 |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:12 WUFx (x = 15 to 12): PBx I/O wakeup flag.
– 0: no wakeup from PBx I/O occurred since last clear.
– 1: a wakeup from PBx I/O occurred since last clear.
Cleared by writing 1 in this bit.
Bits 11:8 Reserved, must be kept at reset value.
Bits 7:6 WUFx (x = 7 to 6): PBx I/O wakeup flag.
– 0: no wakeup from PBx I/O occurred since last clear.
– 1: a wakeup from PBx I/O occurred since last clear.
Cleared by writing 1 in this bit.
Bits 5:3 Reserved, must be kept at reset value.
Bits 2:0 WUFx (x = 2 to 0): PBx I/O wakeup flag.
– 0: no wakeup from PBx I/O occurred since last clear.
– 1: a wakeup from PBx I/O occurred since last clear.
Cleared by writing 1 in this bit.
5.6.18 Shutdown I/O wakeup enable register (PWR_SDWN_WUEN)
Address offset: 0x4C
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| 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.
- Bit 0 WUEN: PB0, PA0, PA7, PA8, PA9, PA11 I/O wakeup from Ultra Deepstop/Shutdown modes.
- – 0: Disable pin wakeup from Ultra Deepstop/Shutdown modes.
- – 1: Enable pin wakeup from Ultra Deepstop/Shutdown modes.
- – Note: Wakeup from Ultra Deepstop/Shutdown can be enabled from several pins at same time.
5.6.19 Shutdown I/O wakeup polarity register (PWR_SDWN_WUPOL)
Address offset: 0x50
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WUPO L |
| rw |
Bits 31:1 Reserved, must be kept at reset value.
- Bit 0 WUPOL: PB0, PA0, PA7, PA8, PA9, PA11 I/O wakeup from Ultra Deepstop/shutdown polarity.
- – 0: Pin wakeup from Ultra Deepstop/Shutdown mode on high pulse or high level detection.
- – 1: Pin wakeup from Ultra Deepstop/Shutdown mode on low pulse or low level detection.
5.6.20 Shutdown I/O Wakeup flag register (PWR_SDWN_WUF)
This register is reset on PORESETn.
Address offset: 0x54
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WUF |
| rc_w0 |
Bits 31:1 Reserved, must be kept at reset value.
Bit 0 WUF: PB0, PA0, PA7, PA8, PA9, PA11 pin I/O wakeup from Ultra Deepstop/Shutdown mode flags.
- – 0: Ultra Deepstop/Shutdown wakeup has not occurred.
- – 1: Ultra Deepstop/Shutdown wakeup has occurred.
5.6.21 Bypass on-the-fly tuning register (PWR_BOF_TUNE)
Address offset: 0x58
Reset value: 0x0000 0004
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | BOF_TUNE[3:0] | |||
| rw | rw | rw | rw | ||||||||||||
Bits 31:4 Reserved, must be kept at reset value.
Bits 3:0 BOF_TUNE[3:0]: SMPS Bypass on the fly (BOF) tuning bits.
- – 0000: 1.2 V
- – 0001: 1.2 V
- – 0010: 1.2 V
- – 0011: 1.3 V
- – 0100: 1.4 V (Default)
- – 0101: 1.5V
- – 0110: 1.6 V
- – 0111: 1.7 V
- – 1000: 1.8 V
- – 1001: 1.9 V
- – 1010: 2 V
- – 1011: 2.1 V
- – 1100: 2.2 V
- – 1101: 2.3 V
- – 1110: 2.4 V
- – 1111: 2.4 V

5.6.22 Debug register (PWR_DBGR)
This register is used for debug features.
This register is reset on PORESETn.
Address offset: 0x84
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DEEPSTOP2 |
| rw |
Bits 31:1 Reserved, must be kept at reset value.
- Bit 0 DEEPSTOP2: DEEPSTOP2 low power saving emulation enable.
- – 0: normal Deepstop is applied
- – 1: DEEPSTOP2 (debugger features not lost) is applied instead of Deepstop.

5.6.23 Extended status and reset register (PWR_EXTSRR)
This register provides flags about RF SUBGHz radio activity start and Deepstop sequence occurrence or not.
Address offset: 0x88
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | RFPHASEF | DEEPSTOPF | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| rc_w1 | rc_w1 |
Bits 31:11 Reserved, must be kept at reset value.
Bit 10 RFPHASEF: RFPHASE Flag.
– 0: the RF SUBGHz IP does not require any attention.
– 1: the RF SUBGHz 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 RF SUBGHz 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.6.24 Debug SMPS register (PWR_DBGSMPS)
This register drives some control signals for the SMPS.
Address offset: 0x8C
Reset value: 0x0000 8000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| BOF_CUR_SEL[1:0] | ILIM_BOOST | DIS_ILIM | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
- Bit 15:14 BOF_CUR_SEL[1:0]: Bypass On the Fly current limitation
- – 00: 20 mA
- – 01: 40 mA
- – 10: 60 mA (default)
- – 11: no limit
- Bit 13 ILIM_BOOST: SMPS current limitation Boost
- – 0: Max current = 110 mA (default)
- – 1: Max current = 130 mA
Bit 12 DIS_ILIM: DIS_ILIM_3V3 SMPS control signal.
Bit 11:0 Reserved, must be kept at reset value.

5.6.25 Trimming values from engineering register (PWR_TRIMR)
This register provides the trimming values applied by hardware according to the trimming done at EWS.
Address offset: 0x90
Reset value: 0x----- (0x0000 2304 when device is not trimmed)
Note: A Hardware default value is defined after reset. It is be overload by the information stored in Flash on trimmed devices and kept as is for devices without trimming information.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | SMPS_TRIM | TRIM_MR | Res. | RFD_REG_TRIM | |||||||
| r | r | r | r | r | r | r | r | r | r | ||||||
Bits 31: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".
Bit 3 Reserved, must be kept at reset value.
Bits 2:0 RFD_REG_TRIM[2:0]: RF LDO trimming.
Default value when no trimming is "100".
5.6.26 Software trimming values register (PWR_ENGTRIM)
This register allows the software overloading the hardware trimming flashed at EWS.
Address offset: 0x94
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | SMPS_TRIM[2:0] | SMPSTRIMEN | TRIM_MR[3:0] | TRIMMREN | Res. | TRIM_RFDREG[2:0] | TRIMRFDREGEN | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||
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 overload 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 overload 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
Bit 4 Reserved, must be kept at reset value.
Bits 3:1 TRIM_RFDREG[2:0]: RF LDO trimming chosen by the software.
Bit 0 TRIMRFDREGEN: RFD_REG_TRIM software overload 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 PWR register map
Refer to Table 3: Memory map and peripheral register boundary addresses for the PWR base address location in STM32WL3Rxx devices.
Note: All the PWR registers are retained during Deepstop mode.
Table 13. PWR register map and reset values
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x00 | PWR_CR1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ENBORL | Res. | ENBORH | APC | IBIAS_RUN_STATE | IBIAS_RUN_AUTO | ENSDNBR | LPMS | |
| Reset value | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x04 | PWR_CR2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RFREGON_STATUS | RFREGRDY | RFREGBYP | RFREGCEXT | RFREGEN | Res. | GPIO_RET | LPREG_VH_STATUS | LPREG_VORCE_VH | Res. | DBGRET | PVDLS | PVDE | ||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||
| 0x08 | PWR_IEWU | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | EWMRSUBGHCPU | EWMRSUBG | Res. | Res. | Res. | Res. | Res. | EIWL1 | EIWL0 | |
| Reset value | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||
| 0x0C | PWR_IWUP | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WMRSUBGHCPUP | WMRSUBGP | Res. | Res. | Res. | Res. | Res. | IWUP1 | IWUP0 | |
| Reset value | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||
| 0x10 | PWR_IWUF | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WMRSUBGHCPUF | WMRSUBGF | Res. | Res. | Res. | Res. | Res. | IWUF1 | IWUF0 | |
| Reset value | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||
| 0x14 | PWR_SR2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IOBOOTVAL[3:0] | PVDO | Res. | Res. | Res. | WMRSUBGHCPUP | WMRSUBGF | IOBOOTVAL2[3:0] | Res. | Res. | SMPSEN | SMPSEN1 | SMPSEN0 | SMPSEN0R | |
| Reset value | X | X | X | X | 0 | 1 | X | X | X | X | 1 | 0 | |||||||||||||||||||||
| 0x18 | Reserved | ||||||||||||||||||||||||||||||||
Table 13. PWR register map and reset values (continued)
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x1C | PWR_CR5 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SMPS_BOF_DYN | SMPS_PRECH_CUR_SEL[1:0] | CLKDETR_DISABLE | SMPS_ENA_DCM | NOSMPS | SMPSFBYP | SMPSLPOEN | NOSMPS_BOF | SMPS_BOF_STATIC | SMPSBOMSEL[1:0] | SMPSLV[3:0] | ||||||
| Reset value | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | ||||||||||||||||||
| 0x20 | PWR_PUCRA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PUA11 | PUA10 | PUA9 | PUA8 | PUA7 | Res. | Res. | Res. | Res. | PUA3 | PUA2 | PUA1 | PUA0 | |
| Reset value | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | |||||||||||||||||||||||||
| 0x24 | PWR_PDCRA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PDA11 | PDA10 | PDA9 | PDA8 | UDS | Res. | Res. | Res. | Res. | PDA3 | PDA2 | PDA1 | PDA0 | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x28 | PWR_PUCRB | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PUB15 | PUB14 | PUB13 | PUB12 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |
| Reset value | 1 | 1 | 1 | 1 | ||||||||||||||||||||||||||||||
| 0x2C | PWR_PDCRB | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PDB15 | PDB14 | PDB13 | PDB12 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x30 | PWR_EWUA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | EWU11 | EWU10 | EWU9 | EWU8 | EWU7 | EWU6 | Res. | Res. | Res. | Res. | EWU3 | EWU2 | EWU1 | EWU0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||
| 0x34 | PWR_WUPA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WUP11 | WUP10 | WUP9 | WUP8 | WUP7 | Res. | Res. | Res. | Res. | WUP3 | WUP2 | WUP1 | WUP0 | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x38 | PWR_WUFA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WUF11 | WUF10 | WUF9 | WUF8 | WUF7 | Res. | Res. | Res. | Res. | WUF3 | WUF2 | WUF1 | WUF0 | |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x3C | Reserved | |||||||||||||||||||||||||||||||||
| 0x40 | PWR_EWUB | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | EWU15 | EWU14 | EWU13 | Res. | WUP15 | WUP14 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |
| Reset value | 0 | 0 | 0 | |||||||||||||||||||||||||||||||
| 0x44 | PWR_WUPB | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WUP13 | WUP12 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |||
| Reset value | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x48 | PWR_WUFB | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WUF15 | WUF14 | WUF13 | WUF12 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |
| Reset value | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x4C | PWR_SDWN_WUEN | 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. | Res. | |
| Reset value | ||||||||||||||||||||||||||||||||||
| 0x50 | PWR_SDWN_WUPOL | 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. | Res. | |
| Reset value | ||||||||||||||||||||||||||||||||||

Table 13. PWR register map and reset values (continued)
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x54 | PWR_SDWN_WUF | 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. | WUF |
| Reset value | 0 | ||||||||||||||||||||||||||||||||
| 0x58 | PWR_BOF_TUNE | 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. | Res. |
| Reset value | 0 | 1 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x5C - 0x80 | Reserved | ||||||||||||||||||||||||||||||||
| 0x84 | PWR_DBGR | 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. | DEEPSTOP2 |
| Reset value | 0 | ||||||||||||||||||||||||||||||||
| 0x88 | PWR_EXTSRR | 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. | Res. |
| Reset value | 0 | RFPHASEF | 0 | DEEPSTOPF | |||||||||||||||||||||||||||||
| 0x8C | PWR_DBGSMPS | 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. | Res. |
| Reset value | 1 | BOF_CUR_SEL[1:0] | 0 | ILIM_BOOST | 0 | DIS_ILIM | 0 | ||||||||||||||||||||||||||
| 0x90 | PWR_TRIMR | 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. | Res. |
| Reset value | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | |||||||||||||||||||||||
| 0x94 | PWR_ENGTRIM | 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. | Res. |
| Reset value | |||||||||||||||||||||||||||||||||
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 14 provides an overview of the flags that can help the embedded software to get the root cause of the CPU restart.
Table 14. Flags versus CPU reboot reason
| CPU reboot reason | RCC_CSR | PWR_ISCR (in SYSCFG) | PWR_EXTS RR | ||||
|---|---|---|---|---|---|---|---|
| LOCKUPRSTF | WDGRSTF | SFTRSTF | PORRSTF | PADRSTF | WAKEUP_ISC | DEEPSTOPF | |
| POR/BOR reset | - | - | - | 1 | 1 | - | - |
| NRSTn pad reset | - | - | - | - | 1 | - | - |
| Watchdog reset | - | 1 | - | - | 1 | - | - |
| System reset (CPU request) | - | - | 1 | - | 1 | - | - |
| LOCKUP reset | 1 | - | - | - | 1 | - | - |
| Deepstop exit on wakeup event | - | - | - | - | - | 1 | 1 |
| Deepstop exit on watchdog reset | - | 1 | - | - | 1 | - | - |
| Deepstop exit on NRSTn pad reset | - | - | - | - | 1 | - | - |
| Deepstop exit on POR/BOR | - | - | - | 1 | 1 | - | - |
| Shutdown exit | - | - | - | 1 | 1 | - | - |
| Ultra DeepStop exit | - | - | - | 1 | 1 | - | - |
If the reboot reason is a wakeup from Deepstop, then the wakeup source(s) can be read in the PWR_IWUF/WUFA/WUFB register as shown in Table 15.
Table 15. Wakeup reason flags
| Wakeup reason | PWR_IWUF | PWR_SRW UFA/B | |||
|---|---|---|---|---|---|
| IWUFx | WLPWUR | WMRSUB GHCPUF | WMRSUB GF | WUFx | |
| Wakeup on MR_SUBG event | - | - | - | 1 | - |
| Wakeup on Host timer in MR_SUBG event | - | - | 1 | - | - |
| Wakeup on RTC event | 1 | - | - | - | - |
| Wakeup on LPUART event | 1 | - | - | - | - |
| Wakeup on I/Os | - | - | - | - | 1 |
Note: If several (enabled) wakeup events occur, several bits are high in the PWR_IWUF/WUFA/WUFB.
The wakeup flags are set as soon as a wakeup event (enabled in the corresponding PWR_xEWUx register) occurs, the associated flag is set in the related PWR_xWUFx 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 when the modification implies to change more than one step (+/-100mV). In this case the following sequence must be respected:
- – Set PWR_CR5.SMPSBYP = 1
- – Wait for PWR_SR2.SMPSRDY = 0
- – Program the new targeted value in PWR_CR5.SMPSLVL[3:0]
- – Clear PWR_CR5.SMPSBYP = 0
- – Wait for PWR_SR2.SMPSRDY = 1
Caution: This sequence must be launched only when no radio activity / RF transfer is on- going.