Reset and clock control (RCC)
When the CPUs are in one of the low-power modes (Stop, Standby, or Shutdown) and the
sub-GHz radio is in Sleep, the HSE32 clock including the TCXO is disabled.
7.2.2
HSI16 clock
The HSI16 clock signal is generated from an internal 16 MHz Oscillator.
The HSI16 oscillator has the advantage of providing a clock source at low cost. It also has a
faster startup time than the HSE32 crystal oscillator however, even with calibration the
frequency is less accurate than an external crystal oscillator or ceramic resonator.
The HSI16 clock can be selected as system clock after wake-up from Stop modes (Stop 0,
Stop 1 or Stop 2). Refer to
clock source (auxiliary clock) if the HSE32 crystal oscillator fails. Refer to
Clock security system on HSE32
Calibration
The RC oscillator frequencies can vary from one chip to another due to manufacturing
process variations. This is why each device is factory calibrated by ST for 1 % accuracy at
T
= 25 °C.
A
After a reset, the factory calibration value is loaded in the HSICAL[7:0] bits in the
internal clock sources calibration register
If the application is subject to voltage or temperature variations, this may affect the RC
oscillator speed. The HSI16 frequency can be trimmed in the application using the
HSITRIM[6:0] bits in the
For more details on how to measure the HSI16 frequency variation, refer to
Internal/external clock measurement with
The HSIRDY flag in the
stable or not. At startup, the HSI16 RC output clock is not released until this bit is set by
hardware.
The HSI16 RC can be switched on and off using the HSION bit in the
register
(RCC_CR).
The HSI16 signal can also be used as a backup source (Auxiliary clock) if the HSE32 crystal
oscillator fails. Refer to
page
298.
7.2.3
MSI clock
The MSI clock signal is generated from an internal RC oscillator. Its frequency range can be
adjusted by software using the MSIRANGE[3:0] bits in the
(RCC_CR). The following frequency ranges are available: 100 kHz, 200 kHz, 400 kHz,
800 kHz, 1 MHz, 2 MHz, 4 MHz (default value), 8 MHz, 16 MHz, 24 MHz, 32 MHz and
48 MHz. To use the MSI range, it must be selected by MSIRGSEL.
The MSI clock is used as system clock after restart from reset, wake-up from Standby and
Shutdown low-power modes. After restart from Reset and Shutdown, the MSI frequency is
set to its default value 4 MHz (see
Standby, MSI can be adjusted by software using the MSISRANGE[3:0] bits in the
control/status register
2 MHz, 4 MHz (default value) and 8 MHz.
294/1450
Section 7.3: Low-power
(CSS).
(RCC_ICSCR).
RCC internal clock sources calibration register
TIM16/TIM17.
RCC clock control register (RCC_CR)
Section 7.2.10: Clock security system on HSE32 (CSS) on
Section 7.3: Low-power
(RCC_CSR). The following frequency ranges are available: 1MHz,
RM0453 Rev 5
modes. It can also be used as a backup
(RCC_ICSCR).
indicates if the HSI16 RC is
RCC clock control
RCC clock control register
modes). When wake-up from
RM0453
Section 7.2.10:
RCC
Section 7.2.20:
RCC
Need help?
Do you have a question about the STM32WL5 Series and is the answer not in the manual?