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
STM32WL30xx/31xx/33xx 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 domain architecture. At the top, three main power lines are shown: VDDIO, VDDSD, and VFBSD. VDDSD and VFBSD are connected to an SMPS block. The SMPS output feeds into an MLDO block and an RFLDOs block. The MLDO block is connected to a VREG PAD block, which contains two switches labeled CMDNO and CMDNI. The VREG PAD also connects to an LP-Reg block. The LP-Reg block is connected to the V33 domain (VDDIO). The VREG PAD outputs VDD12O to the AlwaysOn domain (VDD12O) and VDD12I to the Interruptible domain (VDD12I). The RFLDOs block outputs VRF to the Analog RF block.
V33 domain (VDDIO)
LSI, LSE, BOR, POR, PVD, PWRC33, RCC33
AlwaysOn domain (VDD12O)
MR_SUBGHz_wakeup, LPAWUR_wakeup(1), LPUART, DAC(1), COMP, RTC, IWDG, LCD(1), LCSC(1), PWRCO, RCCO
Interruptible domain (VDD12I)
HSI, HSE, CPU, RF_FSM, MR_SUBGHz, LPAWUR(1), Peripherals, RCCi
Analog RF
1. STM32WL33xx only
MSv58344V1
5.3 Power voltage supervisor
STM32WL30xx/31xx/33xx 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
STM32WL30xx/31xx/33xx devices support 3 main operating modes:
- • Run mode
- • Deepstop mode
Shutdown modeThe 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

1. STM32WL33xx only.
2. Up to 256 Kbytes on STM32WL33xx, up to 128 Kbytes on STM32WL30xx/31xx.
MSv58341V2
5.4.2 Deepstop mode
Deepstop is the only low-power mode of STM32WL30xx/31xx/33xx 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 LCD(a) is enabled (LCD_CR.LCDEN=1)
- – 1.2 V if the comparator(a) scaler is enable (COMP_CSR.SCALEEN=1 and COMP_CSR.EN=1)
- – 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 other RAM banks are in retention or not, depending on software choice in PWR_CR2 register
- • 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 comparator(a), DAC(a), LCSC(a), LCD(a), 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 LPAWUR(a) 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 (comparator(a), DAC(a), LCSC(a), LCD(a), RTC, IWDG and LPUART)
- – I/O analog switch configuration is retained for the I/Os on which is mapped at least
one analog pin of a peripheral that can be active in Deepstop mode (comparator(a), DAC(a), LCSC(a))
- – 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.
- • The DAC(a) is only internally connected to the COMP(a), so the output on PA13 cannot be used
- • VCMBUF is connected to PB4 only in the LCSC(a) use case.
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 LPAWUR(a) is able to generate a wakeup event
- • The LCD(a) is able to generate a wakeup event
- • The COMP(a) is able to generate a wakeup event (with polarity selection, like I/Os)
- • The LCSC(a) is able to generate a wakeup event
- • 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 DEEPSTOP, 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 SRAM0 and SRAM1 (only in STM32WL33xx) banks.
a. STM32WL33xx only.
Figure 7. Power regulators and SMPS configuration in Deepstop mode

The diagram illustrates the power management architecture in Deepstop mode. It shows the following components and connections:
- Vss: Main power supply input.
- LP-Reg: Low-power regulator providing VGATEN to the VREG PAD.
- VREG PAD: A switch network with CMDNO and CMDNI control signals, connecting to SMPS and MLDO regulators.
- SMPS: Switch-mode power supply regulator.
- MLDO: Low-dropout regulator providing VGATEP to the VREG PAD.
- V33 domain (VDDIO): Contains LSI, LSE, BOR, POR, PVD, PWRC33, RCC33.
- AlwaysOn domain (VDD12O): Contains MR_SUBGHz_wakeup, LPAWUR_wakeup(1), LPUART, DAC(1), COMP(1), RTC, WDOG, LCD(1), LCSC(1), PWRCO, RCCO and LS IO management.
- Interruptible domain (VDD12I): Contains HSI, HSE, CPU, RF_FSM, MR_SUBGHz, LPAWUR(1), Peripherals, RCCi.
- HSI: High-speed internal oscillator, connected to VDD12O and VDD12I.
- PU/PD: Power-up/power-down control block.
- IOs: Input/Output pins.
- RAM0 and RAM1(1): Memory blocks, with RAM1 being optional.
- FLASH(2): Non-volatile memory.
- PAD reset: Reset signal input.
Footnotes:
1. STM32WL33xx only.
2. Up to 256 Kbytes on STM32WL33xx, up to 128 Kbytes on STM32WL30xx/31xx.
MSv58345V2
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 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 pin.
- • the only wakeup sources are a low pulse on the RSTN pin or configurable pulse or level on PB0 pin through the 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 8 shows the regulators and SMPS configuration in Shutdown mode, configured with the BOR reset disabled.
Power controller (PWR)
RM0511
Figure 8. Power regulators and SMPS configuration in Shutdown mode

