An5568 Ultralowpower Features of Stm32wl Series Microcontrollers Stmicroelectronics
An5568 Ultralowpower Features of Stm32wl Series Microcontrollers Stmicroelectronics
Application note
Introduction
The STM32WL Series microcontrollers are long-range wireless and ultra-low-power devices (named STM32WL devices in this
document) and embed a powerful and ultra-low-power LPWAN-compliant radio solution. These devices are designed to be
extremely low-power and are based on the high-performance Arm® Cortex®‑M4 32-bit RISC core that operates at a frequency
of up to 48 MHz. It is complemented by an Arm® Cortex®‑M0+.
The STM32WL devices feature a flexible management of the power modes, allowing the overall application consumption to be
reduced.
A large number of smart and high-performance peripherals, a large set of advanced and low-power analog features, and several
peripherals tuned for low-power modes are embedded. By using the batch acquisition mode (BAM), these peripherals optimize
the power consumption when data is transferred using the communication peripherals, while the rest of the device is kept in
low-power mode.
The STM32WL devices enable an easy migration from a dual-chip solution (such as STM32L4 Series MCU
+ LoRa® / sub‑GHz module), to a single chip, with a better power budget.
An embedded SMPS improves the power consumption in the applications, as well as the overall consumption for the
sub‑GHz radio communications.
Thanks to the built-in internal voltage regulator and voltage scaling, the device consumption in active modes is kept at
a minimum, whatever the external supply voltage. This makes the STM32WL devices particularly suited for hand-held
battery‑powered products, down to 1.8 V. In addition, multi-voltage domains supply the devices at low voltage (further reducing
consumption), while the analog-to-digital converters operate with a higher supply and reference voltage, up to 3.6 V.
The STM32WL devices support a battery Backup domain to keep the RTC running, and a set of 20 registers (32-bit wide), that
can be retained in case of power loss. This optional backup battery can be charged when the main supply is present.
The various supported low-power modes allow the user to achieve the best compromise between low-power consumption,
shorter start-up time, available set of peripherals and maximum number of wakeup sources.
1 Energy-efficient processing
The high-processing performance in Run mode (in DMIPS/MHz) is achieved thanks to the Arm® Cortex®‑M4 core
and its associated memory interfaces used in the STM32WL devices.
Note: Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
The embedded ART Accelerator ensures full operating performance up to 48 MHz, by masking the Flash memory
access wait‑state. 1.25 DMIPS/MHz can be achieved, whatever the system clock frequency.
The "undervolting" method (adapt dynamically the internal supply voltage to the operating frequency) is used
to reach a high-energy efficiency (in mA/DMIPS). STM32WL devices offer the following dynamically selectable
voltage and frequency ranges:
• Range 1 for a system frequency up to 48 MHz
• Range 2 for a system frequency up to 16 MHz, with improved efficiency by 20% at 16 MHz versus Range 1
Thanks to the dedicated LPRun (low-power run) mode, the core can operate at 2 MHz and lower, with improved
efficiency by 60% at 2 MHz versus Range 2, mainly due to the sub-GHz radio going into Deep-Sleep in LPRun
mode.
Figure 1 shows the typical current consumption of the STM32WL devices, from LDO and SMPS, versus system
frequency and power modes (reminder: CPU1 = Cortex-M4 and CPU2 = Cortex-M0+, only available on the
STM32WL5x devices).
Frequency (MHz)
Energy-efficient processing
AN5568
page 3/24
AN5568
Energy-efficient processing
The figure below shows the power distribution from the internal LDO regulators in the different Run modes.
VSW VBAT
VDD
en VDDSMPS
POR
LDO/SMPS VLXSMPS
Firmware mode
mode
VFBSMPS
VDDRF1V5
Low-power Main
regulator regulator
RFLDO
VLP VMAIN
VBKP VRF
VDDO VDDI
The STM32WL devices allow the Cortex-M4 (CPU1) to execute code either from the Flash memory, or from
SRAM1 or SRAM2.
The lowest power consumption is achieved by running from an internal SRAM. When running from the internal
Flash memory, the ART Accelerator reduces the number of memory accesses, thus reducing the overall current
consumption.
The location of the executable code and data within the memory system, impacts not only the current
consumption, but also the overall computation performance. As an example, the table below details the overall
performances measured on a STM32WL55 device, with the system clock running at 48 MHz, executing a
complex algorithm (such as CoreMark® from EEMBC® organization).
The ART Accelerator allows the Cortex-M4 core to run almost at the maximum efficiency. The table below shows
that the SMPS improves the efficiency by ~34% (CoreMark per mA).
The figure below shows the STM32WL Flash memory latency (number of wait states to be programmed in
the Flash memory access control register), versus the regulator voltage scaling range and the system clock
frequency.
fSYSCLK (MHz)
48
48 MHz
2WS
36
36 MHz
1WS
18
16 18 MHz
16 MHz 2WS Range 1
12
12 MHz 1WS Range 2
6
2 6 MHz LPRun
2 MHz 0WS 0WS 0WS
2 Power modes
The application power consumption is reduced thanks to the power management flexibility, smart peripherals and
the architecture.
The STM32WL devices feature an independent power management state between the sub-GHz radio and the
CPUs. A dedicated hardware mechanism selects the lowest possible power consumption.
LPSleep mode
Shutdown mode
Sleep mode LPRun mode
(RF cannot be used)
Idd (μA/MHz)
Frequency (MHz)
Low-power modes
AN5568
page 8/24
AN5568
Low-power modes
SetSleep()
Sleep
Calibration
Calibration done
NSS or RF-RTC (warm)
Standby RxTimeout,
TxTimeout,
TxDone RxDone,
SetStandby()SetStandby()
SetFs()
SetTx() SetRx()
SetFs() SetFs()
FS
SetTx() SetRx()
SetRx()
SetTx()
TX RX
SetTx() SetRx()
Active
Optimize the sub-GHz radio consumption is important, as the Rx consumption is 4 to 120 times greater than a
typical CPU Run mode.
Some optimization factors are listed below:
• RF matching network (see the AN5457, RF matching network design guide for STM32WL Series)
• rate of the RF operations (application dependent)
The tables below detail the expected gain in function of the transmit (Tx) interval time.
Backup circuitry
(LSE, RTC and
backup registers)
Power switch
VDD VCORE
n x VDD
LPR
VDDIO1
OUT
Kernel logic
Level shifter
IO (CPU, digital
GPIOs
n x 100 nF + 1 x 4.7 µF logic
IN and memories
n x VSS
VDDA
VDDA
VREF
VREF+ ADCs
10 nF + 1 µF COMPs
100 nF 1 µF VREFBUF
VREF- MR
VSSA
VDDRF
VDD
VDDSMPS
SMPS
LDO/SMPS
VLXSMPS
4.7 µF Sub-GHz radio
15 µH
VFBSMPS
VDDRF1V5
470 nF RFLDO
VSSSMPS
SMPS
The STM32WL devices feature a switched-mode power supply (SMPS) to improve the power performance at high
voltage. This SMPS supplies all the logic and RF power stages.
The SMPS can be used when the sub-GHz radio is active or in Sleep mode. The SMPS can be switched on/off
on the fly, for examples if an analog task (such as an ADC acquisition) requires a very clean and stable supply.
The drive capability of the SMPS step-down converter can be controlled via a sub-GHz radio register. In reception
or transmit high power, it is recommended to set 40 mA. In transmit low power, it is recommended to set 100 mA
when 14/15 dBm, and 60 mA when below 14 dBm .
Note: The recommended SMPS coil is 15 μH. With a lower value, the application may suffer from disturbances
introducing spurs on the RF output due to current and voltage variations.
• RTC
This peripheral provides a clock/calendar with two alarms and includes a periodic wakeup unit plus several
application specific functions (such as time-stamp and tamper detection). The RTC can remain enabled in
the Shutdown mode, when most of the device is powered down. The RTC wakes up the full device circuitry
in case of an event (such as an alarm or tamper detection). This peripheral also contains up to 80-byte
backup registers to store contextual information when exiting from Standby mode, or to store sensitive
information (protected by tamper detection mechanism and readout memory protection). The RTC has been
designed using asynchronous design techniques to minimize its consumption.
The RTC can be clocked by the following low-power low-speed clocks:
– LSE: external 32.768 kHz quartz oscillator supporting four power consumption modes, combined with
drive capability
– LSI: internal 32 kHz oscillator that can clock the RTC with extremely low consumption, when high
accuracy is not required
• LPTIM
This peripheral is a 16-bit timer that benefits from the ultimate developments in power consumption
reduction. With its clock source diversity, the LPTIM is able to keep running whatever the selected power
mode. Given its capability to run even with no internal clock source, the LPTIM can be used as “pulse
counter”, which can be useful in some applications. The LPTIM can also wake up the system from a
low-power mode: this makes the LPTIM suitable with extremely low‑power consumption “time-out functions”.
This peripheral introduces a flexible clock scheme that provides the required functionality and performance,
while minimizing the power consumption.
• LPUART
This peripheral is a UART that allows bidirectional UART communications with a limited power consumption.
The LSE is the only clock required to allow UART communications up to 9600 bauds. Higher baud rates
can be reached when the LPUART is clocked by other sources. Even when the device is in Stop mode, the
LPUART can wait for an incoming UART frame, while having an extremely low energy consumption.
The following sources of wakeup from Stop mode can be selected:
– wakeup on address match
– wakeup on start bit detection
– wakeup on received byte
• I2C
This peripheral can wake up the device from Stop mode (APB clock is off), when it is addressed. All
addressing modes are supported. To wakeup from Stop mode, the HSI must be selected as clock source for
I2CCLK. During Stop mode, the HSI is switched off. When a start is detected, the I2C interface switches the
HSI on, and stretches the SCL clock pin low until the HSI wakes up. The HSI is then used for the address
reception. In case of an address match, the I2C stretches the SCL clock pin low during the device wakeup
time. This stretch is released when the ADDR flag is cleared by software, and the transfer goes on normally.
If the address does not match, the HSI is switched off again and the device is not woken up.
• USART
This peripheral can wake up the device from Stop 0 or Stop 1 mode, when the USART clock is HSI or LSE.
The following sources of wakeup from Stop0/1 mode can be selected:
– wakeup on address match
– wakeup on start bit detection
– wakeup on received byte
All the available peripheral feature modes and wakeup capability are detailed in the product datasheet.
The table below summarizes the characteristics and uses of the various oscillators.
Consumption Trimming
Clock source Frequency Accuracy
(typical) Factory User
1. Consumption is dependent of the LSE oscillator drive capability (here for low drive). At 25° C/3 V, medium-low, medium-high
and high drive capability consumes respectively around 25%, 100% and 150% more than low drive (see AN2867 for more
information to understand which drive capability can be used, function of the selected XO).
In addition, the STM32WL devices embed one PLL, that provides up to three independent outputs, and can be
fed by the HSI, the HSE or the MSI. These PLL outputs can be configured independently for the system clock or
the ADC interface clock . This removes the peripheral constraints on the system clock.
Many other peripherals can be clocked independently from the system clock: USART, LPUART, I2Cx (x = 1 to 3)
and LPTIMx (x = 1, 2) receive an independent clock. For instance, the system and APB bus frequencies can
be reduced while keeping the communication peripheral baud rate constant, independently of the system clock
frequency.
All peripheral clocks can be individually enabled or disabled in Run and LPRun modes. The peripheral clocks can
also be individually enabled or disabled in Sleep and LPSleep modes.
Although the HSI and the MSI are factory trimmed, they can be further trimmed in 0.5% steps during run time, to
compensate frequency deviations due to temperature and voltage changes.
When the LSE is present in the application, the MSI can be automatically calibrated using the LSE (PLL-mode
configuration), in order to reach long-term LSE accuracy.
When the device exits from Stop mode, the system clock can be configured to be either HSI or MSI at any
frequency range. This enables the exit from Stop mode directly at 48 MHz.
3 Conclusion
The main features of the STM32WL devices presented in this application note, demonstrate the benefits offered
by this microcontroller family in reducing the current consumption in embedded communication systems.
Besides having the same characteristics of the STM32WB Series or STM32L4 Series microcontrollers, the
STM32WL devices offer high processing performance without compromising the power consumption. They
complement the STM32 portfolio, maintaining compatibility with other STM32 devices.
The rich set of peripherals, associated with the ultra-low-power sub-GHz radio, allows the user to cover a wide
range of applications, while the available low-power modes give full flexibility to adjust the consumption for any
task on the fly.
This results in an extended operating lifetime for today and tomorrow constantly greener applications.
Revision history
Contents
1 Energy-efficient processing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
2.1 Low-power modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1.1 Sleep mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
List of tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
List of figures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
List of tables
Table 1. STM32WL55 performance without SMPS, @ 48MHz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Table 2. STM32WL55 performance with SMPS, @ 48MHz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Table 3. Stop 2 versus Standby gain, function of Tx interval time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 4. Stop 1 versus Stop 2 gain, function of Tx interval time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 5. Clock source characteristics for STM32WL devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 6. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
List of figures
Figure 1. Current consumption in Run mode versus frequency (3V, 25 °C). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Figure 2. Power supply overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Figure 3. STM32WL Flash memory latency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 4. Transitions between STM32WL low-power modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 5. Current consumption in Sleep and LPSleep modes versus frequency (3V, 25 °C) . . . . . . . . . . . . . . . . . . . . . . 8
Figure 6. Sub-GHz radio operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 7. Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14