5. Power controller (PWRC)
The Power controller block control the analog supplies block and manages the startup, active and low power phase of the device including the transition from one state to another.
5.1 Features
The Power controller block supports the following features:
- • 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 VBGP)
- • I/Os pull-up/-down during low power mode
- • Wakeup I/O configuration
5.2 Power supply domains
The STM32WB09xE device embeds three power domains:
- • VDD33 (also called 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 1.0V during low power mode (Deepstop)
- • 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.0V 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.2V to the analog RF block.
An embedded SMPS step down converter is available (inserted between the external power and the LDOs).
Figure 4 shows an overview of the different regulators and connections between the power supplies domains.
Figure 4. Power supply domains overview

The diagram illustrates the power supply architecture. At the top, external power lines are shown for \(V_{DDIO}\), \(V_{DDSD}\), and \(V_{FBSD}\). These lines feed into a central VREG PAD block. Within the VREG PAD, there are two switches controlled by CMDNO and CMDNI signals. The LP-Reg (Low Power Regulator) is connected to the \(V_{DDIO}\) line and its output is controlled by the VGATEN signal from the VREG PAD. The MLDO (Main LDO) is connected to the \(V_{DDSD}\) line and its output is controlled by the VGATER signal from the VREG PAD. The SMPS (Switched Mode Power Supply) is also connected to the \(V_{DDSD}\) line and its output feeds into the RFLDOs (RF LDOs) block. The RFLDOs output \(V_{RF}\) is connected to the Analog RF block. The VREG PAD also provides \(V_{DD12O}\) and \(V_{DD12I}\) outputs. These outputs are connected to three main system domains: the V33 domain (VDDIO) containing HSE, LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33; the AlwaysOn domain (VDD12O) containing BLE_wakeup, RTC, IWDG, LPUART, PWRCO, and RCCO; and the Interruptible domain (VDD12I) containing CPU, RF_FSM, BLE, Peripherals, and RCCI. The diagram is labeled MSv58720V1 in the bottom right corner.
5.3 Power voltage supervisor
The STM32WB09xE device embeds several power voltage monitoring:
- • Power-on reset (POR) / power-down reset (PDR) / brown-out reset (BOR)
- • Programmable 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 VDDIO is below a \(V_{POR}\) threshold (typically 1.60 V).
During power down, the PDR puts the device under reset when the supply voltage (VDD) drops below the \(V_{PDR}\) threshold (around 20mV below \(V_{POR}\)). The PDR feature is always enabled.
Figure 5. Power on reset/power down reset waveform

The figure is a timing diagram showing the relationship between the supply voltage \(V_{DDIO}\) and the reset signal PORESETn. The vertical axis represents \(V_{DDIO}\) and the horizontal axis represents time T. \(V_{DDIO}\) starts at zero, ramps up linearly, crosses a dashed line labeled 'POR', reaches a plateau, and then ramps down linearly, crossing another dashed line labeled 'PDR / BOR'. The vertical distance between these two dashed lines is labeled 'hysteresis'. The PORESETn signal is shown as a digital waveform. It is in a low state (active reset) starting from the beginning of the time axis until a point marked by a vertical dashed line. This point is \(T_{TEMPO}\) after the \(V_{DDIO}\) signal crosses the 'PDR / BOR' threshold. After this delay, PORESETn transitions to a high state (inactive).
With typical values as follows:
- • \(V_{POR}\): 1.60 V
- • hysteresis: 20 mV (so \(V_{PDR}\): 1.58 V)
- • \(T_{TEMPO}\): 600 μs
The Brown-Out reset (BOR) generates a device reset when the power supply (VDD) drops under \(V_{PDR}\).
This feature is always active except during the Shutdown mode where the software can decide to enable it or not (through PWRC_CR1.ENSDNBOR bit).
5.3.2 Programmable voltage detector (PVD)
The PVD can be used to monitor:
- • The VDDIO:
- – the VDDIO is compared to a programmed threshold (between 2.04 V and 2.94 V)
- – the threshold programming is done through PWRC_CR2.PVDLS[2:0] bit field
- • An external analog input signal:
- – an external analog signal is compared to an internal VBGP (at 1.0V) voltage
- – the feature is selected through PWRC_CR2.PVDLS[2:0] bit field
The PVD can be enabled or disabled through PWRC_CR2.PVDE bit.
When the feature is enabled and the PVD measure a voltage below the comparator, a status flag is raised in the SYSCFG block that can generate an interrupt to the CPU if unmasked (see Section 8.2.8: I/O Interrupt Status and Clear register (IO_ISCR)).
5.4 Operating modes
The STM32WB09xE supports three main operating modes:
- • Run mode
- • Deepstop mode
- • Shutdown 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.6.18: RCC register map).
Figure 6 shows the regulators and SMPS configuration in Run mode with a product with only 24 Kbytes of RAM.
Figure 6. Power regulators and SMPS configuration in Run mode

The diagram illustrates the power distribution and regulation for the RM0505 microcontroller in Run mode. It features three primary power domains: the V33 domain (VDDIO), the AlwaysOn domain (VDD12O), and the Interruptible domain (VDD12I). Power is supplied from the Vss rail through several regulators: an LP-Regulator, a VREG PAD (containing CMDNO and CMDNI switches), an SMPS, and an MLDO. The V33 domain (VDDIO) includes components like HSE, LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain (VDD12O) includes BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO, along with LS IO management. The Interruptible domain (VDD12I) includes the CPU, RF_FSM, BLE, Peripherals, and RCCI, along with LS IO control. Memory blocks RAM0, RAM1, RAM2, RAM3, and FLASH are connected to the system. Control signals VDD12O and VDD12I are distributed to the HSI and other domains. A PU/PD block and IOs are connected to the V33 domain. A PAD reset signal is also present.
MSv58721V1
5.4.2 Deepstop mode
The Deepstop is the only low power mode of the STM32WB09xE allowing to restart from a saved context environment and go on running the application at wakeup.
The conditions to enter the Deepstop mode are:
- • The radio (MR_BLE) 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 system is clocked on the RC64MPLL (HSI or pll locked mode)
- • The PWRC_CR1.LPMS bit is equal to 0.
- • If PWRC_CR1.APC = 1, the I/O pull-ups/pull-downs are controlled by the PWRC_PUCRx/PWRC_PDCRx registers.
- • Set GPIORET bit to enable GPIOs configuration retention for all I/Os (If DEEPSTOP2 bit is set, GPIORET must be reset, because SWJTAG must be available).
Note: If the MR_BLE is not used at all by the SoC (or not yet started), the following steps need to be done after any reset to allow low power modes (Deepstop and Shutdown):
- – Enable the MR_BLE clock by setting the RCC_APB2ENR.MRBLEEN bit.
- – Set the BLE_SLEEP_REQUEST_MODE.FORCE_SLEEPING bit inside the Wakeup block of the MR_BLE to have the MR_BLE IP requesting low power mode to the SoC.
- – Gate again the MR_BLE clock by clearing the RCC_APB2ENR.MRBLEEN bit.
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 at 1.0 V
- • the RAM0 bank is kept in retention
- • The other RAM banks are in retention or not, depending on software choice in PWRC_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 RTC, IWDG and LPUART stay active (if enabled and one slow clock source is ON)
- • the MR_BLE wakeup block including its timer stay active (if enabled and one slow clock source is ON)
- • All I/Os configurations can be retained and are able to be configured:
- – in output:
- a) Driving either a static low or high level if Section 7.4: GPIO registers properly programmed.
- b) Driving the slow clock information RCC_LCO on PA10 only if LCOEN bit is set.
- c) Driving the RTC_OUT on PA8 only if Section 19.6.3: RTC control register (RTC_CR) properly programmed and AF1 selected.
- – In input if Section 7.4: GPIO registers properly programmed.
- – in output:
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 PWRC_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_BLE block is able to generate two events to wakeup the system through its embedded wakeup timer running on slow clock:
- – Bluetooth LE IP wakeup time is reached
- – Host CPU 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 are in retention mode (except PA2 and PA3 in order to have SWJTAG available again); if DBGRET bit was set, before entering Deepstop mode, then at wakeup also PA2 and PA3 are in retention mode and SWJTAG is not available. To change I/Os configuration, when exiting Deepstop, it is necessary to reset GPIORET bit after having re-configured GPIO registers through Section 7.4: GPIO registers (this GPIO configuration, can be the same before entering Deepstop, or a new one). At wakeup, the hardware resources located in the VDD12i power domain are reset, the CPU reboots. The wakeup reason is visible in a PWRC register (see Section 5.7.5: Status register 1 (PWRC_SR1) for details).
Figure 7 shows the regulators and SMPS configuration in Deepstop mode, with a configuration requesting retention only on RAM1, RAM2 and RAM3 banks.
Figure 7. Power regulators and SMPS configuration in Deepstop mode(a)