The diagram illustrates the power regulators and SMPS configuration in Shutdown mode. It shows power inputs VDDIO, VDDSD, and VSS. The VREG PAD section contains CMDNO, CMDNI, and switch transistors controlled by VGATEN and VGATEP. Power domains include the V33 domain (VDDIO) containing POR, PVD (struck-through: LSI, LSE, BOR), PWRC33, RCC33, connected to PAD reset, PU/PD, and IOs. The AlwaysOn domain (VDD12O) is powered via LP-Reg (with VDD12O output) and contains MR_SUBGHz_wakeup, LPAWUR_wakeup(1), LPUART, DAC(1), COMP(1), RTC, WDOG, LCD(1), LCSC(1), PWRCo, RCCo, and LS IO management. The Interruptible domain (VDD12I) with VDD12I output from MLDO contains HSI, HSE, CPU, RF_FSM, MR_SUBGHz, LPAWUR(1), Peripherals, and RCCi. An HSI block sits between the AlwaysOn and Interruptible domains. Memory components include RAM0, RAM1(1), and FLASH(2).
1. STM32WL33xx only.
2. Up to 256 Kbytes on STM32WL33xx, up to 128 Kbytes on STM32WL30xx/31xx.
MSv58346V2
74/1080
RM0511 Rev 7

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

graph TD
START((START<br/>(reset))) -- RESETn --> RUN((RUN<br/>CPU: CRUN/CSLEEP<br/>RF: ON/OFF))
RUN -- "CSTOP &<br/>RF OFF<br/>& CR1.LPMS=<br/>SHUTDOWN" --> SHUTDOWN((SHUTDOWN))
RUN -- "CSTOP &<br/>RF OFF<br/>& CR1.LPMS=<br/>DEEPSTOP" --> DEEPSTOP((DEEPSTOP<br/>CSTOP<br/>RF:OFF))
DEEPSTOP -- wakeup --> RUN
SHUTDOWN --> START
START (reset)
LPREG: OFF
MLDO: OFF
SMPS: PRECHARGE
RFLDO: OFF
LSI/LSE: OFF
HSI: OFF
HSE: OFF
POR
SHUTDOWN
LPREG: OFF
MLDO: OFF
SMPS: OFF
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
CPU: CSLEEP => SLEEPING
CPU: CSTOP => DEEPSLEEP
RF: OFF=> Ready2Sleep
5.5 SMPS step down regulator
The STM32WL30xx/31xx/33xx 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 10).
Figure 10. 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 11.
Figure 11. PWR SMPS state machine overview

stateDiagram-v2
[*] --> STARTUP : RESETn
STARTUP --> SMPS_REQ
SMPS_REQ --> RUN : smps_rdy OR CR5.SMPSFRDY
RUN --> STOP : ds_entry
STOP --> STARTUP : ds_exit
RUN --> NOSMPS : CR5.NOSMPS
NOSMPS --> RUN : !CR5.NOSMPS
RUN --> PRECHARGE : CR5.SMPSFBYP & !CR5.NOSMPS
PRECHARGE --> RUN : !CR5.SMPSFBYP
State details:
- STARTUP: smps_req=0, smps_precharge=1
- SMPS_REQ: smps_req=1, smps_precharge=1
- RUN: smps_req=1, smps_precharge=1
- STOP: smps_req=0, smps_precharge=~CR5.SMPSLPOPEN
- NOSMPS: smps_req=0, smps_precharge=0
- PRECHARGE: smps_req=0, 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 STM32WL30xx/31xx/33xx (see Figure 10).
- • 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 STM32WL30xx/31xx/33xx (see Figure 10),
- – 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 STM32WL30xx/31xx/33xx 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:
- 1 All the PWR APB registers are only 16-bit registers. The 16 MSBs are always stuck at 0.
- 2 Comparator, DAC, I2C2, LCSC, LCD, LPAWUR are available only on STM32WL33xx devices.
ADC, temperature sensor, I2C1, SPI1, I2S are available only on STM32WL31xx/33xx devices.
Any reference to these IPs on PWR registers is valid within this perimeter.
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. | ENBO RL | Res. | Res. | ENBO RH | APC | IBIAS_ RUN_S TATE | IBIAS_ RUN_A UTO | ENSDN BOR | LPMS |
| rw | rw | rw | rw | rw | rw | rw |
Bits 31:9 Reserved, must be kept at reset value.
Bit 8 ENBORL: Enable BORL reset supervisioning 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 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.6 V during Shutdown mode).
Note: Enabling this feature prevents blocking the device if VDDIO goes below supported voltages during 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: 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 | RAMR ET1 | DBG R ET | PVDLS[2:0] | PVDE | ||
| r | r | rw | rw | rw | rw | r | rw | 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. Note: When the LCD is enable (LCD_CR.LCDEN=1) or the Comparator SCALER is enable (COMP_CSR.SCALEEN=1 and COMP_CSR.EN=1) the LPREG voltage is set at 1.2 V by hardware- – 0: LPREG=1 V during Deepstop mode (default).
- – 1: Force LPREG=1.2 V during Deepstop mode.
- Bit 5 RAMRET1: RAM1 (STM32WL33xx only) bank retention in Deepstop mode.
- – 0: SRAM1 bank is not retained during Deepstop mode (default).
- – 1: SRAM1 bank is retained during Deepstop mode.
- 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. | EWLPA WUR | EWMR SUBG HCPU | EWMR SUBG | Res. | Res. | Res. | EIWL4 | EIWL3 | EIWL2 | EIWL1 | EIWL0 |
| rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:11 Reserved, must be kept at reset value.
Bit 10 EWLPAWUR: Enable wakeup on LPAWUR event
- – 0: Wakeup on LPAWUR event is disabled (default).
- – 1: Wakeup on LPAWUR event is enabled.
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:5 Reserved, must be kept at reset value.
Bit 4 EIWL4: Enable wakeup on LCSC event (LCSC).
- – 0: Wakeup on internal line is disabled (default).
- – 1: Wakeup on internal line is enabled.
Bit 3 EIWL3: Enable wakeup on Internal event (COMP).
- – 0: Wakeup on internal line is disabled (default).
- – 1: Wakeup on internal line is enabled.
Bit 2 EIWL2: Enable wakeup on Internal event (LCD).
- – 0: Wakeup on internal line is disabled (default).
- – 1: Wakeup on internal line is enabled.
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. | WLPA WURP | WMRS UBGH CPUP | WMRS UBGP | Res. | Res. | Res. | IWUP4 | IWUP3 | IWUP2 | IWUP1 | IWUP0 |
| rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:11 Reserved, must be kept at reset value.
Bit 10 WLPAWURP: Wakeup polarity for LPAWUR event.
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
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:5 Reserved, must be kept at reset value.
Bit 4 IWUP4: Wakeup polarity for internal wakeup line 4 event (LCSC).
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
Bit 3 IWUP3: Wakeup polarity for internal wakeup line 3 event (COMP).
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
Bit 2 IWUP2: Wakeup polarity for internal wakeup line 2 event (LCD).
- – 0: Detection of wakeup event on rising edge (default).
- – 1: Detection of wakeup event on falling edge.
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. | WLPA WURF | WMRS UBGH CPUF | WMRS UBGF | Res. | Res. | Res. | IWUF4 | IWUF3 | IWUF2 | IWUF1 | IWUF0 |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 |
Bits 31:11 Reserved, must be kept at reset value.
Bit 10 WLPAWURF: LPAWUR wakeup flag
- – 0: no wakeup from LPAWUR occurred since last clear.
- – 1: a wakeup from LPAWUR occurred since last clear.
Cleared by writing 1 in this bit.
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:5 Reserved, must be kept at reset value.
Bit 4 IWUF4: Internal wakeup flag (LCSC).
- – 0: no wakeup from LCSC occurred since last clear.
- – 1: a wakeup from LCSC occurred since last clear.
Cleared by writing 1 in this bit.
Bit 3 IWUF3: Internal wakeup flag (COMP).
- – 0: no wakeup from COMP occurred since last clear.
- – 1: a wakeup from COMP occurred since last clear.
Cleared by writing 1 in this bit.
- Bit 2 IWUF2: Internal wakeup flag (LCD).
- – 0: no wakeup from LCD occurred since last clear.
- – 1: a wakeup from LCD occurred since last clear.
- Cleared by writing 1 in this bit.
- 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 | SMPSE NR | 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_DYN | SMPS_PRECH_CUR_SEL[1:0] | CLKDETR_DISABLE | SMPS_ENA_DCM | NOSMPS | SMPSFBYP | SMPSLPOPEN | NOSMPS_BO_F | SMPS_BOF_STATIC | 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 |
| PUA15 | PUA14 | PUA13 | PUA12 | PUA11 | PUA10 | PUA9 | PUA8 | PUA7 | PUA6 | PUA5 | PUA4 | PUA3 | PUA2 | PUA1 | PUA0 |
| 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.
Bits 15:0 PUAx (x=15 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 |
| PDA15 | PDA14 | PDA13 | PDA12 | PDA11 | PDA10 | PDA9 | PDA8 | PDA7 | PDA6 | PDA5 | PDA4 | PDA3 | PDA2 | PDA1 | PDA0 |
| 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.
Bits 15:0 PDAx (x=15 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 | PUB11 | PUB10 | PUB9 | PUB8 | PUB7 | PUB6 | PUB5 | PUB4 | PUB3 | PUB2 | PUB1 | PUB0 |
| 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.
Bits 15:0 PUBx (x=15 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 | PDB11 | PDB10 | PDB9 | PDB8 | PDB7 | PDB6 | PDB5 | PDB4 | PDB3 | PDB2 | PDB1 | PDB0 |
| 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.
Bits 15:0 PDBx (x=15 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 |
| EWU15 | EWU14 | EWU13 | EWU12 | EWU11 | EWU10 | EWU9 | EWU8 | EWU7 | EWU6 | EWU5 | EWU4 | EWU3 | EWU2 | EWU1 | EWU0 |
| 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.
Bits 15:0 EWUx (x = 15 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 |
| WUP15 | WUP14 | WUP13 | WUP12 | WUP11 | WUP10 | WUP9 | WUP8 | WUP7 | WUP6 | WUP5 | WUP4 | WUP3 | WUP2 | WUP1 | WUP0 |
| 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.
Bits 15:0 WUPx (x = 15 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 |
| WUF15 | WUF14 | WUF13 | WUF12 | WUF11 | WUF10 | WUF9 | WUF8 | WUF7 | WUF6 | WUF5 | WUF4 | WUF3 | WUF2 | WUF1 | WUF0 |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | 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:0 WUFx (x = 15 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 | EWU11 | EWU10 | EWU9 | EWU8 | EWU7 | EWU6 | EWU5 | EWU4 | EWU3 | EWU2 | EWU1 | EWU0 |
| 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.
Bits 15:0 EWUx (x = 15 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 | WUP11 | WUP10 | WUP9 | WUP8 | WUP7 | WUP6 | WUP5 | WUP4 | WUP3 | WUP2 | WUP1 | WUP0 |
| 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.
Bits 15:0 WUPx (x = 15 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 | WUF11 | WUF10 | WUF9 | WUF8 | WUF7 | WUF6 | WUF5 | WUF4 | WUF3 | WUF2 | WUF1 | WUF0 |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | 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:0 WUFx (x = 15 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: PB0I/O wakeup from Shutdown modes.
- – 0: PB0 disable pin wakeup from Shutdown modes.
- – 1: PB0 enable pin wakeup from Shutdown modes.
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 I/O wakeup from shutdown polarity.
- – 0: PB0 pin wakeup from Shutdown modes on high pulse or high level detection.
- – 1: PB0 pin wakeup from Shutdown modes 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 pin I/O wakeup from Shutdown mode flags.
- – 0: Shutdown wakeup from PB0 pin has not occurred.
- – 1: Shutdown wakeup from PB0 pin 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 STM32WL30xx/31xx/33xx devices.
Note: All the PWR registers are retained during Deepstop mode.
The salmon cells indicates 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 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. | Res. | ENBORH | APC | IBIAS_RUN_STATE | IBIAS_RUN_AUTO | ENSDNBOR | LPMS |
| Reset value | 1 | 0 | 1 | 0 | 1 | 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 | RAMRET1 | DBGRET | Res. | PVDLS | Res. | 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. | EWLPAWUR | EWMRSUBGHCPU | EWMRSUBG | Res. | Res. | Res. | EIWL4 | EIWL3 | EIWL2 | EIWL1 | EIWL0 |
| Reset value | 0 | 0 | 0 | 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. | WLPAWURP | WMRSUBGHCPUP | WMRSUBGP | Res. | Res. | Res. | IWUP4 | IWUP3 | IWUP2 | IWUP1 | IWUP0 |
| Reset value | 0 | 0 | 0 | 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. | WLPAWURF | WMRSUBGHCPUF | WMRSUBGF | Res. | Res. | Res. | IWUF4 | IWUF3 | IWUF2 | IWUF1 | IWUF0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||
| 0x14 | PWR_SR2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IOBOOTVAL[3:0] | PVDO | Res. | Res. | REGLPS | IOBOOTVAL2[3:0] | Res. | Res. | SMPSENR | SMPSBYPR | ||||||
| Reset value | X | X | X | X | 0 | 1 | X | X | X | X | 1 | 0 | |||||||||||||||||||||

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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x18 | Reserved | ||||||||||||||||||||||||||||||||
| 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x20 | PWR_PUCRA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PUA15 | PUA14 | PUA13 | PUA12 | PUA11 | PUA10 | PUA9 | PUA8 | PUA7 | PUA6 | PUA5 | PUA4 | PUA3 | PUA2 | PUA1 | PUA0 |
| Reset value | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||
| 0x24 | PWR_PDCRA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PDA15 | PDA14 | PDA13 | PDA12 | PDA11 | PDA10 | PDA9 | PDA8 | PDA7 | PDA6 | PDA5 | PDA4 | PDA3 | PDA2 | PDA1 | PDA0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | PUB11 | PUB10 | PUB9 | PUB8 | PUB7 | PUB6 | PUB5 | PUB4 | PUB3 | PUB2 | PUB1 | PUB0 |
| Reset value | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | PDB11 | PDB10 | PDB9 | PDB8 | PDB7 | PDB6 | PDB5 | PDB4 | PDB3 | PDB2 | PDB1 | PDB0 |
| 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. | EWU15 | EWU14 | EWU13 | EWU12 | EWU11 | EWU10 | EWU9 | EWU8 | EWU7 | EWU6 | EWU5 | EWU4 | EWU3 | EWU2 | EWU1 | EWU0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 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. | WUP15 | WUP14 | WUP13 | WUP12 | WUP11 | WUP10 | WUP9 | WUP8 | WUP7 | WUP6 | WUP5 | WUP4 | WUP3 | WUP2 | WUP1 | WUP0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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. | WUF15 | WUF14 | WUF13 | WUF12 | WUF11 | WUF10 | WUF9 | WUF8 | WUF7 | WUF6 | WUF5 | WUF4 | WUF3 | WUF2 | WUF1 | WUF0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | EWU12 | EWU11 | EWU10 | EWU9 | EWU8 | EWU7 | EWU6 | EWU5 | EWU4 | EWU3 | EWU2 | EWU1 | EWU0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x44 | PWR_WUPB | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WUP15 | WUP14 | WUP13 | WUP12 | WUP11 | WUP10 | WUP9 | WUP8 | WUP7 | WUP6 | WUP5 | WUP4 | WUP3 | WUP2 | WUP1 | WUP0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | WUF11 | WUF10 | WUF9 | WUF8 | WUF7 | WUF6 | WUF5 | WUF4 | WUF3 | WUF2 | WUF1 | WUF0 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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. | WUEN |
| Reset value | 0 | ||||||||||||||||||||||||||||||||
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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. | WUPOL |
| Reset value | 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. | BOF_TUNE[2:0] |
| Reset value | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||
| 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||

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 | - | - |
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 LPAWUR(1) event | - | 1 | - | - | - |
| Wakeup on RTC event | 1 | - | - | - | - |
| Wakeup on LPUART event | 1 | - | - | - | - |
| Wakeup on LCD(1) event | 1 | - | - | - | - |
| Wakeup on COMP(1) event | 1 | - | - | - | - |
| Wakeup on LCSC(1) event | 1 | - | - | - | - |
| Wakeup on I/Os | - | - | - | - | 1 |
1. Comparator, LCSC, LCD, LPAWUR are available only on STM32WL33xx devices.
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.