The diagram illustrates the power management architecture in Deepstop mode. It features three primary power domains: the V33 domain (VDDIO), the AlwaysOn domain (VDD12O), and the Interruptible domain (VDD12I). The V33 domain contains low-power peripherals like HSE, LSI, LSE, BOR, POR, PVD, PWRC33, and RCC33. The AlwaysOn domain includes wake-up and watchdog components: BLE_wakeup, RTC, WDOG, LPUART, PWRCO, and RCCO. The Interruptible domain houses the main system components: CPU, RF_FSM, BLE, Peripherals, and RCCI. Power is supplied through several regulators: LP-Reg, VREG PAD (which includes CMDNO, CMDNI, and control switches), HSI, SMPS, and MLDO. Memory is organized into RAM0, RAM1, RAM2, and RAM3, with RAM2 and RAM3 being optional based on RAMRET1, 2, 3 settings. A FLASH memory block is also present. Control logic includes PU/PD, IOs, LS, and IO control. The diagram also shows the Vss, VDDIO, and VDDSD power pins and a PAD reset input.
MSv58722V1
a. Strikethrough text indicates that the feature is OFF in Deepstop mode.
5.4.3 Shutdown mode
The Shutdown mode is the least power consuming mode.
The conditions to enter the Shutdown mode are the same conditions needed to enter in Deepstop mode except that the PWRC_CR1.LPMS bit must be equal to 1 (PWRC_DBGR.DEEPSTOP2 bit must be maintained equal to 0).
In Shutdown mode:
- • 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 PWRC_CR1.APC = 1, the I/O pull-ups/pull-downs are controlled by the PWRC_PUCRx/PWRC_PDCRx registers.
- • The only wakeup sources are a low pulse on the RSTN pin or configurable pulse on PB0 pin.
- • The only wakeup sources are a low pulse on the RSTN pin or configurable pulse or level on PB0 pin through Shutdown I/O Wakeup Enable register (PWRC_SDWN_WUEN) and Shutdown I/O Wakeup Polarity register (PWRC_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 Section 6.6.15: Clock control and reset status register (RCC_CSR) for reset reason flags detail or Shutdown I/O Wakeup Flag register (PWRC_SDWN_WUF) for PB0 wakeup flag).
The BOR feature may be enabled or disabled during Shutdown through the PWRC_CR1.ENSDNBOR bit).
Figure 8 shows the regulators and SMPS configuration in Shutdown mode, configured with the BOR reset disabled.
Figure 8. Power regulators and SMPS configuration in Shutdown mode(a)

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

graph TD; START((START<br>reset)) -- "RESETn" --> RUN((RUN<br>CPU: CRUN/CSLEEP<br>RF: ON/OFF)); RUN -- "CSTOP & RF OFF & CR1.LPMS=SHUTDOWN" --> SHUTDOWN((SHUTDOWN)); RUN -- "CSTOP & RF OFF & CR1.LPMS=DEEPSTOP" --> DEEPSTOP((DEEPSTOP<br>CSTOP<br>RF:OFF)); DEEPSTOP -- "wakeup" --> RUN; SHUTDOWN --> START;
START
LPREG: OFF
MLDO: OFF
SMPS: PRECHARGE
RFLDO: OFF
LSI/LSE: OFF
HSI: OFF
HSE: OFF
POR
RUN
LPREG: ON/OFF
MLDO: ON (1.2V)
SMPS: ON/BYP
RFLDO: ON/OFF
LSI: ON/OFF
LSE: ON/OFF
HSI: ON
HSE: ON/OFF
STOP
LPREG: ON (0.95V)
MLDO: OFF
SMPS: PRECHARGE/(OPEN)
RFLDO: OFF
LSI: ON/OFF
LSE: ON/OFF
HSI: OFF
HSE: OFF
SHUTDOWN
LPREG: OFF
MLDO: OFF
SMPS: OFF
RFLDO: OFF
LSI/LSE: OFF
HSI: OFF
HSE: OFF
POR
CPU: CSLEEP => SLEEPING
CPU: CSTOP => DEEPSLEEP
RF: OFF=> Ready2Sleep
5.5 SMPS step down regulator
The STM32WB09xE SMPS is a 20 mA output step down SMPS (switch mode power supply) converter.
The SMPS output voltage can be programmed from 1.2 V to 1.9 V. It is internally clock at 4 MHz or 8 MHz.
The SMPS can be in different configurations:
- • ON:
- – the \(V_{FBSD}\) pin of the SMPS outputs a regulated voltage (from 1.2 V to 1.9 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
- • PRECHARGE (also called BYPASS):
- – the \(V_{FBSD}\) pin output the VDDIO without regulation
- – the SMPS does not need a clock
- – the SMPS current can be limited programming Control register 5 (PWRC_CR5).
- • 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 diagram illustrates two power supply configurations for the SMPS step down converter. Both configurations show the SMPS Step Down converter connected to \(V_{DD}\), \(V_{DDSD}\), \(V_{LXSD}\), and \(V_{FBSD}\) pins. In the 'SMPS supply configuration', the \(V_{FBSD}\) pin is connected to a capacitor (\(V_{CAP}\)) and a ground. In the 'NOSMPS supply configuration', the \(V_{FBSD}\) pin is also connected to a capacitor (\(V_{CAP}\)) and a ground. Both configurations show the output of the SMPS connected to the Main LDO, RF LDO, and LP Reg.
The user must configure the provides the PWRC_CR5.SMPSBOMSEL[1:0] according to the BOM implemented on his board. The value to program is indicated in Table 11.
Table 11. SMPS BOM information
| BOM | Inductance (L) | Output capacitance (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 PWRC through a state machine shown in Figure 11.
Figure 11. PWRC SMPS state machine overview

graph TD
STARTUP([STARTUP]) -- RESETn --> STARTUP
STARTUP --> SMPS_REQ([SMPS_REQ])
SMPS_REQ -- "smps_rdy OR CR5.SMPSFRDY" --> RUN([RUN])
RUN -- "ds_exit" --> STARTUP
RUN -- "~CR5.NOSMPS" --> STOP([STOP])
RUN -- "~CR5.SMPSFBYP & !CR5.NOSMPS" --> PRECHARGE([PRECHARGE])
STOP -- "ds_entry" --> RUN
STOP -- "!CR5.NOSMPS" --> NOSMPS([NOSMPS])
NOSMPS -- "!CR5.SMPSFBYP" --> PRECHARGE
PRECHARGE --> RUNThe diagram illustrates the PWRC SMPS state machine with the following states and transitions:
- STARTUP: State machine entry on
RESETn. Outputs:smps_req=0,smps_precharge=1. - SMPS_REQ: Transitions from STARTUP. Outputs:
smps_req=1,smps_precharge=1. Transitions to RUN onsmps_rdy OR CR5.SMPSFRDY. - RUN: Operating state. Outputs:
smps_req=1,smps_precharge=1. Transitions:- To STARTUP on
ds_exit. - To STOP on
~CR5.NOSMPS. - To PRECHARGE on
~CR5.SMPSFBYP & !CR5.NOSMPS.
- To STARTUP on
- STOP: Outputs:
smps_req=0,smps_precharge=~CR5.SMPSLPOPEN. Transitions to RUN onds_entry, and to NOSMPS on!CR5.NOSMPS. - NOSMPS: Outputs:
smps_req=0,smps_precharge=0. Transitions to PRECHARGE on!CR5.SMPSFBYP. - PRECHARGE: Outputs:
smps_req=0,smps_precharge=1. Transitions to RUN.
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 \(V_{FBSD}\) is regulated and voltage amplitude is the one programmed in the PWRC_CR5.SMPSLVL bit field
- – a L/C BOM is present on the board and is connected on the VFBSD pad of the STM32WB09xE (see Figure 10)
- • NOSMPS (if the software configures PWRC_CR5.NOSMPS=1):
- – the SMPS is OFF
- – the SMPS clock is stopped
- – the \(V_{FBSD}\) is directly connected to the VDDIO through the VFBSD pad of the STM32WB09xE (see Figure 10)
- – the PWRC does not control any specific sequencing on the SMPS during low power entry/exit phases
- • PRECHARGE, also called BYPASS, (if the software configures PWRC_CR5.SMPSFBYP=1):
- – the SMPS is ON in a precharge mode
- – the SMPS clock is stopped
- – the \(V_{FBSD}\) is the VDDIO voltage crossing the SMPS block
- – the PWRC does not control any specific sequencing on the SMPS during low power entry/exit phases
- – this mode is compliant with a L/C BOM connected on the VFBSD pad of the STM32WB09xE.
When the device enters in Deepstop mode, the PWRC automatically switches the SMPS from Run to Deepstop mode which can be:
- • if PWRC_CR5.SMPSLPOpen = 0: SMPS output is the VDDIO (as in PRECHARGE FSM state)
- • if PWRC_CR5.SMPSLPOpen = 1: the SMPS output is floating.
5.6 I/O pull-ups/pull-downs during low power mode
When PWRC_CR1.APC is set (default configuration), the pull-up/-down of the IOs is controlled by the PWRC_PUCRx and PWRC_PDCRx registers of the PWRC block, instead of GPIOx_PUPDR register of the GPIO block. This feature avoids glitches on the lines by keeping the same pull-up/-down configuration during all the supported operating modes.
5.7 PWRC registers
Note: all the PWRC APB registers are only 16-bit registers. The 16 MSB bits are always stuck to 0.
5.7.1 Control register 1 (PWRC_CR1)
This register control the BOR in Shutdown, the low power mode selection and the IO control owner.
Address offset: 0x00
Reset value: 0x0000 0114
| 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. | APC | IBIAS_RUN_STATE | IBIAS_RUN_AUTO | ENSDNBOR | LPMS |
| rw | rw | rw | rw | rw |
Bits 31:5 Reserved, must be kept at reset value.
Bit 4 APC: Apply pull-up/-down configuration from PWRC or GPIO register.
0: The GPIOx_PUPDR of the GPIO block are used to control the product pull-up/-down of the IOs.
1: The PWRC_PUCRx and PWRC_PDCRx of the PWRC block are used to control the product pull-up/-down of the IOs (default).
Bit 3 IBIAS_RUN_STATE: Enable/Disable IBIAS during Run mode when automatic mode is disabled.
– 0: IBIAS control is disabled (default).
– 1: IBIAS control is enabled.
Bit 2 IBIAS_RUN_AUTO: IBIAS_RUN_AUTO: Enable automatic IBIAS control during Run or Deepstop mode.
– 0: IBIAS control is manual (and controlled by IBIAS_RUN_STATE register)
– 1: IBIAS control is automatic (default).
Bit 1 ENSDNBOR: Enable BOR reset supervising during Shutdown mode.
0: No BOR is monitored during Shutdown mode (default).
1: BOR is monitored during Shutdown mode (a POR reset happens if VDDIO goes below 1.58V during Shutdown mode).
Note: Enabling this feature prevents blocking the device if VDDIO goes below supported voltages during Shutdown. However, it adds an overconsumption.
Bit 0 LPMS: Low Power Mode Selection.
This bit defines if the device enters Deepstop or Shutdown mode when both CPU and MR_BLE requests a low power mode entry.
0: Deepstop mode (default).
1: Shutdown mode.
Note: It is mandatory to ensure that PWRC_DBGR.DEEPSTOP2 bit is reset when LPMS bit is set before entering Shutdown mode.
5.7.2 Control register 2 (PWRC_CR2)
Address offset: 0x04
Reset value: 0x0000 0000
| 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. | GPIORET | RAMRET3 | RAMRET2 | RAMRET1 | DBGRET | PVDLS[2:0] | PVDE | ||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||||
Bits 31:9 Reserved, must be kept at reset value.
Bit 8 (1) GPIORET: GPIO retention enable.
- 0: GPIOs don't retain their configuration during and exiting Deepstop (default)
- 1: GPIOs retain their configuration during and exiting Deepstop.
Bit 7 RAMRET3: enable the RAM3 bank retention in Deepstop mode.
- 0: RAM3 bank is not retained during Deepstop mode (default).
- 1: RAM3 bank is retained during Deepstop mode.
Bit 6 RAMRET2: enable the RAM2 bank retention in Deepstop mode.
- 0: RAM2 bank is not retained during Deepstop mode (default).
- 1: RAM2 bank is retained during Deepstop mode.
Bit 5 RAMRET1: enable the RAM1 bank retention in Deepstop mode.
- 0: RAM1 bank is not retained during Deepstop mode (default).
- 1: RAM1 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.04V - Lowest level
- 001: 2.22V
- 010: 2.36V
- 011: 2.53V
- 100: 2.66V
- 101: 2.81V
- 110: 2.94V - 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's mandatory to ensure GPIORET bit is set before entering Deepstop unless the DEEPSTOP2 bit is set.
5.7.3 Control register 3 (PWRC_CR3)
This register manages the selection of the wakeup sources to get out of Deepstop mode.
Note: All wakeup sources are disabled by default after reset.
Address offset: 0x08
Reset value: 0x0000 0000
| 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 |
| EIWL | EIWL2 | EWBLEHCPU | EWBLE | 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.
Bit 15 EIWL: Enable wakeup on Internal event (RTC).
0: Wakeup on internal line is disabled (default).
1: Wakeup on internal line is enabled.
Bit 14 EIWL2: Enable wakeup on Internal event (LPUART).
0: Wakeup on internal line is disabled (default).
1: Wakeup on internal line is enabled.
Bit 13 EWBLEHCPU: Enable wakeup on Bluetooth LE Host CPU event.
0: Wakeup on Bluetooth LE Host CPU line is disabled (default).
1: Wakeup on Bluetooth LE Host CPU line is enabled.
Bit 12 EWBLE: Enable wakeup on Bluetooth LE event.
0: Wakeup on Bluetooth LE line is disabled (default).
1: Wakeup on Bluetooth LE line is enabled.
Bit 11 EWU11: Enable wakeup on PA11 I/O event.
0: Wakeup on PA11 I/O line is disabled (default).
1: Wakeup on PA11 I/O line is enabled.
Bit 10 EWU10: Enable wakeup on PA10 I/O event.
0: Wakeup on PA10 I/O line is disabled (default).
1: Wakeup on PA10 I/O line is enabled.
Bit 9 EWU9: Enable wakeup on PA9 I/O event.
0: Wakeup on PA9 I/O line is disabled (default).
1: Wakeup on PA9 I/O line is enabled.
Bit 8 EWU8: Enable wakeup on PA8 I/O event.
0: Wakeup on PA8 I/O line is disabled (default).
1: Wakeup on PA8 I/O line is enabled.
Bit 7 EWU7: Enable wakeup on PB7 I/O event.
0: Wakeup on PB7 I/O line is disabled (default).
1: Wakeup on PB7 I/O line is enabled.
- Bit 6 EWU6: Enable wakeup on PB6 I/O event.
0: Wakeup on PB6 I/O line is disabled (default).
1: Wakeup on PB6 I/O line is enabled. - Bit 5 EWU5: Enable wakeup on PB5 I/O event.
0: Wakeup on PB5 I/O line is disabled (default).
1: Wakeup on PB5 I/O line is enabled. - Bit 4 EWU4: Enable wakeup on PB4 I/O event.
0: Wakeup on PB4 I/O line is disabled (default).
1: Wakeup on PB4 I/O line is enabled. - Bit 3 EWU3: Enable wakeup on PB3 I/O event.
0: Wakeup on PB3 I/O line is disabled (default).
1: Wakeup on PB3 I/O line is enabled. - Bit 2 EWU2: Enable wakeup on PB2 I/O event.
0: Wakeup on PB2 I/O line is disabled (default).
1: Wakeup on PB2 I/O line is enabled. - Bit 1 EWU1: Enable wakeup on PB1 I/O event.
0: Wakeup on PB1 I/O line is disabled (default).
1: Wakeup on PB1 I/O line is enabled. - Bit 0 EWU0: Enable wakeup on PB0 I/O event.
0: Wakeup on PB0 I/O line is disabled (default).
1: Wakeup on PB0 I/O line is enabled.
5.7.4 Control register 4 (PWRC_CR4)
This register manages the polarity for the I/Os wakeup sources to get out of Deepstop mode.
Note: The wakeup event are only edge detection, not level detection.
Address offset: 0x0C
Reset value: 0x0000 0000
| 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 | WUP6 | WUP5 | WUP4 | WUP3 | WUP2 | WUP1 | WUP0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:12 Reserved, must be kept at reset value.
- Bit 11 WUP11: Wakeup polarity for PA11 I/O.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge. - Bit 10 WUP10: Wakeup polarity for PA10 I/O.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge. - Bit 9 WUP9: Wakeup polarity for PA9 IO event.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge. - Bit 8 WUP8: Wakeup polarity for PA8 IO event.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge. - Bit 7 WUP5: Wakeup polarity for PB5 IO event.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge. - Bit 6 WUP6: Wakeup polarity for PB6 IO event.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge. - Bit 5 WUP5: Wakeup polarity for PB5 IO event.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge. - Bit 4 WUP4: Wakeup polarity for PB4 IO event.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge. - Bit 3 WUP3: Wakeup polarity for PB3 IO event.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge.
- Bit 2 WUP2: Wakeup polarity for PB2 IO event.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge. - Bit 1 WUP1: Wakeup polarity for PB1 IO event.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge. - Bit 0 WUP0: Wakeup polarity for PB0 IO event.
0: Detection of wakeup event on rising edge (default).
1: Detection of wakeup event on falling edge.
5.7.5 Status register 1 (PWRC_SR1)
This register provides the information concerning which source woke up the device after a Deepstop.
Address offset: 0x10
Reset value: 0x0000 0000
| 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 |
| IWUF | IWUF2 | WBLEHCPUF | WBLEF | WUF11 | WUF10 | WUF9 | WUF8 | WUF7 | WUF6 | WUF5 | WUF4 | WUF3 | WUF2 | WUF1 | WUF0 |
| r | 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.
Bit 15 IWUF: Internal wakeup flag (RTC).
- 0: no wakeup from RTC occurred since last clear.
- 1: a wakeup from RTC occurred since last clear.
Note: The user must clear the RTC wakeup flag inside the RTC IP to clear this bit (mirror of the RTC wakeup line on the PWRC block).
Bit 14 IWUF2: Internal wakeup 2 flag (LPUART).
- 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.
Note: The user must clear before LPUART wakeup flag inside the LPUART IP to clear this bit.
Bit 13 WBLEHCPUF: Bluetooth LE Host CPU wakeup flag.
- 0: no wakeup from Bluetooth LE Host CPU occurred since last clear.
- 1: a wakeup from Bluetooth LE Host CPU occurred since last clear.
Cleared by writing 1 in this bit.
Bit 12 WBLEF: Bluetooth LE wakeup flag.
- 0: no wakeup from Bluetooth LE occurred since last clear.
- 1: a wakeup from Bluetooth LE occurred since last clear.
Cleared by writing 1 in this bit.
Bit 11 WUF11: PA11 I/O wakeup flag.
- 0: no wakeup from PA11 I/O occurred since last clear.
- 1: a wakeup from PA11 I/O occurred since last clear.
Cleared by writing 1 in this bit.
Bit 10 WUF10: PA10 I/O wakeup flag.
- 0: no wakeup from PA10 I/O occurred since last clear.
- 1: a wakeup from PA10 I/O occurred since last clear.
Cleared by writing 1 in this bit.
Bit 9 WUF9: PA9 I/O wakeup flag.
- 0: no wakeup from PA9 I/O occurred since last clear.
- 1: a wakeup from PA9 I/O occurred since last clear.
Cleared by writing 1 in this bit.
- Bit 8 WUF8: PA8 I/O wakeup flag.
0: no wakeup from PA8 I/O occurred since last clear.
1: a wakeup from PA8 I/O occurred since last clear.
Cleared by writing 1 in this bit. - Bit 7 WUF7: PB7 I/O wakeup flag.
0: no wakeup from PB7 I/O occurred since last clear.
1: a wakeup from PB7 I/O occurred since last clear.
Cleared by writing 1 in this bit. - Bit 6 WUF6: PB6 I/O wakeup flag.
0: no wakeup from PB6 I/O occurred since last clear.
1: a wakeup from PB6 I/O occurred since last clear.
Cleared by writing 1 in this bit. - Bit 5 WUF5: PB5 I/O wakeup flag.
0: no wakeup from PB5 I/O occurred since last clear.
1: a wakeup from PB5 I/O occurred since last clear.
Cleared by writing 1 in this bit. - Bit 4 WUF4: PB4 I/O wakeup flag.
0: no wakeup from PB4 I/O occurred since last clear.
1: a wakeup from PB4 I/O occurred since last clear.
Cleared by writing 1 in this bit. - Bit 3 WUF3: PB3 I/O wakeup flag.
0: no wakeup from PB3 I/O occurred since last clear.
1: a wakeup from PB3 I/O occurred since last clear.
Cleared by writing 1 in this bit. - Bit 2 WUF2: PB2 I/O wakeup flag.
0: no wakeup from PB2 I/O occurred since last clear.
1: a wakeup from PB2 I/O occurred since last clear.
Cleared by writing 1 in this bit. - Bit 1 WUF1: PB1 I/O wakeup flag.
0: no wakeup from PB1 I/O occurred since last clear.
1: a wakeup from PB1 I/O occurred since last clear.
Cleared by writing 1 in this bit. - Bit 0 WUF0: PB0 I/O wakeup flag.
0: no wakeup from PB0 I/O occurred since last clear.
1: a wakeup from PB0 I/O occurred since last clear.
Cleared by writing 1 in this bit.
5.7.6 Status register 2 (PWRC_SR2)
This register provides some status flags related to the Power Voltage Detector and the SMPS blocks.
Address offset: 0x14
Reset value: 0x0000 -3-6
| 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. | Res. | REGLPS | IOBOOTVAL2[3:0] | Res. | SMPSRDY | SMPSEN | SMPSBYPR | ||||||
| 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 but the boot loader to manage boot on serial interfaces for instance.
Bit 11 PVDO: Power voltage Detector Output.
When the Power voltage Detector is enabled (PWRC_CR2.PVDE=1), this bit indicates when the VDDIO is lower than the selected threshold (through PWRC_CR2.PVDLS bit field).
- 0: The VDDIO is not lower than threshold or PVD feature is not enabled.
- 1: The VDDIO is lower than the selected threshold.
Bits 10:9 Reserved, must be kept at reset value.
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 but the boot loader to manage boot on serial interfaces for instance.
Bit 3 Reserved, must be kept at reset value.
Bit 2 SMPSRDY: SMPS ready status.
0: SMPS regulator is not ready.
1: SMPS regulator is ready.
Bit 1 SMPSENR: SMPS Run mode status.
This bit mirrors the internal ENABLE_3V3 control signal connected to the SMPS and driven by the hardware.
0: SMPS regulator is not regulating (in PRECHARGE or NOSMPS mode).
1: SMPS regulator is in Run mode.
Bit 0 SMPSBYPR: SMPS PRECHARGE mode status.
This bit mirrors the PRECHARGE control state of the SMPS.
0: SMPS regulator is not in PRECHARGE mode.
1: SMPS regulator is in PRECHARGE mode (VSMPS connected to VDDIO)
5.7.7 Control register 5 (PWRC_CR5)
This register is used to configure the SMPS.
Address offset: 0x1C
Reset value: 0x0000 6014
| 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. | SMPS_PRECH_CUR_SEL[1:0] | CLKDETR_DISABLE | SMPS_ENA_DCM | NOSMPS | SMPSFBYP | SMPSLPOPEN | Res. | Res. | SMPSBOMSEL[1:0] | SMPSLVL[3:0] | |||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||
Bits 31:15 Reserved, must be kept at reset value.
Bits 14:13 SMPS_PRECH_CUR_SEL[1:0]: Select SMPS PRECHARGE limit current.
00: 2.5 mA
01: 5 mA
10: 10 mA
11: 20 mA (default)
Bit 12 CLKDETR_DISABLE: disable the SMPS clock detection
The SMPS clock detection enables an automatic SMPS bypass switching in case of unexpected loss of the SMPS clock.
0: SMPS clock detection mechanism enabled (default).
1: SMPS clock detection mechanism disabled.
Bit 11 SMPS_ENA_DCM: Discontinuous conduction mode enable.
0: SMPS DCM is disabled (default).
1: SMPS DCM is enabled.
Bit 10 NOSMPS: No SMPS mode.
0: SMPS is enabled (default).
1: SMPS is disabled.
Note: this configuration (SMPS disabled) should be used only when the SMPS_FB pad is directly connected to the VBATT (external voltage), without L/C BOM.
Bit 9 SMPSFBYP: Force the SMPS in PRECHARGE mode.
0: no effect (default).
1: SMPS is disabled and bypassed.
Note: when this bit is set, the VSMPS output is connected to the VDDIO. The actual state of the SMPS is visible in the SMPS mode status bits in PWRC_SR2 register.
Bit 8 SMPSLPOPEN: Select OPEN mode instead of PRECHARGE mode for the SMPS during Deepstop.
0: in Deepstop, the SMPS is in PRECHARGE mode with output connected to VDDIO (default).
1: in Deepstop, the SMPS is disabled with floating output.
Bits 7:6 Reserved, must be kept at reset value.
Bits 5:4 SMPSBOMSEL[1:0]: Select the SMPS BOM.
- 00: BOM1
- 01: BOM2 (default)
- 10: BOM3
- 11: Not applicable
Note: BOM correspondence/details is available in Table 11: SMPS BOM information.
Bits 3:0 SMPSLVL[3:0]: Select the SMPS output voltage level.
This bit field selects the SMPS voltage output level with a granularity of ~50mV.
The SMPS output voltage level, \(V_{SMPS}\), must be configured such that \(V_{BAT} - V_{SMPS} \geq 0.2V\)
- 0000: 1.2 V
- 0001: 1.25 V
- 0010: 1.3 V
- 0011: 1.35 V
- 0100: 1.4 V
- 0101: 1.45 V
- 0110: 1.5 V
- 0111: 1.55 V
- 1000: 1.6 V
- 1001: 1.65 V
- 1010: 1.7 V
- 1011: 1.75 V
- 1100: 1.8 V
- 1101: 1.85 V
- 1110: 1.9 V
- 1111: 1.9 V
Warning: The SMPS output voltage must not be changed of more than one step while the SMPS is in use. The sequence to reprogram a new SMPS output voltage is described in Section 5.8.2: SMPS output level re-programming.
5.7.8 I/O Port A pull-up control register (PWRC_PUCRA)
This register is used to control the pull-up for the PA0 to PA15 I/O when the PWRC_CR1.APC bit is set.
Caution: If both pull-up and pull-down are enabled in the PWRC_PUCRA and PWRC_PDCRA registers for an I/O, then pull-down is applied.
The user must take care to disable the pull on I/O programmed in Analog mode.
Address offset: 0x20
Reset value: 0x0000 0F07
| 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 | Res. | Res. | Res. | Res. | PUA3 | PUA2 | PUA1 | PUA0 |
| rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:12 Reserved, must be kept at reset value.
Bit 11 PUA11: Pull-up enable for PA11 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 10 PUA10: Pull-up enable for PA10 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 9 PUA9: Pull-up enable for PA9 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 8 PUA8: Pull-up enable for PA8 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bits 7:4 Reserved, must be kept at reset value.
Bit 3 PUA3: Pull-up enable for PA3 I/O.
0: No pull-up (default).
1: Pull-up enabled.
Bit 2 PUA2: Pull-up enable for PA2 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 1 PUA1: Pull-up enable for PA1 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 0 PUA0: Pull-up enable for PA0 I/O.
0: No pull-up.
1: Pull-up enabled (default).
5.7.9 I/O Port A pull-down control register (PWRC_PDCRA)
This register is used to control the pull-down for the PA0 to PA15 I/O when the PWRC_CR1.APC bit is set.
Caution: If both pull-up and pull-down are enabled in the PWRC_PUCRA and PWRC_PDCRA registers for an I/O, then pull-down is applied.
The user must take care to disable the pull on I/O programmed in Analog mode.
Address offset: 0x24
Reset value: 0x0000 0008
| 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 | Res. | Res. | Res. | Res. | PDA3 | PDA2 | PDA1 | PDA0 |
| rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:12 Reserved, must be kept at reset value.
Bit 11 PDA11: pull-down enable for PA11 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 10 PDA10: pull-down enable for PA10 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 9 PDA9: pull-down enable for PA9 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 8 PDA8: pull-down enable for PA8 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bits 7:4 Reserved, must be kept at reset value.
Bit 3 PDA3: pull-down enable for PA3 I/O.
0: No pull-down.
1: pull-down enabled (default).
Bit 2 PDA2: pull-down enable for PA2 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 1 PDA1: pull-down enable for PA1 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 0 PDA0: pull-down enable for PA0 I/O.
0: No pull-down (default).
1: pull-down enabled.
5.7.10 I/O Port B pull-up control register (PWRC_PUCRB)
This register is used to control the pull-up for the PB0 to PB15 I/O when the PWRC_CR1.APC bit is set.
Caution: If both pull-up and pull-down are enabled in the PWRC_PUCRA and PWRC_PDCRA registers for an I/O, then pull-down is applied.
The user must take care to disable the pull on I/O programmed in Analog mode.
Address offset: 0x28
Reset value: 0x0000 F0FF
| 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 | PUB5 | PUB4 | PUB3 | PUB2 | PUB1 | PUB0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bit 15 PUB15: Pull-up enable for PB15 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 14 PUB14: Pull-up enable for PB14 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 13 PUB13: Pull-up enable for PB13 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 12 PUB12: Pull-up enable for PB12 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bits 11:8 Reserved, must be kept at reset value.
Bit 7 PUB7: Pull-up enable for PB7 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 6 PUB6: Pull-up enable for PB6 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 5 PUB5: Pull-up enable for PB5 I/O.
0: No pull-up.
1: Pull-up enabled (default).
Bit 4 PUB4: Pull-up enable for PB4 I/O.
0: No pull-up.
1: Pull-up enabled (default).
- Bit 3 PUB3: Pull-up enable for PB3 I/O.
0: No pull-up.
1: Pull-up enabled (default). - Bit 2 PUB2: Pull-up enable for PB2 I/O.
0: No pull-up.
1: Pull-up enabled (default). - Bit 1 PUB1: Pull-up enable for PB1 I/O.
0: No pull-up.
1: Pull-up enabled (default). - Bit 0 PUB0: Pull-up enable for PB0 I/O.
0: No pull-up.
1: Pull-up enabled (default).
5.7.11 I/O Port B pull-down control register (PWRC_PDCRB)
This register is used to control the pull-down for the PB0 to PB15 I/O when the PWRC_CR1.APC bit is set.
Caution: If both pull-up and pull-down are enabled in the PWRC_PUCRA and PWRC_PDCRA registers for an I/O, then pull-down is applied.
The user must take care to disable the pull on I/O programmed in Analog mode.
Address offset: 0x2C
Reset value: 0x0000 0000
| 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 | PDB5 | PDB4 | PDB3 | PDB2 | PDB1 | PDB0 |
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bit 15 PDB15: pull-down enable for PB15 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 14 PDB14: pull-down enable for PB14 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 13 PDB13: pull-down enable for PB13 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 12 PDB12: pull-down enable for PB12 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bits 11:8 Reserved, must be kept at reset value.
Bit 7 PDB7: pull-down enable for PB7 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 6 PDB6: pull-down enable for PB6 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 5 PDB5: pull-down enable for PB5 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 4 PDB4: pull-down enable for PB4 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 3 PDB3: pull-down enable for PB3 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 2 PDB2: pull-down enable for PB2 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 1 PDB1: pull-down enable for PB1 I/O.
0: No pull-down (default).
1: pull-down enabled.
Bit 0 PDB0: pull-down enable for PB0 I/O.
0: No pull-down (default).
1: pull-down enabled.
5.7.12 Control register 6 (PWRC_CR6)
This register manages the selection of the wakeup sources to get out of Deepstop mode.
Note: All wakeup sources are disabled by default after reset.
Address offset: 0x30
Reset value: 0x0000 0000
| 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. | EWU19 | EWU18 | EWU17 | EWU16 | EWU15 | EWU14 | EWU13 | EWU12 |
| rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:8 Reserved, must be kept at reset value.
Bit 7 EWU19: Enable wakeup on PB15 I/O event.
0: Wakeup on PB15 I/O line is disabled (default).
1: Wakeup on PB15 I/O line is enabled.
Bit 6 EWU18: Enable wakeup on PB14 I/O event.
0: Wakeup on PB14 I/O line is disabled (default).
1: Wakeup on PB14 I/O line is enabled.
Bit 5 EWU17: Enable wakeup on PB13 I/O event.
0: Wakeup on PB13 I/O line is disabled (default).
1: Wakeup on PB13 I/O line is enabled.
Bit 4 EWU16: Enable wakeup on PB12 I/O event.
0: Wakeup on PB12 I/O line is disabled (default).
1: Wakeup on PB12 I/O line is enabled.
Bit 3 EWU15: Enable wakeup on PA3 I/O event.
0: Wakeup on PA3 I/O line is disabled (default).
1: Wakeup on PA3 I/O line is enabled.
Bit 2 EWU14: Enable wakeup on PA2 I/O event.
0: Wakeup on PA2 I/O line is disabled (default).
1: Wakeup on PA2 I/O line is enabled.
Bit 1 EWU13: Enable wakeup on PA1 I/O event.
0: Wakeup on PA1 I/O line is disabled (default).
1: Wakeup on PA1 I/O line is enabled.
Bit 0 EWU12: Enable wakeup on PA0 I/O event.
0: Wakeup on PA0 I/O line is disabled (default).
1: Wakeup on PA0 I/O line is enabled.
5.7.13 Control register 7 (PWRC_CR7)
This register manages the polarity for the I/Os wakeup sources to get out of Deepstop mode.
Note: The wakeup event are only edge detection, not level detection.
Address offset: 0x34
Reset value: 0x0000 0000
| 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. | WUP19 | WUP18 | WUP17 | WUP16 | WUP15 | WUP14 | WUP13 | WUP12 |
| rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:6 Reserved, must be kept at reset value.
Bit 7 WUP19: Wakeup polarity for PB15 IO event.
- 0: Detection of wakeup event on rising edge (default).
- 1: Detection of wakeup event on falling edge.
Bit 6 WUP18: Wakeup polarity for PB14 IO event.
- 0: Detection of wakeup event on rising edge (default).
- 1: Detection of wakeup event on falling edge.
Bit 5 WUP17: Wakeup polarity for PB13 IO event.
- 0: Detection of wakeup event on rising edge (default).
- 1: Detection of wakeup event on falling edge.
Bit 4 WUP16: Wakeup polarity for PB12 IO event.
- 0: Detection of wakeup event on rising edge (default).
- 1: Detection of wakeup event on falling edge.
Bit 3 WUP15: Wakeup polarity for PA3 IO event.
- 0: Detection of wakeup event on rising edge (default).
- 1: Detection of wakeup event on falling edge.
Bit 2 WUP14: Wakeup polarity for PA2 IO event.
- 0: Detection of wakeup event on rising edge (default).
- 1: Detection of wakeup event on falling edge.
Bit 1 WUP13: Wakeup polarity for PA1 IO event.
- 0: Detection of wakeup event on rising edge (default).
- 1: Detection of wakeup event on falling edge.
Bit 0 WUP12: Wakeup polarity for PA0 IO event.
- 0: Detection of wakeup event on rising edge (default).
- 1: Detection of wakeup event on falling edge.
5.7.14 Status register 3 (PWRC_SR3)
This register provides the information concerning which source woke up the device after a Deepstop.
Address offset: 0x38
Reset value: 0x0000 0000
| 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. | WUF19 | WUF18 | WUF17 | WUF16 | WUF15 | WUF14 | WUF13 | WUF12 |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 |
Bits 31:6 Reserved, must be kept at reset value.
Bit 7 WUF19: PB15 I/O wakeup flag.
0: no wakeup from PB15 I/O occurred since last clear.
1: a wakeup from PB15 I/O occurred since last clear.
Cleared by writing 1 in this bit.
Bit 6 WUF18: PB14 I/O wakeup flag.
0: no wakeup from PB14 I/O occurred since last clear.
1: a wakeup from PB14 I/O occurred since last clear.
Cleared by writing 1 in this bit.
Bit 5 WUF17: PB13 I/O wakeup flag.
0: no wakeup from PB13 I/O occurred since last clear.
1: a wakeup from PB13 I/O occurred since last clear.
Cleared by writing 1 in this bit.
Bit 4 WUF16: PB12 I/O wakeup flag.
0: no wakeup from PB12 I/O occurred since last clear.
1: a wakeup from PB12 I/O occurred since last clear.
Cleared by writing 1 in this bit.
Bit 3 WUF15: PA3 I/O wakeup flag.
0: no wakeup from PA3 I/O occurred since last clear.
1: a wakeup from PA3 I/O occurred since last clear.
Cleared by writing 1 in this bit.
- Bit 2 WUF14: PA2 I/O wakeup flag.
0: no wakeup from PA2 I/O occurred since last clear.
1: a wakeup from PA2 I/O occurred since last clear.
Cleared by writing 1 in this bit. - Bit 1 WUF13: PA1 I/O wakeup flag.
0: no wakeup from PA1 I/O occurred since last clear.
1: a wakeup from PA1 I/O occurred since last clear.
Cleared by writing 1 in this bit. - Bit 0 WUF12: PA0 I/O wakeup flag.
0: no wakeup from PA0 I/O occurred since last clear.
1: a wakeup from PA0 I/O occurred since last clear.
Cleared by writing 1 in this bit.
5.7.15 Shutdown I/O Wakeup Enable register (PWRC_SDWN_WUEN)
Address offset: 0x3C
Reset value: 0x0000 0000
| 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 I/O wakeup from shutdown enable.
0: PB0 pin wakeup from shutdown disable.
1: PB0 pin wakeup from shutdown enable.
5.7.16 Shutdown I/O Wakeup Polarity register (PWRC_SDWN_WUPOL)
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 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WUPO L |
| rw |
Bits 31:16 Reserved, must be kept at reset value.
Bit 0 WUPOL: PB0 I/O wakeup from shutdown polarity.
0: PB0 pin wakeup from shutdown on high pulse or high level detection.
1: PB0 pin wakeup from shutdown on low pulse or low level detection.
5.7.17 Shutdown I/O Wakeup Flag register (PWRC_SDWN_WUF)
This register is reset on PORESETn.
Address offset: 0x44
Reset value: 0x0000 0000
| 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:16 Reserved, must be kept at reset value.
Bit 0 WUF: PB0 I/O wakeup from shutdown flag.
0: shutdown wakeup from PB0 pin not occurred.
1: shutdown wakeup from PB0 pin occurred.
5.7.18 Debug register (PWRC_DBGR)
This register is used for debug features.
Address offset: 0x84
Reset value: 0x0000 0000
| 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 |
| DIS_PRECH[2:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DEEPSTOP2 | ||
| rw | rw | rw | rw | ||||||||||||
- Bits 31:16 Reserved, must be kept at reset value.
- Bits 15:13 DIS_PRECH[2:0]: disable SMPS PRECHARGE during Deepstop (debug only).
- 111: PRECHARGE and SMPS monitoring disabled
- 101: PRECHARGE enabled only at Deepstop exit (PWRC_CR5.SMPSLPOPEN must be set).
- Other values: Deepstop PRECHARGE enabled
- Bits 12: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.7.19 Extended status and reset register (PWRC_EXTSRR)
This register provides flags about Bluetooth activity start and Deepstop sequence occurrence or not.
Address offset: 0x88
Reset value: 0x0000 0000
| 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 Bluetooth LE IP does not require any attention.
1: the Bluetooth LE IP is awake and may require a system attention.
This bit is set by hardware when a radio wakeup event occurs.
This bit is reset by hardware when the Bluetooth LE IP raises the “ready to sleep” information.
The software can reset this bit by writing 1 in it.
Bit 9 DEEPSTOPF: System DEEPTSTOP Flag.
0: the device did not enter Deepstop mode.
1: the device entered a Deepstop mode.
This bit is set by hardware when a Deepstop sequence occurred.
The software can reset this bit by writing 1 in it.
Bits 8:0 Reserved, must be kept at reset value.
5.7.20 Trimming values register (PWRC_TRIMR)
This register provides the trimming values applied by hardware.
Address offset: 0x90
Reset value: 0x---- ---- (0x0000 0307 when device is not trimmed)
Note: A Hardware default value is defined after reset. It is overwritten by the information stored in flash memory on trimmed devices, and kept as-is for devices without trimming information.
| 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[2:0] | TRIM_MR[3:0] | RFD_REG_TRIM[3:0] | ||||||||
| r | r | r | r | r | r | r | r | r | r | r | |||||
Bits 31:12 Reserved, must be kept at reset value.
Bit 11 Reserved, must be kept at reset value.
Bits 10:8 SMPS_TRIM[2:0]: SMPS output voltage trimming.
Note: the default value is the centered value (“011”).
Bits 7:4 TRIM_MR[3:0]: Main regulator voltage trimming.
Default value when no trimming is “0000”.
Bits 3:0 RFD_REG_TRIM[3:0]: RF LDO trimming.
Default value when no trimming is “0111”.
5.7.21 Software trimming values register (PWRC_ENGTRIM)
This register allows the software to overwrite the hardware trimming values.
Address offset: 0x94
Reset value: 0x0000 0000
| 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 | RFD_REG_TRIM[3:0] | TRIMRFDREGEN | ||||||||
| rw | 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 overwrite enable.
0: Hardware trimming value from TRIMR.SMPS_TRIM bit field is applied.
1: Trimming value from ENGTRIM.SMPS_TRIM bit field is applied
Bits 9:6 TRIM_MR[3:0]: Main regulator voltage trimming chosen by the software.
Bit 5 TRIMMREN: TRIM_MR software overwrite enable.
0: Hardware trimming value from TRIMR.TRIM_MR bit field is applied.
1: Software trimming value from ENGTRIM.TRIM_MR bit field is applied
Bits 4:1 RFD_REG_TRIM[3:0]: RF LDO trimming chosen by the software.
Bit 0 TRIMRFDREGEN: RFD_REG_TRIM software overwrite enable.
0: Hardware trimming value from TRIMR.RFD_REG_TRIM bit field is applied.
1: Software trimming value from ENGTRIM.RFD_REG_TRIM bit field is applied
5.7.22 PWRC register map
Refer to Table 3: Memory map and peripheral register boundary addresses for the PWRC base address location in the STM32WB09xE.
Note: All the PWRC registers are retained during Deepstop mode.
The shaded cells indicate the bit fields located in the VDD33 power domain. This implies the associated feature is applied even during Shutdown state (but are lost at Shutdown mode exit as a PORESETn is generated).
Table 12. PWRC register map and reset values
| 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 | PWRC_CR1 | 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. | APC | IBIAS_RUN_STATE | IBIAS_RUN_AUTO | ENSDNBOR | LPMS |
| 1 | 0 | 1 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x04 | PWRC_CR2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | GPIORET | RAMRET3 | RAMRET2 | RAMRET1 | DBGRET | Res. | PVDLS | Res. | PVDE |
| - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | 0 | 0 | - | 0 | - | 0 | ||
| 0x08 | PWRC_CR3 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | EIWL | EIWL2 | EWBLEHCPU | EWBLE | EWU11 | EWU10 | EWU9 | EWU8 | EWU7 | EWU6 | EWU5 | EWU4 | EWU3 | EWU2 | EWU1 | EWU0 |
| - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| 0x0C | PWRC_CR4 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WUP11 | WUP10 | WUP9 | WUP8 | WUP7 | WUP6 | WUP5 | WUP4 | WUP3 | WUP2 | WUP1 | WUP0 |
| - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| 0x10 | PWRC_SR1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IWUF | IWUF2 | WBLEHCPUF | WBLEF | WUF11 | WUF10 | WUF9 | WUF8 | WUF7 | WUF6 | WUF5 | WUF4 | WUF3 | WUF2 | WUF1 | WUF0 |
| - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| 0x14 | PWRC_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. | SMPSRDY | SMPSENR | SMPSBYPR | ||||||
| - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | - | 1 | 1 | - | - | 1 | 1 | 0 | ||||||||
| 0x18 | Reserved | ||||||||||||||||||||||||||||||||

Table 12. PWRC 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 | PWRC_CR5 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SMPS_PRECH_CUR_SEL[1:0] | CLKDETR_DISABLE | SMPS_ENA_DCM | NOSMPS | SMPSFBYP | SMPSLPOEN | Res. | Res. | SMPSBOMSEL[1:0] | SMPSLV[3:0] | |||||||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 1 | 0 | 0 | 0 | 0 | 0 | - | 0 | 1 | 0 | 1 | 0 | 0 | |||||
| 0x20 | PWRC_PUCRA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PUA11 | PUA10 | PUA9 | PUA8 | Res. | Res. | Res. | ||||||||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 1 | 1 | 1 | 1 | 1 | 1 | - | - | - | - | - | - | 1 | |||||
| 0x24 | PWRC_PDCRA | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PDA11 | PDA10 | PDA9 | PDA8 | Res. | Res. | Res. | ||||||||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | 0 | 0 | 0 | - | - | - | - | - | - | 0 | |||||
| 0x28 | PWRC_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. | ||||||||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 1 | 1 | 1 | 1 | - | - | - | - | - | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||
| 0x2C | PWRC_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. | ||||||||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | 0 | - | - | - | - | - | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||
| 0x30 | PWRC_CR6 | 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. | EWU19 | EWU18 | EWU17 | EWU16 | EWU15 | EWU14 | EWU13 | EWU12 | |
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| 0x34 | PWRC_CR7 | 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. | WUP19 | WUP18 | WUP17 | WUP16 | WUP15 | WUP14 | WUP13 | WUP12 | |
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| 0x38 | PWRC_SR3 | 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. | WUF19 | WUF18 | WUF17 | WUF16 | WUF15 | WUF14 | WUF13 | WUF12 | |
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| 0x3C | PWRC_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. | WUEN | |||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | ||||
| 0x40 | PWRC_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. | WUPOL | |||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | ||||
| 0x44 | PWRC_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. | WUF | |||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | ||||
| 0x48 - 0x80 | Reserved | ||||||||||||||||||||||||||||||||||
| 0x84 | PWRC_DBGR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DIS_PRE[2:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DEEPSTOP2 | |||||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | - | - | - | - | - | - | - | - | - | - | - | - | 0 | |||
Table 12. PWRC 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x88 | PWRC_EXTSRR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RFPHASEF | DEEPSTOPF | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | - | - | - | - | - | - | - | - | - | |
| 0x90 | PWRC_TRIMR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SMPS_TRIM[3:0] | TRIM_MR[3:0] | RFD_REG_TRIM[3:0] | ||||||||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | |
| 0x94 | PWRC_ENGTRIM | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SMPS_TRIM[3:0] | SMPSTRIMEN | TRIM_MR[3:0] | TRIMMREN | RFD_REG_TRIM[3:0] | TRIMRFDGEN | ||||||||
| Reset value | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 0 | 0 | 0 | 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 13 provides an overview of the flags that can help the embedded software to get the root cause of the CPU restart.
Table 13. Flags versus CPU reboot reason
| CPU reboot reason | RCC_CSR | PWRC_ISCR (in SYSCFG) | PWRC_EXT SRR | ||||
|---|---|---|---|---|---|---|---|
| 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 PWRC_SR1 register as shown in Table 14.
Table 14. Wakeup reason flags
| Wakeup reason | IWUF2 | PWRC_SR1 | |||
|---|---|---|---|---|---|
| IWUF | WBLEHC PUF | WBLEF | WUFx | ||
| Wakeup on Bluetooth LE event | - | - | - | 1 | - |
| Wakeup on Host timer in MR_BLE 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 PWRC_SR1. The wakeup flags are set as soon as a wakeup event (enabled in PWRC_CR3 register) occurs, the associated flag is set in the PWRC_SR1 register even if the device is in active mode or in the sleep exit sequence (initiated by another wakeup source).
Caution: Those flags have to be cleared by software knowing a Deepstop entry sequence cannot happen if a wakeup flag is already active when the system request a Deepstop mode.
5.8.2 SMPS output level re-programming
The SMPS output voltage cannot be modified on-the-fly why the SMPS is in use of more than one step. When the software needs to re-program the SMPS output voltage to another value, the following sequence must be respected:
- • Set PWRC_CR5.SMPSBYP = 1
- • Wait for PWRC_SR2.SMPSRDY = 0
- • Program the new targeted value in PWRC_CR5.SMPSLVL[3:0]
- • Clear PWRC_CR5.SMPSBYP = 0
- • Wait for PWRC_SR2.SMPSRDY = 1
Caution: This sequence must be launched only when no radio activity / RF transfer is ongoing.