11. Reset and clock control (RCC)

11.1 RCC introduction

The reset and clock control (RCC) manages the different resets, and generates the clocks for the bus and peripherals.

11.2 RCC pins and internal signals

Table 117 lists the RCC inputs and output signals connected to package pins or balls.

Table 117. RCC input/output signals connected to package pins or balls

Signal nameSignal typeDescription
NRSTI/OSystem reset, can be used to provide reset to external devices
OSC32_INI32 kHz oscillator input
OSC32_OUTO32 kHz oscillator output
OSC_INISystem oscillator input
OSC_OUTOSystem oscillator output
MCOOOutput clock for external devices
LSCOOLow-speed output clock for external devices
AUDIOCLKIExternal kernel clock input for SAI1, SAI2, I2S1, I2S2, and I2S3

11.3 RCC reset functional description

There are three types of reset:

11.3.1 Power reset

A power reset is generated when one of the following events occurs:

A brownout reset, including power-on or power-down reset (POR/PDR), sets all registers to their reset values except the ones in the Backup domain.

When exiting Standby mode, all registers in the core domain are set to their reset value. Registers outside the core domain (RTC, WKUP, IWDG, and GPIO pullup/pulldown configuration during Standby and Standby mode exit) are not impacted.

11.3.2 System reset

A system reset sets all registers to their reset values except the reset flags in RCC reset status register (RCC_RSR) and the registers in the Backup domain.

A system reset is generated when one of the following events occurs:

The reset source can be identified by checking the reset flags in RCC reset status register (RCC_RSR).

These sources act on the NRST pin and this pin is always kept low during the delay phase. The reset service routine vector is selected depending on product state, on Boot option bytes or on both.

The system reset signal provided to the device is output on the NRST pin. The pulse generator guarantees a minimum reset pulse duration of 20 µs for each internal reset source. In case of an external reset, the reset pulse is generated while the NRST pin is asserted low.

In case on an internal reset, the internal pull-up \(R_{PU}\) is deactivated to save the power consumption through the pull-up resistor.

Figure 54. Simplified diagram of the reset circuit

Simplified diagram of the reset circuit showing the NRST pin, pull-up resistor, external reset input, Schmitt trigger, filter, pulse generator, and various reset sources (WWDG, IWDG, Software, Low-power manager, POR) leading to the System reset output.

The diagram illustrates the reset circuitry. An external reset signal is applied to the NRST pin. The NRST pin is connected to a pull-up resistor \(R_{PU}\) to \(V_{DD}\). The NRST pin signal is fed into a Schmitt trigger, which then passes through a filter. The output of the filter is connected to an OR gate that produces the 'System reset' signal. Additionally, the NRST pin signal is connected to a pulse generator that guarantees a minimum pulse duration of 20 µs. The output of this pulse generator is connected to another OR gate that produces various internal reset signals: WWDG reset, IWDG reset, Software reset, Low-power manager reset, and POR.

Simplified diagram of the reset circuit showing the NRST pin, pull-up resistor, external reset input, Schmitt trigger, filter, pulse generator, and various reset sources (WWDG, IWDG, Software, Low-power manager, POR) leading to the System reset output.

MSv67375V2

Software reset

The SYSRESETREQ bit in Cortex-M33 application interrupt and reset control register must be set to force a software reset on the device.

Low-power mode security reset

To avoid that critical applications mistakenly enter a low-power mode, the following low-power mode security resets are available. If enabled in option bytes, the resets are generated in any of the following conditions:

For further information on the user option bytes, refer to Section 7.4.1: Option bytes description.

11.3.3 Backup domain reset

The Backup domain has two specific resets, generated after one of the following events:

A Backup domain reset affects the LSE oscillator, the RTC, the backup registers, the backup SRAM, and the RCC_BDCR register.

11.3.4 Reset source identification

The application can identify the reset source by checking the reset flags in the RCC_RSR register. The software can reset the flags by setting the RMVF bit.

Table 118 shows how the status bits of the RCC_RSR register behave according to the situation that generated the reset. For example, when an IWDG timeout occurs, if the CPU is reading the RCC_RSR register during the boot phase, both PINRSTF and IWDGRSTF bits are set, indicating that the IWDG also generated a pin reset.

Table 118. Reset source identification (RCC_RSR)(1)

ResetLPWRRSTFWWDGRSTFIWDGRSTFSFTRSTFBORRSTFPINRSTF
1Power-on reset000011
2Pin/pad reset000001
3Brownout (low or high) reset000011
4System reset generated by CPU000101
5WWDG reset010001
6IWDG reset001001
7Illegal stop entry reset100001

1. Gray cells highlight the register bits that are set.

11.4 RCC clocks functional description

Four different clock sources can be used to drive the system clock (SYSCLK):

The HSI is used as system clock source after startup from reset, configured at 32 MHz.

The device has the following additional clock sources:

Each clock source can be switched on or off independently when it is not used, to optimize power consumption.

Several prescalers can be used to configure the AHB frequency, the APB1 and APB2 domains. The maximum frequency of the AHB and APB domains is 250 MHz.

The peripheral clocks are derived from their bus clock (HCLK, PCLK1, PCLK2 or PCLK3), except those that receive an independent kernel clock. This kernel clock can be selected by software between several sources thanks to RCC_CCIPRx registers (x = 1,2,3,4,5).

In addition, the RTC kernel clock is selected by software in RCC_BDCR. The IWDG clock is always the LSI 32 kHz clock.

The RCC feeds the Cortex system timer (SysTick) external clock with the AHB clock (HCLK) divided by eight, or LSE or LSI. The SysTick can work either with this clock or directly with the Cortex clock (HCLK), configurable in the SysTick control and status register.

FCLK acts as Cortex-M33 free-running clock.


a. Not available on STM32H543/553xx devices.

Figure 55. Clock tree (STM32H523/533/56x/573xx devices)

A detailed block diagram of the clock tree for STM32H523/533/56x/573xx devices. It shows various clock sources (LSI RC, LSE OSC, HSE OSC, HSI RC, CSI RC, HSI48 RC) feeding into PLLs (PLL1, PLL2, PLL3) and a clock source control block. These generate system clocks (SYSCLK) and high-speed clocks (HCLK). The diagram maps these clocks to numerous peripherals including IWDG, RTC, PWR, Cortex system timer, APB1/2/3 peripherals, TIMx, USARTx, LPTIMx, SPIx, I2Cx, OCTOSPI1, RNG, ADC/DAC, and FDCAN. It also shows clock outputs for external interfaces like USB and Ethernet. A note at the bottom states: 'Check the datasheet for the actual availability of this peripheral'.
A detailed block diagram of the clock tree for STM32H523/533/56x/573xx devices. It shows various clock sources (LSI RC, LSE OSC, HSE OSC, HSI RC, CSI RC, HSI48 RC) feeding into PLLs (PLL1, PLL2, PLL3) and a clock source control block. These generate system clocks (SYSCLK) and high-speed clocks (HCLK). The diagram maps these clocks to numerous peripherals including IWDG, RTC, PWR, Cortex system timer, APB1/2/3 peripherals, TIMx, USARTx, LPTIMx, SPIx, I2Cx, OCTOSPI1, RNG, ADC/DAC, and FDCAN. It also shows clock outputs for external interfaces like USB and Ethernet. A note at the bottom states: 'Check the datasheet for the actual availability of this peripheral'.

1. For details on the internal/external clock source, refer to the electrical characteristics in the datasheet.

Figure 56. Clock tree (STM32H543/553xx devices)

A detailed block diagram of the clock tree for STM32H543/553xx devices. It shows various clock sources (LSI RC, LSE OSC, HSE OSC, HSI RC, CSI RC, HSI48 RC, PLL1, PLL2, MCO1, MCO2) and their connections to different system components like AHB, APB1, APB2, APB3, TIMx, USARTx, SPIx, I2Cx, FDCAN, and others. It includes prescalers, dividers, and multiplexers for clock distribution.

The diagram illustrates the clock tree architecture for STM32H543/553xx devices. Key components and connections include:

A detailed block diagram of the clock tree for STM32H543/553xx devices. It shows various clock sources (LSI RC, LSE OSC, HSE OSC, HSI RC, CSI RC, HSI48 RC, PLL1, PLL2, MCO1, MCO2) and their connections to different system components like AHB, APB1, APB2, APB3, TIMx, USARTx, SPIx, I2Cx, FDCAN, and others. It includes prescalers, dividers, and multiplexers for clock distribution.

1. For details on the internal/external clock source, refer to the electrical characteristics in the datasheet.

11.4.1 HSE clock

The HSE block can generate a clock from an external crystal/ceramic resonator, or from an external clock source.

Figure 57. HSE/LSE clock sources

Figure 57: HSE/LSE clock sources diagram. The diagram shows two configurations for the HSE block. The 'External clock configuration' shows an external clock source connected to the OSC_IN pin, while OSC32_IN, OSC32_OUT, OSC_OUT, and GPIO are shown as internal pins. The 'Crystal/ceramic resonators configuration' shows a crystal or ceramic resonator connected between OSC_IN and OSC_OUT pins, with load capacitors C_L1 and C_L2 connected from each pin to ground. OSC32_IN, OSC32_OUT, OSC_OUT, and GPIO are again shown as internal pins. The diagram is labeled MSv39357V2.
Figure 57: HSE/LSE clock sources diagram. The diagram shows two configurations for the HSE block. The 'External clock configuration' shows an external clock source connected to the OSC_IN pin, while OSC32_IN, OSC32_OUT, OSC_OUT, and GPIO are shown as internal pins. The 'Crystal/ceramic resonators configuration' shows a crystal or ceramic resonator connected between OSC_IN and OSC_OUT pins, with load capacitors C_L1 and C_L2 connected from each pin to ground. OSC32_IN, OSC32_OUT, OSC_OUT, and GPIO are again shown as internal pins. The diagram is labeled MSv39357V2.

External clock source (HSE bypass)

In this mode, an external clock source must be provided to OSC_IN pin. The external clock can be low swing (analog) or digital. If this clock is directly used by a peripheral, the duty cycle requirement is defined by the peripheral and the application (refer to datasheet for more details).

In case of an analog clock (low swing) the HSEBYP and HSEON bits must be set to 1 in the RCC clock control register (RCC_CR).

In case of a digital clock, the HSEBYP and the HSEEXT bits must be set to 1 followed by setting the HSEON bit to 1 in the RCC clock control register (RCC_CR).

External crystal/ceramic resonator

The oscillator is enabled by setting the HSEBYP bit to 0 and HSEON bit to 1.

The HSE can be used when the product requires a very accurate high-speed clock.

The associated hardware configuration is shown in Figure 57. The resonator and the load capacitors must be placed as close as possible to the oscillator pins to minimize output distortion and startup stabilization time. The loading capacitance values must be adjusted according to the selected crystal or ceramic resonator. Refer to the electrical characteristics section of the datasheet for more details.

The HSERDY flag of the RCC clock control register (RCC_CR) indicates whether the HSE oscillator is stable or not. At startup, the hse_ck clock is not released until this bit is set by hardware. An interrupt can be generated if enabled in the RCC clock source interrupt enable register (RCC_CIER).

The HSE can be switched ON and OFF through the HSEON bit. Note that the HSE cannot be switched OFF if one of the following two conditions is met:

In that case the hardware does not allow programming the HSEON bit to 0.

The HSE is automatically disabled by hardware, when the system enters Stop or Standby mode.

In addition, the HSE clock can be driven to the MCO1 and MCO2 outputs and used as clock source for other application components.

11.4.2 HSI clock

The HSI block provides the default clock to the product.

The HSI is a high-speed internal RC oscillator that can be used directly as system clock, peripheral clock, or as PLL input. A predivider allows the application to select an HSI output frequency of 8, 16, 32 or 64 MHz. This predivider is controlled by the HSIDIV.

The HSI advantages are the following:

The HSI frequency, even with frequency calibration, is less accurate than an external crystal oscillator or ceramic resonator.

The HSI can be switched ON and OFF using the HSION bit. Note that the HSI cannot be switched OFF if one of the two conditions is met:

In that case the hardware does not allow programming the HSION bit to 0. Note that the HSIDIV cannot be changed if the HSI is selected as reference clock for at least one enabled PLL (PLLxON bit set to 1). In that case the hardware does not update the HSIDIV with the new value. However it is possible to change the HSIDIV if the HSI is used directly as system clock.

The HSIRDY flag indicates if the HSI is stable or not. At startup, the HSI output clock is not released until this bit is set by hardware.

The HSI clock can also be used as a backup source (auxiliary clock) if the HSE fails (refer to Section 11.4.10: Clock security system (CSS)). The HSI can be disabled or not when the system enters Stop mode.

In addition, the HSI clock can be driven to the MCO1 output and used as clock source for other application components.

Care must be taken when the HSI is used as kernel clock for communication peripherals, the application must take into account the following parameters:

Note: The HSI can remain enabled when the system is in Stop mode.

HSI calibration

RC oscillator frequencies can vary from one chip to another due to manufacturing process variations. That is why each device is factory calibrated by STMicroelectronics to achieve an accuracy of ACCHSI (refer to the product datasheet for more information).

After a power-on reset, the factory calibration value is loaded in the HSICAL[11:0] bits. If the application is subject to voltage or temperature variations, this may affect the RC oscillator frequency. The user application can trim the HSI frequency using the HSITRIM[6:0] bits.

Note: HSICAL[11:0] and HSITRIM[6:0] are located in the RCC CSI calibration register (RCC_CSICFGR).

11.4.3 CSI oscillator

The CSI is a low-power RC oscillator that can be used directly as system clock, peripheral clock, or PLL input.

The CSI advantages are the following:

The CSI provides a clock frequency of about 4 MHz, while the HSI is able to provide a clock up to 64 MHz.

CSI frequency, even with frequency calibration, is less accurate than an external crystal oscillator or ceramic resonator.

The CSI can be switched ON and OFF through the CSION bit. The CSIRDY flag indicates whether the CSI is stable or not. At startup, the CSI output clock is not released until this bit is set by hardware.

The CSI cannot be switched OFF if one of the two conditions is met:

In that case the hardware does not allow programming the CSION bit to 0.

The CSI can be disabled or not when the system enters Stop mode.

In addition, the CSI clock can be driven to the MCO2 output and used as clock source for other application components.

Even if the CSI settling time is faster than the HSI, care must be taken when the CSI is used as kernel clock for communication peripherals: the application must take into account the following parameters:

Note: CSION and CSIRDY bits are located in the RCC clock control register (RCC_CR).

CSI calibration

RC oscillator frequencies can vary from one chip to another due to manufacturing process variations, this is why each device is factory calibrated to achieve \(ACC_{CSI}\) accuracy (refer to the product datasheet for more information). After reset, the factory calibration value is loaded in the CSICAL[7:0] bits.

Voltage and/or temperature variations affect the RC oscillator frequency. The user application can trim the CSI frequency using the CSITRIM[5:0] bits.

Note: Bits CSICAL[7:0] and CSITRIM[5:0] are located into the RCC CSI calibration register (RCC_CSICFGR).

Figure 58. CSI calibration flow

Figure 58. CSI calibration flow diagram. The diagram shows the calibration process for the CSI. An 'Engineering option bytes (factory calibration)' block provides the 'FLASH_CSI_opt[7:0]' value to an adder (+) inside the 'RCC' block. The 'RCC_CSICFGR' register provides the 'CSITRIM[5:0] (unsigned)' value to the same adder. The output of the adder is 'csi_cal[7:0]', which is then loaded into the 'CSI CAL[7:0]' block. The 'RCC_CSICFGR' register also provides the 'CSICAL[7:0] (unsigned)' value to the 'CSI CAL[7:0]' block. The diagram is labeled 'MSv48152V1' in the bottom right corner.
Figure 58. CSI calibration flow diagram. The diagram shows the calibration process for the CSI. An 'Engineering option bytes (factory calibration)' block provides the 'FLASH_CSI_opt[7:0]' value to an adder (+) inside the 'RCC' block. The 'RCC_CSICFGR' register provides the 'CSITRIM[5:0] (unsigned)' value to the same adder. The output of the adder is 'csi_cal[7:0]', which is then loaded into the 'CSI CAL[7:0]' block. The 'RCC_CSICFGR' register also provides the 'CSICAL[7:0] (unsigned)' value to the 'CSI CAL[7:0]' block. The diagram is labeled 'MSv48152V1' in the bottom right corner.

11.4.4 HSI48 clock

The HSI48 clock signal is generated from an internal 48 MHz RC oscillator, and can be used directly for USB and for random number generator (RNG).

The internal 48 MHz RC oscillator is mainly dedicated to provide a high-precision clock to the USB peripheral by means of a special clock recovery system (CRS) circuitry. The CRS can use the USB SOF signal, the LSE, or an external signal to automatically and quickly adjust the oscillator frequency on-the-fly. It is disabled as soon as the system enters Stop or Standby mode. When the CRS is not used, the HSI48 RC oscillator runs on its default frequency, subject to manufacturing process variations.

For more details on how to configure and use the CRS peripheral, refer to Section 12: Clock recovery system (CRS).

The HSI48RDY flag in the RCC_CR register indicates whether the HSI48 RC oscillator is stable or not. At startup, the HSI48 RC oscillator output clock is not released until this bit is set by hardware.

The HSI48 can be switched on and off using the HSI48ON bit in the RCC_CR register.

11.4.5 PLL description

The RCC features three PLLs:

The PLLs integrated into the RCC are completely independent. They offer the following features:

Figure 59. PLL block diagram

Figure 59: PLL block diagram. The diagram shows the internal structure of a PLL block (PLLx). The reference clock (refx_ck) enters the block and is controlled by PLLxRGE (00: 1 to 2 MHz, 01: 2 to 4 MHz, 10: 4 to 8 MHz, 11: 8 to 16 MHz). It passes through a PFD + CP and an LPF to a VCO. The VCO output (vcox_ck) is controlled by PLLxVCOSSEL (0: 128 to 560 MHz, 1: 150 to 420 MHz). The VCO output is also fed back to a divider (÷ 8, 9, ..., 128, ..., 420) which is controlled by DIVNx. This divider output is fed into a ΣΔ modulator, which is controlled by PLLxFRACEN and FRACNx. The ΣΔ modulator output is fed back to the divider. The VCO output is also fed into an LDO to produce 1 V. The VCO output is also fed into three post-dividers (÷ DIVPx, ÷ 1, 2, 3, ..., 128, ÷ 1, 2, 3, ..., 128) which are controlled by PLLxPEN. The outputs of these post-dividers are pll_x_p_ck, pll_x_q_ck, and pll_x_r_ck. The block is powered by VDDA.

DIVPx = 2, 4, 6...128 when x = 1, and DIVPx = 1, 2, 3...128 for x = 2 or 3

MSv67378V2

Figure 59: PLL block diagram. The diagram shows the internal structure of a PLL block (PLLx). The reference clock (refx_ck) enters the block and is controlled by PLLxRGE (00: 1 to 2 MHz, 01: 2 to 4 MHz, 10: 4 to 8 MHz, 11: 8 to 16 MHz). It passes through a PFD + CP and an LPF to a VCO. The VCO output (vcox_ck) is controlled by PLLxVCOSSEL (0: 128 to 560 MHz, 1: 150 to 420 MHz). The VCO output is also fed back to a divider (÷ 8, 9, ..., 128, ..., 420) which is controlled by DIVNx. This divider output is fed into a ΣΔ modulator, which is controlled by PLLxFRACEN and FRACNx. The ΣΔ modulator output is fed back to the divider. The VCO output is also fed into an LDO to produce 1 V. The VCO output is also fed into three post-dividers (÷ DIVPx, ÷ 1, 2, 3, ..., 128, ÷ 1, 2, 3, ..., 128) which are controlled by PLLxPEN. The outputs of these post-dividers are pll_x_p_ck, pll_x_q_ck, and pll_x_r_ck. The block is powered by VDDA.

The PLLs are controlled via RCC_PLLxDIVR, RCC_PLLxFRACR, RCC_PLLCFGR, and RCC_CR registers.

The frequency of the reference clock provided to the PLLs (refx_ck) must range from 1 to 16 MHz. The PLLxM dividers of the RCC PLLx clock source selection register (RCC_PLLxCFGR) must be properly programmed to match this condition. In addition, the PLLxRGE[1:0] field of the RCC PLLx clock source selection register (RCC_PLLxCFGR) must be set according to the reference input frequency to optimize performance.

The user application can then configure the VCO. The smaller range (150 to 420 MHz) must be chosen when the reference clock frequency is lower than 2 MHz.

To reduce the power consumption, it is recommended to configure the VCO output to the smaller range.

DIVNx loop divider must be programmed to achieve the expected frequency at VCO output. In addition, the VCO output range must be respected.

a. PLL3 is not available on STM32H543/553xx devices.

The PLLs operate in integer mode when the value of SH_REG bit of the FRACNx shadow register is set to 0. The SH_REG bit is updated with the FRACNx value when PLLxFRACEN bit goes from 0 to 1. The sigma-delta modulator is designed to minimize the jitter impact, while allowing very small frequency steps.

The PLLs can be enabled by setting PLLxON to 1. The PLLxRDY bits indicate that the PLL is ready (locked).

Note: Before enabling the PLLs, make sure that the reference frequency (refx_ck) provided to it is stable, so the hardware does not allow changing PLLxM when the PLLx is ON, and it is also not possible to change PLLSRC when one of the PLLs is ON.

The hardware prevents writing PLL1ON to 0 if the PLL1 is currently used to deliver the system clock. There are other hardware protections on the clock generators (refer to HSE clock, HSI clock, and CSI oscillator).

The following PLL parameters cannot be changed once the PLL is enabled: DIVNx, PLLxRGE, PLLxVCOSEL, PLLxP (DIVP), PLLxQ (DIVQ), and PLLxR (DIVR).

To save power, when a PLLx output (pll_x_p_ck, pll_x_q_ck, or pll_x_r_ck) is not used, disable it by clearing the corresponding enable bit (PLLxPEN, PLLxQEN, or PLLxREN) in the PLLxCFGR register.

If the above rules are not respected, the PLL output frequency is not guaranteed.

Output frequency computation

When the PLL is configured in integer mode (SH_REG = 0), the VCO frequency (\(F_{VCO}\)) is given by the following expression:

\[F_{VCO} = F_{REF\_CK} \times DIVN\]

\[F_{PLL\_y\_CK} = (F_{VCO} / (DIVy + 1)) \text{ with } y = P, Q, \text{ or } R\]

When the PLL is configured in fractional mode (SH_REG different from 0), the DIVN divider must be initialized before enabling the PLLs. However, it is possible to change the value of FRACNx on-the-fly without disturbing the PLL output.

This feature can be used either to generate a specific frequency from any crystal value with a good accuracy, or to fine-tune the frequency on-the-fly.

For each PLL, the VCO frequency is given by the following formula:

\[F_{VCO} = F_{ref\_ck} \times \left( DIVN + \frac{FRACN}{2^{(13)}} \right)\]

Note: For PLL1, DIVP can only take odd values.

The PLLs are disabled by hardware when:

PLL initialization phase

Figure 60 shows the recommended PLL initialization sequence in integer and fractional mode. The PLLx are supposed to be disabled at the start of the initialization sequence:

  1. 1. Initialize the PLLs registers according to the required frequency.
    • – Set PLLxFRACEN of RCC PLLx clock source selection register (RCC_PLLxCFGR) to 0 for integer mode.
    • – For fractional mode, set FRACN to the required initial value (FracInitValue) and then set PLLxFRACEN to 1.
  2. 2. Once the PLLxON bit is set to 1, the user application must wait until PLLxRDY bit is set to 1. If the PLLx is in fractional mode, the PLLxFRACEN bit must not be set back to 0 as long as PLLxRDY = 0.
  3. 3. Once the PLLxRDY bit is set to 1, the PLLx is ready to be used.
  4. 4. If the application intends to tune the PLLx frequency on-the-fly (possible only in fractional mode), then:
    1. a) PLLxFRACEN must be set to 0. When PLLxFRACEN = 0, the sigma-delta modulator is still operating with the value latched into SH_REG. The application must wait for three clock periods of refx_ck (PLLxFRACEN bit propagation delay).
    2. b) A new value must be uploaded into PLLxFRACR (FracValue(n)).
    3. c) PLLxFRACEN must be set to 1, to latch the content of PLLxFRACR into its shadow register. The new value is considered after three clock periods of refx_ck (PLLxFRACEN bit propagation delay).

Note: When the PLLxRDY goes to 1 the difference between the PLLx output frequency and the target value is lower than ±2%.

Figure 60. PLLs initialization flow

Flowchart showing PLL initialization flow for integer and fractional modes. The integer mode flow starts with 'PLL enable sequence integer mode', followed by 'Select clock source (RCC_CKSEL) - PLLSRC', 'Init pre-divider (RCC_CKSEL) - PLLxM', 'PLLx config (RCC_PLLxCFGR) - PLLxVCOSEL, PLLxRGE - PLLxFRACEN = 0 - PLLxPEN, PLLxEN, PLLxREN', 'Init PLLx dividers (RCC_PLLxDIVR) - DIVNx, DIVPx, DIVQx, DIVRx', and 'Enable PLLx (RCC_CR) - PLLxON = 1'. A decision diamond 'PLLxRDY = 1 ?' leads to 'Ready for use in integer mode' if Yes, or loops back to 'Enable PLLx' if No. The fractional mode flow starts with 'PLL enable sequence fractional mode', followed by 'Select clock source (RCC_CKSEL) - PLLSRC', 'Init pre-divider (RCC_CKSEL) - PLLxM', 'Init fractional value (RCC_PLLxFRACR) - FRACN= FracInitValue', 'PLLx config (RCC_PLLxCFGR) - PLLxVCOSEL, PLLxRGE - PLLxFRACEN = 1 - PLLxPEN, PLLxEN, PLLxREN', 'Init PLLx dividers (RCC_PLLxDIVR) - DIVNx, DIVPx, DIVQx, DIVRx', and 'Enable PLLx (RCC_CR) - PLLxON = 1'. A decision diamond 'PLLxRDY = 1 ?' leads to 'Ready for use in fractional mode' if Yes, or loops back to 'Enable PLLx' if No. A note 'Can be repeated for each PLL' is next to the fractional mode steps. A 'Value update on-the-fly' section shows a loop: 'Disable fractional mode (RCC_PLLxCFGR) - PLLxFRACEN = 0', 'Init fractional value (RCC_PLLxFRACR) - FRACN= FracValue(n)', 'Enable fractional mode (RCC_PLLxCFGR) - PLLxFRACEN = 1', leading to 'Ready for use in fractional mode'.
graph TD
    subgraph Integer_Mode [Integer Mode]
        I1([PLL enable sequence integer mode]) --> I2[Select clock source (RCC_CKSEL) - PLLSRC]
        I2 --> I3[Init pre-divider (RCC_CKSEL) - PLLxM]
        I3 --> I4["PLLx config (RCC_PLLxCFGR) -
- PLLxVCOSEL, PLLxRGE
- PLLxFRACEN = 0
- PLLxPEN, PLLxEN, PLLxREN
Init PLLx dividers (RCC_PLLxDIVR)
- DIVNx, DIVPx, DIVQx, DIVRx"] I4 --> I5[Enable PLLx (RCC_CR) - PLLxON = 1] I5 --> I6{PLLxRDY = 1 ?} I6 -- No --> I5 I6 -- Yes --> I7([Ready for use in integer mode]) end subgraph Fractional_Mode [Fractional Mode] F1([PLL enable sequence fractional mode]) --> F2[Select clock source (RCC_CKSEL) - PLLSRC] F2 --> F3[Init pre-divider (RCC_CKSEL) - PLLxM] F3 --> F4["Init fractional value (RCC_PLLxFRACR)
- FRACN= FracInitValue
PLLx config (RCC_PLLxCFGR) -
- PLLxVCOSEL, PLLxRGE
- PLLxFRACEN = 1
- PLLxPEN, PLLxEN, PLLxREN
Init PLLx dividers (RCC_PLLxDIVR)
- DIVNx, DIVPx, DIVQx, DIVRx"] F4 --> F5[Enable PLLx (RCC_CR) - PLLxON = 1] F5 --> F6{PLLxRDY = 1 ?} F6 -- No --> F5 F6 -- Yes --> F7([Ready for use in fractional mode]) F8["Disable fractional mode (RCC_PLLxCFGR)
- PLLxFRACEN = 0
Init fractional value (RCC_PLLxFRACR)
- FRACN= FracValue(n)
Enable fractional mode (RCC_PLLxCFGR)
- PLLxFRACEN = 1"] --> F9([Ready for use in fractional mode]) end Note1[Can be repeated for each PLL] -.-> F3 Note1 -.-> F4 Note1 -.-> F5 Note1 -.-> F6 Note1 -.-> F7 Note2[Value update on-the-fly] -.-> F8 F8 --> F9

MSv67379V4

Flowchart showing PLL initialization flow for integer and fractional modes. The integer mode flow starts with 'PLL enable sequence integer mode', followed by 'Select clock source (RCC_CKSEL) - PLLSRC', 'Init pre-divider (RCC_CKSEL) - PLLxM', 'PLLx config (RCC_PLLxCFGR) - PLLxVCOSEL, PLLxRGE - PLLxFRACEN = 0 - PLLxPEN, PLLxEN, PLLxREN', 'Init PLLx dividers (RCC_PLLxDIVR) - DIVNx, DIVPx, DIVQx, DIVRx', and 'Enable PLLx (RCC_CR) - PLLxON = 1'. A decision diamond 'PLLxRDY = 1 ?' leads to 'Ready for use in integer mode' if Yes, or loops back to 'Enable PLLx' if No. The fractional mode flow starts with 'PLL enable sequence fractional mode', followed by 'Select clock source (RCC_CKSEL) - PLLSRC', 'Init pre-divider (RCC_CKSEL) - PLLxM', 'Init fractional value (RCC_PLLxFRACR) - FRACN= FracInitValue', 'PLLx config (RCC_PLLxCFGR) - PLLxVCOSEL, PLLxRGE - PLLxFRACEN = 1 - PLLxPEN, PLLxEN, PLLxREN', 'Init PLLx dividers (RCC_PLLxDIVR) - DIVNx, DIVPx, DIVQx, DIVRx', and 'Enable PLLx (RCC_CR) - PLLxON = 1'. A decision diamond 'PLLxRDY = 1 ?' leads to 'Ready for use in fractional mode' if Yes, or loops back to 'Enable PLLx' if No. A note 'Can be repeated for each PLL' is next to the fractional mode steps. A 'Value update on-the-fly' section shows a loop: 'Disable fractional mode (RCC_PLLxCFGR) - PLLxFRACEN = 0', 'Init fractional value (RCC_PLLxFRACR) - FRACN= FracValue(n)', 'Enable fractional mode (RCC_PLLxCFGR) - PLLxFRACEN = 1', leading to 'Ready for use in fractional mode'.

11.4.6 LSE clock

The LSE can generate a clock from an external crystal/ceramic resonator, or from an external user clock.

External clock source (LSE bypass)

In this mode, an external clock source must be provided to OSC32_IN pin (see Figure 57). The input clock can have a frequency up to 1 MHz, and be low swing (analog) or digital. A duty cycle close to 50% is recommended.

In case of an analog clock (low swing), the LSEBYP and LSEON bits must be set to 1 (RCC Backup domain control register (RCC_BDCR)).

In case of a digital clock, the LSEBYP and the LSEEXT bits must be set to 1 followed by setting the LSEON bit to 1 (RCC Backup domain control register (RCC_BDCR)). If the RTC

is used, the LSE bypass must not be configured in digital mode, but in low swing analog mode (default value after reset).

External crystal/ceramic resonator (LSE crystal)

The LSE clock is generated from a 32.768 kHz crystal or ceramic resonator. It has the advantage to provide a low-power, highly accurate clock source to the real-time clock (RTC) for clock/calendar or other timing functions.

The LSERDY flag of the RCC Backup domain control register (RCC_BDCR) indicates whether the LSE crystal is stable or not. At startup, the LSE crystal output clock signal is not released until this bit is set by hardware. An interrupt can be generated if enabled in the RCC clock source interrupt enable register (RCC_CIER).

The LSE oscillator is switched ON and OFF using the LSEON bit. The LSE remains enabled when the system enters Stop or Standby mode.

In addition, the LSE clock can be driven to the MCO1 output and used as clock source for other application components.

The LSE also offers a programmable driving capability (LSEDRV[1:0]), which can be used to modulate the amplifier driving capability. This driving capability is chosen according to the external crystal/ceramic component requirement to ensure a stable oscillation.

The driving capability must be set before enabling the LSE oscillator.

11.4.7 LSI clock

The LSI acts as a low-power clock source that can be kept running when the system is in Stop or Standby mode for the independent watchdog (IWDG) and auto-wake-up unit (AWU).

The clock frequency is around 32 kHz. For more details, refer to the electrical characteristics section of the datasheet.

The LSI can be switched ON and OFF using the LSION bit. The LSIRDY flag indicates whether the LSI oscillator is stable or not. If an independent watchdog is started either by hardware or software, the LSI is forced ON and cannot be disabled.

The LSI remains enabled when the system enters Stop or Standby mode.

At LSI startup, the clock is not provided until the hardware sets the LSIRDY bit. An interrupt can be generated if enabled in the RCC clock source interrupt enable register (RCC_CIER).

In addition, the LSI clock can be driven to the MCO2 output, and used as a clock source for other application components.

Note: Bits LSION and LSIRDY are located in the RCC Backup domain control register (RCC_BDCR).

11.4.8 System clock (SYSCLK) selection

Four different clock sources can be used to drive the system clock (SYSCLK):

The system clock maximum frequency is 250 MHz. After a system reset (or after leaving Standby mode), the HSI oscillator, at 32 MHz, is selected as system clock. When a clock source is used directly or through the PLL as a system clock, it is not possible to stop it.

A switch from one clock source to another occurs only if the target clock source is ready (clock stable after startup delay or PLL locked). If a clock source not yet ready is selected, the switch occurs when the clock source becomes ready. Status bits in the RCC clock control register (RCC_CR) indicate which clocks are ready, and which clock is currently used as a system clock.

11.4.9 Handling clock generators in stop and standby modes

When the whole system enters Stop mode, all the clocks (system and kernel clocks) are stopped, as well as the following clock sources:

The content of the RCC registers is not altered except for PLL1ON, PLL2ON, PLL3ON(a), HSEON, and HSI48ON, set to 0.

Exiting Stop mode

When the system exits this mode via a wake-up event, the application can select which oscillator (HSI and/or CSI) is used to restart. The STOPWUCK bit selects the oscillator used as system clock. The STOPKERWUCK bit selects the oscillator used as kernel clock for peripherals. The STOPKERWUCK bit is useful if after a system Stop, a peripheral needs a kernel clock generated by an oscillator different from the one used for the system clock.

These bits belong to the RCC clock configuration register1 (RCC_CFGR1)

Table 119. STOPWUCK and STOPKERWUCK description

STOPWUCKSTOPKERWUCKActivated oscillator(s) when the system exits Stop modeDistributed clocks when the system exits Stop mode
System clockKernel clock
00HSIHSIHSI
1HSI and CSIHSI and/or CSI
10CSI
1CSICSI

a. PLL3 is not available on STM32H543/553xx devices.

During Stop mode

There are two specific cases where the HSI or CSI can be enabled during this mode.

Table 120. HSIKERON and CSIKERON behavior

HSIKERON (CSIKERON)HSI (CSI) state during Stop modeHSI (CSI) state setting time
0OFF\(t_{su(HSI)}\) \(t_{su(CSI)}\) (1)
1Running and gatedImmediate

1. \(t_{su(HSI)}\) and \(t_{su(CSI)}\) are the startup times of, respectively, the HSI and CSI oscillators (refer to the product datasheet for the values of these parameters).

When the microcontroller exists system standby mode, the HSI is selected as system and kernel clock. The RCC registers are reset to their initial values except for the RCC_RSR and RCC_BDCR registers.

Note: The HSI and CSI outputs provide two clock paths:

When a peripheral requests the kernel clock in system stop mode, only the path providing the hsi_ker_ck or csi_ker_ck is activated.

11.4.10 Clock security system (CSS)

Clock security system on HSE

The clock security system can be enabled by software via the HSECSSON bit, which can be enabled even when the HSEON is set to 0.

The CSS on HSE is enabled by the hardware when the HSE is enabled and ready, and HSECSSON set to 1.

The CSS on HSE is disabled when the HSE is disabled. As a result, this function does not work when the system is in Stop mode.

It is not possible to clear directly the HSECSSON bit by software.

The HSECSSON bit is cleared by hardware when a system reset occurs or when the system enters Standby mode.

If a failure is detected on the HSE clock, the system automatically switches to the HSI or CSI, depending on STOPWUCK bit configuration in RCC clock configuration register1 (RCC_CFGR1), to provide a safe clock. The HSE is then automatically disabled, a clock failure event is sent to the break inputs of the advanced-control timers (TIM1, TIM8), and an NMI is automatically generated to inform the application about the failure, allowing the MCU

to perform rescue operations. If the HSE output was used as clock source for PLLs when the failure occurred, the PLLs are also disabled.

If an HSE clock failure occurs when the CSS is enabled, the CSS generates an interrupt that causes the automatic generation of an NMI. The HSECSSF flag in RCC clock source interrupt flag register (RCC_CIFR) is set to 1 to allow the application to identify the failure source. The NMI routine is executed indefinitely until the HSECSSF bit is cleared. As a consequence, the application must clear the HSECSSF flag in the NMI ISR by setting the HSECSSC bit in the RCC clock source interrupt clear register (RCC_CICR).

Clock security system on LSE

A clock security system on LSE can be activated by software writing the LSECSSON bit in the RCC Backup domain control register (RCC_BDCR). This bit can be disabled only by a hardware or RTC software reset, or after a failure detection on LSE. LSECSSON must be written after LSE is enabled (LSEON enabled) and ready (LSERDY set by hardware), and after the RTC clock has been selected by RTCSEL.

The CSS operates in all modes, including VBAT. It works also under system reset (excluding power-on reset). The system detects when the LSE disappears, or if it is over frequency.

If a failure is detected on the external 32 kHz oscillator, the LSE clock is no longer supplied to the RTC, but no hardware action is made to the registers.

The CSS on LSE detection event is connected to the internal tamper 3 of the TAMP peripheral. The internal tamper 3 must be enabled (ITAMP3E = 1 in TAMP_CR1 register) and the associated interrupt enabled (ITAMP3IE in TAMP_IER) to wake up from the low-power modes. This erases also the TAMP backup registers and backup SRAM unless the ITAMP3NOER = 1 in the TAMP_CR3 (see Section 52: Tamper and backup registers (TAMP) for more details).

In case of CSS on LSE detection event (LSECSSD = 1 in the RCC_BDCR), the software must disable the LSECSSON bit, stop the defective 32 kHz oscillator (disabling LSEON), and change the RTC clock source (no clock or LSI or HSE, with RTCSEL), or take actions to secure the application.

11.4.11 Clock output generation (MCO1/MCO2)

Two microcontroller clock output pins (MCO1 and MCO2) are available. A clock source can be selected for each output. The selected clock can be divided thanks to configurable prescaler (refer to Figure 55 for additional information on signal selection).

MCO1 and MCO2 outputs are controlled via MCO1PRE[3:0], MCO1[2:0], MCO2PRE[3:0], and MCO2[2:0], located in the RCC clock configuration register1 (RCC_CFGR1).

The GPIO port corresponding to each MCO pin must be programmed in alternate function mode.

The clock provided to the MCOs outputs must not exceed the maximum pin speed (refer to the product datasheet for information on the supported speed).

Another output (LSCO) allows one of the low-speed clocks (LSI, LSE) to be output onto the external LSCO pin. This output is available in Stop mode, not available in Standby and VBAT modes. The selection is controlled by the LSCSEL bit, and enabled by the LSCOEN bit in the RCC Backup domain control register (RCC_BDCR).

The MCO clock output requires the corresponding alternate function selected on the MCO pin. The LSCO pin must be left in default POR state.

11.4.12 Kernel clock selection

Some peripherals are designed to work with two different clock domains that operate asynchronously:

The benefit of having peripherals supporting these two clock domains is that the user application has more freedom to choose optimized clock frequency for the CPU, bus matrix and for the kernel part of the peripheral. The user application can thus change the bus frequency without reprogramming the peripherals. As an example, an ongoing transfer with UART is not disturbed if its APB clock is changed on-the-fly.

Table 121 shows the kernel clock that the RCC can deliver to the peripherals. Each row represents a multiplexer and the peripherals connected to its output.

Table 121. Kernel clock distribution overview

column_1• • Table 121column_3column_4column_5column_6column_7k(3) pl l3_ p_ c(3) l3_ pl k q_ ccolumn_10column_11s(4) b s clo k c ucolumn_13column_14column_15column_16column_17column_18column_19RM0481 DIO C A U L Kcolumn_21
h si k k er_ c _
lsi k c _
pl l1_ k q_ c
l2_ pl k p_ c
pl l2_ k q_ c
pl l2_r_ k c
h si4 8 k c _
h k s e c _
ls k e c _
k(5) p er_ c
k(2) pl l1_r_ c
(3) l3_r_ pl k c
si k k c er_ c _
Dis ble d a
multiplexerk s s_ c y
OCTOSPIOSPISEL1---2----0------3--
SDMMC1(6)SDMMC1SEL0---1--------------
SDMMC2(6)SDMMC2SEL0---1--------------
PLAY1PLAY1SEL--1------0----345--
FDCANFDCANSEL1--2------0-------3
CECCECSEL------------2 (7)-01---
I2C1I2C1SEL---1 (2)--1 (3)-0-23------
I2C2I2C2SEL---1 (2)--1 (3)-0-23------
I2C3I2C3SEL---1 (2)--1 (3)-0-23------
I2C4I2C4SEL-------1-0-23------
I3C1I3C1SEL---1 (2)--1 (3)-0-2------3
I3C2I3C2SEL----1 (2)--1 (3)-0-2------3
LPTIM1LPTIM1SEL--1----2 (3)-0----345--
LPTIM2LPTIM2SEL--1----2 (3)-0----345--
LPTIM3LPTIM3SEL--1----2-0----345--
LPTIM4LPTIM4SEL--1----2-0----345--
LPTIM5LPTIM5SEL--1----2-0----345--
LPTIM6LPTIM6SEL--1----2-0----345--
TIM[8:1],----------x---------
TIM[17:12] TIM12/15 &----------x---------
LPTIM2TIMICSEL-----------11-----0
RNGRNGSEL1------------023---
SAI1SAI1SEL0-1--2----------43-
SAI2SAI2SEL0-1--2----------43-
498/3766 498/3766RM0481 Rev 5

Table 121. Kernel clock distribution overview (continued)

Peripherals(1)Clock multiplexer control bitspll1_q_ckpll1_r_ck(2)pll2_p_ckpll2_q_ckpll2_r_ckpll3_p_ck(3)pll3_q_ck(3)pll3_r_ck(3)sys_ckbus clocks(4)hse_ckhsi_ker_ckcsi_ker_ckhsi48_cklse_cklsi_ckper_ck(5)AUDIOCLKDisabled
SPI/I2S1SPI1SEL0-1--2(3)----------43-
SPI/I2S2SPI2SEL0-1--2(3)----------43-
SPI/I2S3SPI3SEL0-1--2(3)----------43-
SPI4SPI4SEL---1--2(3)--0534------
SPI5SPI5SEL---1--2--0534------
SPI6SPI6SEL---1--2--0534------
USARTx
(x=1,2,3,6,10,11)
USARTxSEL---1--2(3)--0-34-5----
UARTxUARTxSEL---1--2(3)--0-34-5----
LPUART1LPUART1SEL---1--2(3)--0-34-5----
USBUSBSEL1--2(2)--2(3)------3----0
ADCDAC(8)ADCDACSEL----2---10345------
DACDACSEL--------------01---
UCPD1------------x(9)-------
ETH CLK(2)ETHCLKSEL1---------0--------
ETH (ptp)(2)ETHPTPCLKSEL213------0---------
ETH(ptp)-x------------------
RTC/AWURTCSEL----------3(10)---12--0
AllCKPERSEL----------201-----3
  1. 1. For the actual availability of the peripheral refer to the device datasheet.
  2. 2. Available only on STM32H543/553xx devices.
  3. 3. Not available on STM32H543/553xx devices.
  4. 4. The bus (APB or AHB) clocks are the bus interface clocks to whom the peripherals are connected.
  5. 5. The per_ck clock can be hse_ck, hsi_ker_ck, or csi_ker_ck, according to CKPERSEL selection.
  6. 6. With a duty cycle close to 50%, meaning that DIV[P/Q/R]x, values must be even. For SDMMCx the duty cycle must be 50% when supporting DDR.
  7. 7. Clock CSI divided by 122.
  8. 8. With a duty cycle close to 50%, meaning that DIV[P/Q/R]x, values must be even. For ADC the duty cycle must be 50% when supporting DDR.
  9. 9. Clock HSI divided by 4.
  10. 10. Clock HSE divided by RTCPRE.

To reduce the number of switches, some peripherals share the same kernel clock source, but all have their dedicated enable signal.

Peripherals dedicated to audio applications(a)

The audio peripherals generally need specific accurate frequencies, the kernel clock of the SAI or SPI/I2S can be generated by:

Peripherals dedicated to control and data transfer

Peripherals such as SPIs, I2Cs, UARTs do not need a specific kernel clock frequency but a clock fast enough to generate the correct baud rate, or the required bit clock on the serial interface. For that purpose the source can be selected among the following ones:

Note: UARTs also need the LSE clock when high baud rates are not required.

The OCTOSPI and SDMMC1/2(a) can also use a clock different from the bus interface one for more flexibility.


a. Refer to the device datasheet for the availability of the peripherals.

b. PLL3 is not available on STM32H543/553xx devices.

Clock distribution for CCB subsystem

Available only on STM32H543/553xx devices.

Figure 61. Clock distribution for CCB subsystem

Clock distribution for CCB subsystem diagram

The diagram illustrates clock gating and distribution from the RCC block (containing PKEU) to the Crypton subsystem blocks:

Clock distribution for CCB subsystem diagram

RTC/AWU clock

The rtc_ck clock source can be one of the following:

The source clock is selected by programming the RTCSEL[1:0] bits in the RCC Backup domain control register (RCC_BDCR) and the RTCPRE[5:0] bits in the RCC clock configuration register1 (RCC_CFGR1).

This selection cannot be modified without resetting the Backup domain.

If the LSE is selected as RTC clock, the RTC works normally even if the backup or the \(V_{DD}\) supply disappears.

The LSE clock is in the Backup domain, whereas the other oscillators are not. As a consequence:

The rtc_ck clock is enabled through RTCEN bit located in the RCC Backup domain control register (RCC_BDCR).

The RTC bus interface clock (APB clock) is enabled through RTCAPBEN and RTCAPBLPEN bits located in RCC_APB3ENR/LPENR registers.

Note: To read the RTC calendar register when the APB clock frequency is less than seven times the RTC clock frequency (\(F_{APB} < 7 \times F_{RTCLK}\)), the software must read the calendar time and date registers twice. The data are correct if the second read access to RTC_TR gives the same result than the first one. Otherwise a third read access must be performed.

Watchdog clocks

The RCC provides the clock for the two watchdog blocks available on the circuit. The independent watchdog (IWDG) is connected to the LSI. The window watchdog (WWDG) is connected to the APB clock.

If an independent watchdog is started by either hardware option or software access, the LSI is forced ON and cannot be disabled. After the LSI oscillator setup delay, the clock is provided to the IWDG.

Clock frequency measurement using TIMx

Most of the clock source generator frequencies can be measured by means of the input capture of TIMx.

The primary purpose of having the LSE connected to a TIMx input capture is to be able to accurately measure the HSI or CSI. This requires to use the HSI or CSI as system clock source either directly or via PLL1. The number of system clock counts between consecutive edges of the LSE signal gives a measurement of the internal clock period. Taking advantage of the high precision of LSE crystals (typically a few tens of ppm) we

can determine the internal clock frequency with the same resolution, and trim the source to compensate for manufacturing-process and/or temperature- and voltage-related frequency deviations.

The basic concept consists in providing a relative measurement (e.g. HSI/LSE ratio). The precision is therefore tightly linked to the ratio between the two clock sources. The greater the ratio is, the more accurate the measurement is.

The HSI and CSI oscillators have dedicated user-accessible calibration bits for this purpose (see RCC CSI calibration register (RCC_CSICFGR)). When HSI or CSI is used via the PLLx, the system clock can also be fine-tuned by using the fractional divider of the PLLs.

The LSI frequency can also be measured: this is useful for applications that do not have a crystal. The ultra-low-power LSI oscillator has a large manufacturing process deviation. The LSI clock frequency can be measured using the more precise HSI clock source. Using this measurement, a more accurate RTC time base timeouts (when LSI is used as the RTC clock source) and/or an IWDG timeout with an acceptable accuracy can be obtained.

11.4.13 RTC and TAMP clock

The RTCCLK clock source is used by RTC and TAMP, and can be either the HSE / 32, LSE or LSI clock. It is selected by programming the RTCSEL[1:0] bits in the RCC Backup domain control register (RCC_BDCR). This selection cannot be modified without resetting the Backup domain. The system must always be configured so as to get a PCLK frequency greater than or equal to the RTCCLK frequency for a proper operation of the RTC. The TAMP does not require any kernel clock if only the backup registers are used, with tampers in edge detection mode. All other tamper detection modes require a kernel clock (refer to Section 52: Tamper and backup registers (TAMP) for more details).

The LSE is in the Backup domain, whereas the HSE and LSI clocks are not. Consequently:

When the RTC and TAMP clock is LSE or LSI, the RTC remains clocked and functional under system reset.

11.4.14 Timer clock

The timer clock frequencies are automatically defined by hardware.

There are two cases:

11.4.15 Watchdog clock

If the independent watchdog (IWDG) is started by either hardware option or software access, the LSI oscillator is forced on and cannot be disabled. After the LSI oscillator temporization, the LSI 32 kHz clock is provided to the IWDG.

11.4.16 Peripherals clock gating and autonomous mode

Peripherals clock gating in Run mode

Each peripheral clock can be enabled by the corresponding EN bit in the RCC_AHBxENR and RCC_APBxENR registers.

When the peripheral clock is not active, read or write accesses to the peripheral registers are not supported.

The enable bit has a synchronization mechanism to create a glitch-free clock for the peripheral. After the enable bit is set, there the clock is active after 2 cycles of the peripheral bus clock.

Caution: Just after enabling the clock for a peripheral, the software must wait for these 2 clock cycles before accessing the peripheral registers.

Peripherals clock gating in Sleep mode

When a peripheral is enabled, its clock can be automatically gated off when the device is in Sleep mode, by clearing the peripheral LPEN bit in the RCC_AHBxLPENR and RCC_APBxLPENR registers. Both EN and LPEN bit of the peripheral must be set to keep the clock on in Sleep mode.

11.5 RCC security and privilege functional description

11.5.1 RCC TrustZone security protection modes

When the TrustZone security is activated by the TZEN option byte in the Flash option byte configuration register, the RCC is able to secure RCC configuration and status bits from being modified by nonsecure accesses.

This is configured through the RCC secure configuration register (RCC_SECCFGR) to prevent nonsecure access to read or modify the following features:

If SPRIV is set in the RCC privilege configuration register (RCC_PRIVCFGR), the RCC_SECCFGR register can be written only by secure and privileged access. If SPRIV is cleared in RCC_PRIVCFGR, RCC_SECCFGR can be written only by secure access, privileged or unprivileged.

RCC_SECCFGR can be read by secure, nonsecure, privileged and unprivileged access.

When a peripheral is configured as secure, its related clock, reset, clock source selection and clock enable during low-power modes control bits, are also secure in the RCC_AHBxENR, RCC_APBxENR, RCC_CCIPRx and RCC_BDCR registers.

Note: When at least one feature in RTC or TAMP is secure, the RTCPRE[5:0] in RCC_CFGR1, as well as RTCEN and RTCSEL[1:0] in RCC_BDCR, become secure.

A peripheral is secure when:

Table 122 summarizes the RCC secured bits following the security configuration bit in the RCC_SECCFGR register.

When one security configuration bit is set, some configuration and status bits are secured. The RCC registers may contain secure and nonsecure bits:

When the TrustZone security is disabled (TZEN = 0xC3), all registers are nonsecure. RCC_SECCFGR write accesses are ignored.

Table 122. RCC security configuration summary

Configuration bit in
RCC_SECCFGR
Secured bitsCorresponding
register
HSISECHSION, HSIKERON, HSIRDYRCC_CR
HSICAL[11:0], HSITRIM[6:0]RCC_HSICFGR
HSIRDYIERCC_CIER
HSIRDYIFRCC_CIFR
HSIRDYCRCC_CICR
HSESECHSEON, HSERDY, HSEBYP, HSECSSON, HSEEXTRCC_CR
HSERDYIE, HSECSSFRCC_CIER
HSERDYIF, HSECSSFRCC_CIFR
HSERDYC, HSECSSCRCC_CICR

Table 122. RCC security configuration summary (continued)

Configuration bit in
RCC_SECCFGR
Secured bitsCorresponding
register
CSISECCSISON, CSIKERON, CSISRDYRCC_CR
CSICAL[7:0], CSITRIM[5:0]RCC_CSICFGR
CSISRDYIERCC_CIER
CSISRDYIFRCC_CIFR
CSISRDYICRCC_CICR
LSISECLSION, LSIRDY, LSIPREDIV, LSCOSEL, LSCOENRCC_BDCR
LSIRDYIERCC_CIER
LSIRDYIFRCC_CIFR
LSIRDYCRCC_CICR
LSESECLSECSSON, LSECSSD, LSEDRV[1:0], LSEBYP, LSERDY, LSEON, LSEEXT, LSCOSEL, LSCOENRCC_BDCR
LSERDYIERCC_CIER
LSERDYFRCC_CIFR
LSERDYCRCC_CICR
SYSCLKSECSW[1:0], SWS[1:0], STOPWUCK, STOPKERWUCK, MCO1SEL[3:0], MCO1PRE[2:0], MCO2SEL[3:0], MCO2PRE[2:0]RCC_CFGR1
SYSTICKSEL[1:0]RCC_CCIPR4
VOS[1:0]PWR_VOSR
TIMPRERCC_CFGR1
PRESCSECHPRE[3:0], PPRE1[2:0], PPRE2[2:0], PPRE3[2:0]RCC_CFGR2
PLL1SECPLL1SRC[1:0], PLL1RGE[1:0], PLL1FRACEN, PLL1M[3:0], PLL1VCOSEL, PLL1PEN, PLL1QEN, PLL1RENRCC_PLL1CFGR
PLL1N[8:0], PLL1P[6:0], PLL1Q[6:0], PLL1R[6:0]RCC_PLL1DIVR
PLL1FRACN[12:0]RCC_PLL1FRACR
PLL1RDY, PLL1ONRCC_CR
PLL1RDYIERCC_CIER
PLL1RDYFRCC_CIFR
PLL1RDYCRCC_CICR

Table 122. RCC security configuration summary (continued)

Configuration bit in
RCC_SECCFGR
Secured bitsCorresponding
register
PLL2SECPLL2SRC[1:0], PLL2RGE[1:0], PLL2FRACEN, PLL2M[3:0],
PLL2PEN, PLL2QEN, PLL2REN, PLL2VCOSEL
RCC_PLL2CFGR
PLL2N[8:0], PLL2P[6:0], PLL2Q[6:0], PLL2R[6:0]RCC_PLL2DIVR
PLL2FRACN[12:0]RCC_PLL2FRACR
PLL2RDY, PLL2ONRCC_CR
PLL2RDYIERCC_CIER
PLL2RDYFRCC_CIFR
PLL2RDYCRCC_CICR
PLL3SEC(1)PLL3SRC[1:0], PLL3RGE[1:0], PLL3FRACEN, PLL3M[3:0],
PLL3PEN, PLL3QEN, PLL3REN, PLL3VCOSEL
RCC_PLL3CFGR
PLL3N[8:0], PLL3P[6:0], PLL3Q[6:0], PLL3R[6:0]RCC_PLL3DIVR
PLL3FRACN[12:0]RCC_PLL3FRACR
PLL3RDY, PLL3ONRCC_CR
PLL3RDYIERCC_CIER
PLL3RDYFRCC_CIFR
PLL3RDYCRCC_CICR
HSI48SEC(2)HSI48ON, HSI48RDYRCC_CR
HSI48CAL[9:0]RCC_CRRCR
HSI48RDYERCC_CIER
HSI48RDYFRCC_CIFR
HSI48RDYCRCC_CICR
IPKERSECCFGCKERPSEL[1:0]RCC_CCIPR5
RMVFSECRMVFRCC_CSR
  1. 1. PLL3SEC registers are not available on STM32H543/553xx devices.
  2. 2. TRIM field of the HSI48 is located in CRS peripheral. Be sure to secure it using CRSSEC bit in GTZC1 TZSC secure configuration register 1.

11.5.2 RCC privilege protection modes

By default, after reset, all RCC registers can be read or written with both privileged and unprivileged access except RCC privilege configuration register (RCC_PRIVCFGR) that can be written with privileged access only. RCC_PRIVCFGR can be read by secure and non secure, privileged and unprivileged access.

The SPRIV bit in RCC_PRIVCFGR can be written with secure privileged access only. This bit configures the privileged access of all RCC secure functions (as defined by RCC secure configuration register (RCC_SECCFGR) or by the GTZC for securable peripherals, or by the peripheral itself in case of TrustZone-aware peripherals).

When the SPRIV bit is set in RCC_PRIVCFGR:

The NSPRIV bit in RCC_PRIVCFGR can be written with privileged access only, secure or nonsecure. This bit configures the privileged access of all RCC nonsecure functions (as defined by RCC_SECCFGR, or by the GTZC for securable peripherals, or by the peripheral itself in case of TrustZone-aware peripherals).

When the NSPRIV bit is set in RCC_PRIVCFGR:

11.6 RCC low-power modes

The CPU DeepSleep mode can be overridden for debugging by setting the DBG_STOP or DBG_STANDBY bit in the DBGMCU_CR register.

When exiting Stop mode, the system clock is either HSI or CSI, depending on the software configuration of STOPWUCK in the RCC CPU domain clock configuration register 2 (RCC_CFGR2). The frequency (range and user trim) of the HSI is the one configured before entering Stop mode.

The other internal oscillator can be automatically woken up in addition to the one used by the system clock, to avoid waiting for the other oscillator wake-up time when the device is back in Run mode. This is done thanks to STOPKERWUCK in RCC_CFGR1.

When leaving the Standby mode, the system clock is HSI (32 MHz). The user trim is lost.

If a flash memory programming operation is ongoing, Stop or Standby mode entry is delayed until the flash memory interface access is finished. If an access to the APB domain is ongoing, Stop or Standby mode entry is delayed until the APB access is finished.

11.7 RCC interrupts

Table 123 summarizes the interrupt sources and the way to control them.

Table 123. Interrupt sources and control

Interrupt vectorInterrupt event flagDescriptionEnable control bitsInterrupt clear methodExit from Sleep modeExit from Stop and Standby modes
RCCLSIRDYFLSI readyLSIRDYIE and LSISEC = 0Set LSIRDYC to 1YesNo
LSERDYFLSE readyLSERDYIE and LSESEC = 0Set LSERDYC to 1YesNo
HSIDRYFHSI readyHSIDRYIE and HSISEC = 0Set HSIRDYC to 1YesNo
HSERDYFHSE readyHSERDYIE and HSESEC = 0Set HSERDYC to 1YesNo
CSISRDYFCSIS readyCSISRDYIE and CSISEC = 0Set CSISRDYC to 1YesNo
HSI48RDYFHSI48 readyHSI48RDYIE and HSI48SEC = 0Set HSI48RDYC to 1YesNo
PLL1RDYFPLL1 readyPLL1RDYIE and PLL1SEC = 0Set PLL1RDYC to 1YesNo
PLL2RDYFPLL2 readyPLL2RDYIE and PLL2SEC = 0Set PLL2RDYC to 1YesNo
PLL3RDYF(1)PLL3 readyPLL3RDYIE and PLL3SEC = 0Set PLL3DYC to 1YesNo
RCC_S(2)LSIRDYFLSI readyLSIRDYIE and LSISEC = 1Set LSIRDYC to 1YesNo
LSERDYFLSE readyLSERDYIE and LSESEC = 1Set LSERDYC to 1YesNo
HSIDRYFHSI readyHSIDRYIE and HSISEC = 1Set HSIRDYC to 1YesNo
HSERDYFHSE readyHSERDYIE and HSESEC = 1Set HSERDYC to 1YesNo
CSISRDYFCSIS readyCSISRDYIE and CSISEC = 1Set CSISRDYC to 1YesNo
HSI48RDYFHSI48 readyHSI48RDYIE and HSI48SEC = 1Set HSI48RDYC to 1YesNo
PLL1RDYFPLL1 readyPLL1RDYIE and PLL1SEC = 1Set PLL1RDYC to 1YesNo
PLL2RDYFPLL2 readyPLL2RDYIE and PLL2SEC = 1Set PLL2RDYC to 1YesNo
PLL3RDYF(1)PLL3 readyPLL3RDYIE and PLL3SEC = 1Set PLL3RDYC to 1YesNo

Table 123. Interrupt sources and control (continued)

Interrupt vectorInterrupt event flagDescriptionEnable control bitsInterrupt clear methodExit from Sleep modeExit from Stop and Standby modes
TAMPITAMP3F(3)LSE CSS failureLSECSSON and ITAMP3E(3) and ITAMP3IE(3)Set CITAMP3F(3) to 1YesYes
NMIHSECSSFHSE CSS failure(4)Set HSECSSC to 1YesNo
  1. 1. PLL3 is not available on STM32H543/553xx devices.
  2. 2. The RCC secure interrupt vector is used only when TrustZone is enabled.
  3. 3. The LSE CSS failure event (LSECSSD) is connected to TAMP internal tamper 3. to get the interrupt associated to this event, the internal tamper 3 must be enabled, and the internal tamper 3 interrupt must be enabled. The ITAMP3F, ITAMP3E, ITAMP3IE, and CITAMP3F bits are in the TAMP peripheral.
  4. 4. It is not possible to mask this interrupt when the security system feature is enabled (HSECSSON = 1).

11.8 RCC registers

11.8.1 RCC clock control register (RCC_CR)

Address offset: 0x000

Reset value: 0x0000 002B

31302928272625242322212019181716
Res.Res.PLL3R
DY
PLL3O
N
PLL2R
DY
PLL2O
N
PLL1R
DY
PLL1O
N
Res.Res.Res.HSEEX
T
HSECS
SON
HSEBY
P
HSERD
Y
HSEO
N
rrwrrwrrwrwrsrwrrw
1514131211109876543210
Res.Res.HSI48R
DY
HSI48
ON
Res.CSIKE
RON
CSIRD
Y
CSIONRes.Res.HSIDIV
F
HSIDIV[1:0]HSIKE
RON
HSIRD
Y
HSION
rrwrwrrwrrwrwrwrrw

Bits 31:30 Reserved, must be kept at reset value.

Bit 29 PLL3RDY: PLL3 clock ready flag

Set by hardware to indicate that the PLL3 is locked.

0: PLL3 unlocked (default after reset)

1: PLL3 locked

Note: This bit is not available on STM32H543/553xx devices. If not present, consider this bit as reserved, and keep its bits at reset value.

Bit 28 PLL3ON: PLL3 enable

Set and cleared by software to enable PLL3.

Cleared by hardware when entering Stop or Standby mode.

0: PLL3 OFF (default after reset)

1: PLL3 ON

Note: This bit is not available on STM32H543/553xx devices. If not present, consider this bit as reserved, and keep its bits at reset value.

Bit 27 PLL2RDY: PLL2 clock ready flag

Set by hardware to indicate that the PLL is locked.

0: PLL2 unlocked

1: PLL2 locked

Bit 26 PLL2ON: PLL2 enable

Set and cleared by software to enable PLL2.

Cleared by hardware when entering Stop or Standby mode.

0: PLL2 OFF (default after reset)

1: PLL2 ON

Bit 25 PLL1RDY: PLL1 clock ready flag

Set by hardware to indicate that the PLL1 is locked.

0: PLL1 unlocked (default after reset)

1: PLL1 locked

Bit 0 HSION: HSI clock enable

Set and cleared by software.

Set by hardware to force the HSI to ON when the product leaves Stop mode, if STOPWUCK = 1 or STOPKERWUCK = 1.

Set by hardware to force the HSI to ON when the product leaves Standby mode or in case of a failure of the HSE which is used as the system clock source.

This bit cannot be cleared if the HSI is used directly (via SW mux) as system clock, or if the HSI is selected as reference clock for PLL1 with PLL1ON bit set to 1).

0: HSI is OFF

1: HSI is ON (default after reset)

11.8.2 RCC HSI calibration register (RCC_HSICFGR)

Address offset: 0x010

Reset value: 0x0040 0XXX

Reset value depends on the flash memory option bytes setting.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.HSITRIM[6:0]
rwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.HSICAL[11:0]
rrrrrrrrrrrr

Bits 31:23 Reserved, must be kept at reset value.

Bits 22:16 HSITRIM[6:0]: HSI clock trimming

Set by software to adjust calibration.

HSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_HSI_OPT) to form the calibration trimming value.

HSICAL = HSITRIM+FLASH_HSI_OPT.

After a change of HSITRIM it takes one system clock cycle before the new HSITRIM value is updated

Note: The reset value of the field is 0x40.

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSICAL[11:0]: HSI clock calibration

Set by hardware by option byte loading during system reset nreset. Adjusted by software through trimming bits HSITRIM.

This field represents the sum of engineering option byte calibration and HSITRIM bits values.

11.8.3 RCC clock recovery RC register (RCC_CRRCR)

Address offset: 0x014

Reset value: 0x0000 0XXX

Reset value depends on the flash option bytes setting

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.HSI48CAL[9:0]
rrrrrrrrrr

Bits 31:10 Reserved, must be kept at reset value.

Bits 9:0 HSI48CAL[9:0]: Internal RC 48 MHz clock calibration

Set by hardware by option-byte loading during system reset NRESET. Read-only.

11.8.4 RCC CSI calibration register (RCC_CSICFGR)

Address offset: 0x018

Reset value: 0x0020 0XXX

Reset value depends on the flash option bytes setting

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CSITRIM[5:0]
rwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CSICAL[7:0]
rwrwrwrwrwrwrwrw

Bits 31:22 Reserved, must be kept at reset value.

Bits 21:16 CSITRIM[5:0]: CSI clock trimming

Set by software to adjust calibration.

CSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_CSI_OPT) to form the calibration trimming value.

CSICAL = CSITRIM+FLASH_CSI_OPT.

Note: The reset value of the field is 0x20.

Bits 15:8 Reserved, must be kept at reset value.

Bits 7:0 CSICAL[7:0]: CSI clock calibration

Set by hardware by option byte loading during system reset NRESET. Adjusted by software through trimming bits CSITRIM.

This field represents the sum of engineering option byte calibration value and CSITRIM bits value.

11.8.5 RCC clock configuration register1 (RCC_CFGR1)

Address offset: 0x01C

Reset value: 0x0000 0000

Access: 0 ≤ wait state ≤ 2; word, half-word and byte access

One or two wait states are inserted only if the access occurs during clock source switch.

31302928272625242322212019181716
MCO2SEL[2:0]MCO2PRE[3:0]MCO1SEL[2:0]MCO1PRE[3:0]Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TIMPR
E
Res.RTCPRE[5:0]STOPK
ERWU
CK
STOP
WUCK
Res.SWS[1:0]Res.SW[1:0]
rwrwrwrwrwrwrwrwrwrrrwrw

Bits 31:29 MCO2SEL[2:0]: microcontroller clock output 2

Set and cleared by software. Clock source selection may generate glitches on MCO2.

It is highly recommended to configure these bits only after reset, before enabling the external oscillators and the PLLs.

000: system clock selected (sys_ck) (default after reset)

001: PLL2 oscillator clock selected (pll2_p_ck)

010: HSE clock selected (hse_ck)

011: PLL1 clock selected (pll1_p_ck)

100: CSI clock selected (csi_ck)

101: LSI clock selected (lsi_ck)

Others: reserved

Bits 28:25 MCO2PRE[3:0]: MCO2 prescaler

Set and cleared by software to configure the prescaler of the MCO2. Modification of this prescaler may generate glitches on MCO2. It is highly recommended to change this prescaler only after reset, before enabling the external oscillators and the PLLs.

0000: prescaler disabled (default after reset)

0001: division by 1 (bypass)

0010: division by 2

0011: division by 3

0100: division by 4

...

1111: division by 15

Bits 24:22 MCO1SEL[2:0]: Microcontroller clock output 1

Set and cleared by software. Clock source selection may generate glitches on MCO1.

It is highly recommended to configure these bits only after reset, before enabling the external oscillators and the PLLs.

000: HSI clock selected (hsi_ck) (default after reset)

001: LSE oscillator clock selected (lse_ck)

010: HSE clock selected (hse_ck)

011: PLL1 clock selected (pll1_q_ck)

100: HSI48 clock selected (hsi48_ck)

Others: reserved

Bits 21:18 MCO1PRE[3:0]: MCO1 prescaler

Set and cleared by software to configure the prescaler of the MCO1. Modification of this prescaler may generate glitches on MCO1. It is highly recommended to change this prescaler only after reset, before enabling the external oscillators and the PLLs.

0000: prescaler disabled (default after reset)

0001: division by 1 (bypass)

0010: division by 2

0011: division by 3

0100: division by 4

...

1111: division by 15

Bits 17:16 Reserved, must be kept at reset value.

Bit 15 TIMPRE: timers clocks prescaler selection

This bit is set and reset by software to control the clock frequency of all the timers connected to APB1 and APB2 domains.

0: The timers kernel clock is equal to rcc_hclk1 if PPRE1 or PPRE2 corresponds to a division by 1 or 2, else it is equal to \(2 \times F_{\text{rcc\_pclk1}}\) or \(2 \times F_{\text{rcc\_pclk2}}\) (default after reset)

1: The timers kernel clock is equal to \(2 \times F_{\text{rcc\_pclk1}}\) or \(2 \times F_{\text{rcc\_pclk2}}\) if PPRE1 or PPRE2 corresponds to a division by 1, 2 or 4, else it is equal to \(4 \times F_{\text{rcc\_pclk1}}\) or \(4 \times F_{\text{rcc\_pclk2}}\)

Bit 14 Reserved, must be kept at reset value.

Bits 13:8 RTCPRE[5:0]: HSE division factor for RTC clock

Set and cleared by software to divide the HSE to generate a clock for RTC.

Caution: The software must set these bits correctly to ensure that the clock supplied to the RTC is lower than 1 MHz. These bits must be configured if needed before selecting the RTC clock source.

000000: no clock (default after reset)

000001: no clock

000010: HSE/2

000011: HSE/3

000100: HSE/4

...

111110: HSE/62

111111: HSE/63

Bit 7 STOPKERWUCK: kernel clock selection after a wakeup from system Stop

Set and reset by software to select the kernel wakeup clock from system Stop.

0: HSI selected as wakeup clock from system Stop (default after reset)

1: CSI selected as wakeup clock from system Stop

Bit 6 STOPWUCK: system clock selection after a wakeup from system Stop

Set and reset by software to select the system wakeup clock from system Stop.

The selected clock is also used as emergency clock for the clock security system (CSS) on HSE. 0: HSI selected as wakeup clock from system Stop (default after reset)

1: CSI selected as wakeup clock from system Stop

Caution: STOPWUCK must not be modified when CSS is enabled (by HSECSSON bit) and the system clock is HSE (SWS = 10) or a switch on HSE is requested (SW =10).

Bit 5 Reserved, must be kept at reset value.

Bits 4:3 SWS[1:0]: system clock switch status

Set and reset by hardware to indicate which clock source is used as system clock. 000: HSI used as system clock (hsi_ck) (default after reset).

01: CSI used as system clock (csi_ck)

10: HSE used as system clock (hse_ck)

11: PLL1 used as system clock (pll1_p_ck)

Others: reserved

Bit 2 Reserved, must be kept at reset value.

Bits 1:0 SW[1:0]: system clock and trace clock switch

Set and reset by software to select system clock and trace clock sources (sys_ck).

Set by hardware to:

-force the selection of the HSI or CSI (depending on STOPWUCK selection) when leaving a system Stop mode

-force the selection of the HSI in case of failure of the HSE when used directly or indirectly as system clock

00: HSI selected as system clock (hsi_ck) (default after reset)

01: CSI selected as system clock (csi_ck)

10: HSE selected as system clock (hse_ck)

11: PLL1 selected as system clock (pll1_p_ck for sys_ck)

Others: reserved

11.8.6 RCC CPU domain clock configuration register 2 (RCC_CFGR2)

Address offset: 0x020

Reset value: 0x0000 0000

1 or 2 wait states are inserted only if the access occurs during clock source switch.

From 0 to 15 wait states are inserted if the access occurs when the APB or AHB prescalers values update is ongoing.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.APB3DISAPB2DISAPB1DISAHB4DISRes.AHB2DISAHB1DIS
rwrwrwrwrwrw
1514131211109876543210
Res.PPRE3[2:0]Res.PPRE2[2:0]Res.PPRE1[2:0]HPRE[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:23 Reserved, must be kept at reset value.

Bit 22 APB3DIS: APB3 clock disable value.Set and cleared by software

This bit can be set to further reduce power consumption, when none of the APB3 peripherals are used and when their clocks are disabled in RCC_APB3ENR. When this bit is set, all the APB3 peripherals clocks are off.

0: APB3 clock enabled, distributed to peripherals according to their dedicated clock enable control bits

1: APB3 clock disabled

Bit 11 Reserved, must be kept at reset value.

Bits 10:8 PPRE2[2:0]: APB high-speed prescaler (APB2)

Set and reset by software to control APB high-speed clocks division factor.

The clocks are divided with the new prescaler factor from 1 to 16 APB cycles after PPRE2 write.

0xx: rcc_pclk2 = rcc_hclk1

100: rcc_pclk2 = rcc_hclk1/2

101: rcc_pclk2 = rcc_hclk1/4

110: rcc_pclk2 = rcc_hclk1/8

111: rcc_pclk2 = rcc_hclk1/16

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 PPRE1[2:0]: APB low-speed prescaler (APB1)

Set and reset by software to control the division factor of rcc_pclk1.

The clock is divided by the new prescaler factor from 1 to 16 cycles of rcc_hclk after PPRE write.

0xx: rcc_pclk1 = rcc_hclk1 (default after reset)

100: rcc_pclk1 = rcc_hclk1/2

101: rcc_pclk1 = rcc_hclk1/4

110: rcc_pclk1 = rcc_hclk1/8

111: rcc_pclk1 = rcc_hclk1/16

Bits 3:0 HPRE[3:0]: AHB prescaler

Set and reset by software to control the division factor of rcc_hclk. Changing this division ratio has an impact on the frequency of all bus matrix clocks

0xxx: rcc_hclk = sys_ck (default after reset)

1000: rcc_hclk = sys_ck/2

1001: rcc_hclk = sys_ck/4

1010: rcc_hclk = sys_ck/8

1011: rcc_hclk = sys_ck/16

1100: rcc_hclk = sys_ck/64

1101: rcc_hclk = sys_ck/128

1110: rcc_hclk = sys_ck/256

1111: rcc_hclk = sys_ck/512

Caution: Be careful when using the voltage scaling. Due to the propagation delay of the new division factor, after a prescaler factor change, and before lowering the \(V_{CORE}\) voltage, this register must be read to check that the new prescaler value has been taken into account.

Depending upon the clock source frequency and the voltage range, the software application must program a correct value in HPRE to make sure that the system frequency does not exceed the maximum frequency.

11.8.7 RCC PLL clock source selection register (RCC_PLL1CFGR)

Address offset: 0x028

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PLL1R
EN
PLL1Q
EN
PLL1P
EN
rwrwrw
1514131211109876543210
Res.Res.PLL1M[5:0]Res.Res.PLL1V
COSEL
PLL1F
RACEN
PLL1RGE[1:0]PLL1SRC[1:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:19 Reserved, must be kept at reset value.

Bit 18 PLL1REN: PLL1 DIVR divider output enable

Set and reset by software to enable the pll1_r_ck output of the PLL1.

To save power, DIVR1EN and DIVR1 bits must be set to 0 when the pll1_r_ck is not used.

This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).

0: pll1_r_ck output disabled (default after reset)

1: pll1_r_ck output enabled

Bit 17 PLL1QEN: PLL1 DIVQ divider output enable

Set and reset by software to enable the pll1_q_ck output of the PLL1.

To save power, when the pll1_q_ck output of the PLL1 is not used, the pll1_q_ck must be disabled.

This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).

0: pll1_q_ck output disabled (default after reset)

1: pll1_q_ck output enabled

Bit 16 PLL1PEN: PLL1 DIVP divider output enable

Set and reset by software to enable the pll1_p_ck output of the PLL1.

This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).

To save power, when the pll1_p_ck output of the PLL1 is not used, the pll1_p_ck must be disabled.

0: pll1_p_ck output disabled (default after reset)

1: pll1_p_ck output enabled

Bits 15:14 Reserved, must be kept at reset value.

Bits 13:8 PLL1M[5:0]: prescaler for PLL1

Set and cleared by software to configure the prescaler of the PLL1.

The hardware does not allow any modification of this prescaler when PLL1 is enabled (PLL1ON = 1 or PLL1RDY = 1).

To save power when PLL1 is not used, the value of PLL1M must be set to 0.

000000: prescaler disabled (default after reset)

000001: division by 1 (bypass)

000010: division by 2

000011: division by 3

...

100000: division by 32

...

111111: division by 63

Bits 7:6 Reserved, must be kept at reset value.

Bit 5 PLL1VCOSEL: PLL1 VCO selection

Set and reset by software to select the proper VCO frequency range used for PLL1. This bit must be written before enabling the PLL1.

0: wide VCO range: 128 to 560 MHz (default after reset)

1: medium VCO range: 150 to 420 MHz

Bit 4 PLL1FRACEN: PLL1 fractional latch enable

Set and reset by software to latch the content of FRACN1 into the sigma-delta modulator.

To latch the FRACN1 value into the sigma-delta modulator, PLL1FRACEN must be set to 0, then set to 1. The transition 0 to 1 transfers the content of FRACN1 into the modulator.

Bits 3:2 PLL1RGE[1:0]: PLL1 input frequency range

Set and reset by software to select the proper reference frequency range used for PLL1. This bit must be written before enabling the PLL1.

00: PLL1 input (ref1_ck) clock range frequency between 1 and 2 MHz (default after reset)

01: PLL1 input (ref1_ck) clock range frequency between 2 and 4 MHz

10: PLL1 input (ref1_ck) clock range frequency between 4 and 8 MHz

11: PLL1 input (ref1_ck) clock range frequency between 8 and 16 MHz

Bits 1:0 PLL1SRC[1:0]: PLL1M and PLLs clock source selection

Set and reset by software to select the PLL clock source. These bits can be written only when all PLLs are disabled.

To save power, when no PLL is used, the value of PLL1SRC must be set to '00'.

00: no clock send to PLL1M divider and PLLs (default after reset).

01: HSI selected as PLL clock (hsi_ck)

10: CSI selected as PLL clock (csi_ck)

11: HSE selected as PLL clock (hse_ck)

11.8.8 RCC PLL clock source selection register (RCC_PLL2CFGR)

Address offset: 0x02C

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PLL2RENPLL2QENPLL2PEN
rwrwrw
1514131211109876543210
Res.Res.PLL2M[5:0]Res.Res.PLL2VCOSSELPLL2FRACENPLL2RGE[1:0]PLL2SRC[1:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:19 Reserved, must be kept at reset value.

Bit 18 PLL2REN: PLL2 DIVR divider output enable

Set and reset by software to enable the pll2_r_ck output of the PLL2.

To save power, DIVR2EN and DIVR2 bits must be set to 0 when the pll2_r_ck is not used.

0: pll2_r_ck output disabled (default after reset)

1: pll2_r_ck output enabled

Bit 17 PLL2QEN: PLL2 DIVQ divider output enable

Set and reset by software to enable the pll2_q_ck output of the PLL2.

To save power, when the pll2_q_ck output of the PLL2 is not used, the pll2_q_ck must be disabled.

0: pll2_q_ck output disabled (default after reset)

1: pll2_q_ck output enabled

Bit 16 PLL2PEN: PLL2 DIVP divider output enable

Set and reset by software to enable the pll2_p_ck output of the PLL2.

To save power, when the pll2_p_ck output of the PLL2 is not used, the pll2_p_ck must be disabled.

0: pll2_p_ck output disabled (default after reset)

1: pll2_p_ck output enabled

Bits 15:14 Reserved, must be kept at reset value.

Bits 13:8 PLL2M[5:0]: prescaler for PLL2

Set and cleared by software to configure the prescaler of the PLL2.

The hardware does not allow any modification of this prescaler when PLL2 is enabled (PLL2ON = 1 or PLL2RDY = 1).

To save power when PLL2 is not used, the value of PLL2M must be set to 0.

000000: prescaler disabled (default after reset)

000001: division by 1 (bypass)

000010: division by 2

000011: division by 3

...

100000: division by 32

...

111111: division by 63

Bits 7:6 Reserved, must be kept at reset value.

Bit 5 PLL2VCOSEL: PLL2 VCO selection

Set and reset by software to select the proper VCO frequency range used for PLL2.

This bit must be written before enabling the PLL2.

0: wide VCO range: 128 to 560 MHz (default after reset)

1: medium VCO range 150 to 420 MHz

Bit 4 PLL2FRACEN: PLL2 fractional latch enable

Set and reset by software to enable the pll2_p_ck output of the PLL2.

To save power, when the pll2_p_ck output of the PLL2 is not used, the pll2_p_ck must be disabled.

0: pll2_p_ck output disabled (default after reset)

1: pll2_p_ck output enabled

Bits 3:2 PLL2RGE[1:0]: PLL2 input frequency range

Set and reset by software to select the proper reference frequency range used for PLL2.

These bits must be written before enabling the PLL2.

00: PLL2 input (ref2_ck) clock range frequency between 1 and 2 MHz (default after reset)

01: PLL2 input (ref2_ck) clock range frequency between 2 and 4 MHz

10: PLL2 input (ref2_ck) clock range frequency between 4 and 8 MHz

11: PLL2 input (ref2_ck) clock range frequency between 8 and 16 MHz

Bits 1:0 PLL2SRC[1:0]: PLL2M and PLLs clock source selection

Set and reset by software to select the PLL clock source.

These bits can be written only when all PLLs are disabled.

To save power, when no PLL is used, the value of PLL2SRC must be set to '00'.

00: no clock send to PLL2M divider and PLLs (default after reset)

01: HSI selected as PLL clock (hsi_ck)

10: CSI selected as PLL clock (csi_ck)

11: HSE selected as PLL clock (hse_ck)

11.8.9 RCC PLL clock source selection register (RCC_PLL3CFGR)

Address offset: 0x030

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access

Note: The RCC_PLL3CFGR register is not available on STM32H543/553xx devices
11.8.9 Note:column_2Bit 5 Bit 4 Bits 3:2 Bits 1:0column_4PLL2VCOSEL PLL2FRACEN disabled. PLL2RGE[1:0] PLL2SRC[1:0]column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0481
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PLL3RPLL3QPLL3P
ENENEN
rwrwrw
1514131211109876543210
Res.Res.PLL3M[5:0]Res.Res.PLL3VPLL3F
COSELRACENPLL3RGE[1:0]PLL3SRC[1:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:19 Reserved, must be kept at reset value.

Bits 1:0 PLL3SRC[1:0]: PLL3M and PLLs clock source selection

Set and reset by software to select the PLL clock source. These bits can be written only when all PLLs are disabled.

To save power, when no PLL is used, the value of PLL3SRC must be set to '00'.

00: no clock send to PLL3M divider and PLLs (default after reset)

01: HSI selected as PLL clock (hsi_ck)

10: CSI selected as PLL clock (csi_ck)

11: HSE selected as PLL clock (hse_ck)

11.8.10 RCC PLL1 dividers register (RCC_PLL1DIVR)

Address offset: 0x034

Reset value: 0x0101 0280

Access: no wait state, word, half-word and byte access

31302928272625242322212019181716
Res.PLL1R[6:0]Res.PLL1Q[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PLL1P[6:0]PLL1N[8:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:24 PLL1R[6:0]: PLL1 DIVR division factor

Set and reset by software to control the frequency of the pll1_r_ck clock.

These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).

0000000: pll1_r_ck = vco1_ck / 1

0000001: pll1_r_ck = vco1_ck / 2 (default after reset)

0000010: pll1_r_ck = vco1_ck / 3

0000011: pll1_r_ck = vco1_ck / 4

...

1111111: pll1_r_ck = vco1_ck / 128

Bit 23 Reserved, must be kept at reset value.

Bits 22:16 PLL1Q[6:0]: PLL1 DIVQ division factor

Set and reset by software to control the frequency of the pll1_q_ck clock.

These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).

0000000: pll1_q_ck = vco1_ck

0000001: pll1_q_ck = vco1_ck / 2 (default after reset)

0000010: pll1_q_ck = vco1_ck / 3

0000011: pll1_q_ck = vco1_ck / 4

...

1111111: pll1_q_ck = vco1_ck / 128

Bits 15:9 PLL1P[6:0]: PLL1 DIVP division factor

Set and reset by software to control the frequency of the pll1_p_ck clock.

These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).

Note that odd division factors are not allowed.

0000000: Not allowed

0000001: pll1_p_ck = vco1_ck / 2 (default after reset)

0000010: Not allowed

0000011: pll1_p_ck = vco1_ck / 4

...

1111111: pll1_p_ck = vco1_ck / 128

Bits 8:0 PLL1N[8:0]: Multiplication factor for PLL1VCO

Set and reset by software to control the multiplication factor of the VCO.

These bits can be written only when the PLL is disabled (PLL1ON = 0 and PLL1RDY = 0).

0x003: PLL1N = 4

0x004: PLL1N = 5

0x005: PLL1N = 6

...

0x080: PLL1N = 129 (default after reset)

...

0x1FF: PLL1N = 512

Others: reserved

11.8.11 RCC PLL1 fractional divider register (RCC_PLL1FRACR)

Address offset: 0x038

Reset value: 0x0000 0000

Access: no wait state; word and half-word access

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
PLL1FRACN[12:0]Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:3 PLL1FRACN[12:0]: fractional part of the multiplication factor for PLL1 VCO

Set and reset by software to control the fractional part of the multiplication factor of the VCO. These bits can be written at any time, allowing dynamic fine-tuning of the PLL1 VCO.

Caution: The software must set correctly these bits to insure that the VCO output frequency is in the valid frequency range, that is:

VCO output frequency = \(F_{ref1\_ck} \times (PLL1N + (PLL1FRACN / 2^{13}))\), with

To change the PLL1FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:

Bits 2:0 Reserved, must be kept at reset value.

11.8.12 RCC PLL2 dividers register (RCC_PLL2DIVR)

Address offset: 0x03C

Reset value: 0x0101 0280

Access: no wait state, word, half-word and byte access

31302928272625242322212019181716
Res.PLL2R[6:0]Res.PLL2Q[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PLL2P[6:0]PLL2N[8:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:24 PLL2R[6:0]: PLL2 DIVR division factor

Set and reset by software to control the frequency of the pll2_r_ck clock.

These bits can be written only when the PLL1 is disabled (PLL2ON = 0 and PLL2RDY = 0).

0000000: pll2_r_ck = vco2_ck

0000001: pll2_r_ck = vco2_ck / 2 (default after reset)

0000010: pll2_r_ck = vco2_ck / 3

0000011: pll2_r_ck = vco2_ck / 4

...

1111111: pll2_r_ck = vco2_ck / 128

Bit 23 Reserved, must be kept at reset value.

Bits 22:16 PLL2Q[6:0]: PLL2 DIVQ division factor

Set and reset by software to control the frequency of the pll2_q_ck clock.

These bits can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0).

0000000: pll2_q_ck = vco2_ck

0000001: pll2_q_ck = vco2_ck / 2 (default after reset)

0000010: pll2_q_ck = vco2_ck / 3

0000011: pll2_q_ck = vco2_ck / 4

...

1111111: pll2_q_ck = vco2_ck / 128

Bits 15:9 PLL2P[6:0]: PLL2 DIVP division factor

Set and reset by software to control the frequency of the pll2_p_ck clock.

These bits can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0).

0000000: pll2_p_ck = vco2_ck

0000001: pll2_p_ck = vco2_ck / 2 (default after reset)

0000010: pll2_p_ck = vco2_ck / 3

0000011: pll2_p_ck = vco2_ck / 4

...

1111111: pll2_p_ck = vco2_ck / 128

Bits 8:0 PLL2N[8:0]: Multiplication factor for PLL2VCO

Set and reset by software to control the multiplication factor of the VCO.

These bits can be written only when the PLL is disabled (PLL2ON = 0 and PLL2RDY = 0).

0x003: PLL2N = 4

0x004: PLL2N = 5

0x005: PLL2N = 6

...

0x080: PLL2N = 129 (default after reset)

...

0x1FF: PLL2N = 512

Others: reserved

11.8.13 RCC PLL2 fractional divider register (RCC_PLL2FRACR)

Address offset: 0x040

Reset value: 0x0000 0000

Access: no wait state; word and half-word access

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
PLL2FRACN[12:0]Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:3 PLL2FRACN[12:0]: fractional part of the multiplication factor for PLL2 VCO

Set and reset by software to control the fractional part of the multiplication factor of the VCO. These bits can be written at any time, allowing dynamic fine-tuning of the PLL2 VCO.

Caution: The software must set correctly these bits to insure that the VCO output frequency is between its valid frequency range, that is:

VCO output frequency = Fref2_ck x (PLL2N + (PLL2FRACN / 213)), with

To change the PLL2FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:

Bits 2:0 Reserved, must be kept at reset value.

11.8.14 RCC PLL3 dividers register (RCC_PLL3DIVR)

Address offset: 0x044

Reset value: 0x0101 0280

Access: no wait state; word, half-word and byte access

Note: The RCC_PLL3DIVR register is not available on STM32H543/553xx devices

31302928272625242322212019181716
Res.PLL3R[6:0]Res.PLL3Q[6:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PLL3P[6:0]PLL3N[8:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:24 PLL3R[6:0]: PLL3 DIVR division factor

Set and reset by software to control the frequency of the pll3_r_ck clock.

These bits can be written only when the PLL1 is disabled (PLL3ON = 0 and PLL3RDY = 0).

0000000: pll3_r_ck = vco3_ck

0000001: pll3_r_ck = vco3_ck / 2 (default after reset)

0000010: pll3_r_ck = vco3_ck / 3

0000011: pll3_r_ck = vco3_ck / 4

...

1111111: pll3_r_ck = vco3_ck / 128

Bit 23 Reserved, must be kept at reset value.

ST logo
ST logo

Bits 22:16 PLL3Q[6:0]: PLL3 DIVQ division factor

Set and reset by software to control the frequency of the pll3_q_ck clock.

These bits can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0).

0000000: pll3_q_ck = vco3_ck

0000001: pll3_q_ck = vco3_ck / 2 (default after reset)

0000010: pll3_q_ck = vco3_ck / 3

0000011: pll3_q_ck = vco3_ck / 4

...

1111111: pll3_q_ck = vco3_ck / 128

Bits 15:9 PLL3P[6:0]: PLL3 DIVP division factor

Set and reset by software to control the frequency of the pll3_p_ck clock.

These bits can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0).

0000000: pll3_p_ck = vco3_ck

0000001: pll3_p_ck = vco3_ck / 2 (default after reset)

0000010: pll3_p_ck = vco3_ck / 3

0000011: pll3_p_ck = vco3_ck / 4

...

1111111: pll3_p_ck = vco3_ck / 128

Bits 8:0 PLL3N[8:0]: Multiplication factor for PLL3VCO

Set and reset by software to control the multiplication factor of the VCO.

These bits can be written only when the PLL is disabled (PLL3ON = 0 and PLL3RDY = 0).

0x003: PLL3N = 4

0x004: PLL3N = 5

0x005: PLL3N = 6

...

0x080: PLL3N = 129 (default after reset)

...

0x1FF: PLL3N = 512

Others: reserved

11.8.15 RCC PLL3 fractional divider register (RCC_PLL3FRACR)

Address offset: 0x048

Reset value: 0x0000 0000

Access: no wait state; word and half-word access

Note: The RCC_PLL3FRACR register is not available on STM32H543/553xx devices

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
PLL3FRACN[12:0]Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:3 PLL3FRACN[12:0]: fractional part of the multiplication factor for PLL3 VCO

Set and reset by software to control the fractional part of the multiplication factor of the VCO. These bits can be written at any time, allowing dynamic fine-tuning of the PLL3 VCO.

Caution: The software must set correctly these bits to insure that the VCO output frequency is between its valid frequency range, that is:

* 128 to 560 MHz if PLL3VCOSEL = 0

* 150 to 420 MHz if PLL3VCOSEL = 1

VCO output frequency = \(F_{ref3\_ck} \times (PLL3N + (PLL3FRACN / 213))\), with

* PLL3N between 8 and 420

* PLL3FRACN can be between 0 and 213 - 1

* The input frequency \(F_{ref3\_ck}\) must be between 1 and 16 MHz.

To change the PLL3FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:

* Set the bit PLL3FRACEN to 0

* Write the new fractional value into PLL3FRACN

* Set the bit PLL3FRACEN to 1

Bits 2:0 Reserved, must be kept at reset value.

11.8.16 RCC clock source interrupt enable register (RCC_CIER)

Address offset: 0x050

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.PLL3R
DYIE
PLL2R
DYIE
PLL1R
DYIE
HSI48R
DYIE
HSERD
YIE
HSIRD
YIE
CSIRD
YIE
LSERD
YIE
LSIRD
YIE
rwrwrwrwrwrwrwrwrw

Bits 31:9 Reserved, must be kept at reset value.

Bit 8 PLL3RDYIE: PLL3 ready interrupt enable

Set and reset by software to enable/disable interrupt caused by PLL3 lock.

0: PLL3 lock interrupt disabled (default after reset)

1: PLL3 lock interrupt enabled

Note: This bit is not available on STM32H543/553xx devices. If not present, consider this bit as reserved and keep it at reset value.

Bit 7 PLL2RDYIE: PLL2 ready interrupt enable

Set and reset by software to enable/disable interrupt caused by PLL2 lock.

0: PLL2 lock interrupt disabled (default after reset)

1: PLL2 lock interrupt enabled

Bit 6 PLL1RDYIE: PLL1 ready interrupt enable

Set and reset by software to enable/disable interrupt caused by PLL1 lock.

0: PLL1 lock interrupt disabled (default after reset)

1: PLL1 lock interrupt enabled

Bit 5 HSI48RDYIE: HSI48 ready interrupt enable

Set and reset by software to enable/disable interrupt caused by the HSI48 oscillator stabilization.

0: HSI48 ready interrupt disabled (default after reset)

1: HSI48 ready interrupt enabled

Bit 4 HSERDYIE: HSE ready interrupt enable

Set and reset by software to enable/disable interrupt caused by the HSE oscillator stabilization.

0: HSE ready interrupt disabled (default after reset)

1: HSE ready interrupt enabled

Bit 3 HSIRDYIE: HSI ready interrupt enable

Set and reset by software to enable/disable interrupt caused by the HSI oscillator stabilization.

0: HSI ready interrupt disabled (default after reset)

1: HSI ready interrupt enabled

Bit 2 CSIRDYIE: CSI ready interrupt enable

Set and reset by software to enable/disable interrupt caused by the CSI oscillator stabilization.

0: CSI ready interrupt disabled (default after reset)

1: CSI ready interrupt enabled

Bit 1 LSERDYIE: LSE ready interrupt enable

Set and reset by software to enable/disable interrupt caused by the LSE oscillator stabilization.

0: LSE ready interrupt disabled (default after reset)

1: LSE ready interrupt enabled

Bit 0 LSIRDYIE: LSI ready interrupt enable

Set and reset by software to enable/disable interrupt caused by the LSI oscillator stabilization.

0: LSI ready interrupt disabled (default after reset)

1: LSI ready interrupt enabled

11.8.17 RCC clock source interrupt flag register (RCC_CIFR)

Address offset: 0x054

Reset value: 0x0000 0000

RM0481Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0HSERDYIE HSIRDYIE CSIRDYIE LSERDYIE LSIRDYIEcolumn_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.HSECSPLL2RPLL1RHSI48RHSERDHSIRDCSIRDLSERDLSIRD
SFRes.PLL3R
DYFDYFDYFDYFYFYFYFYFYF
rrrrrrrrrr
Bit 10HSECSSF: HSE clock security system interrupt flag

Bits 31:11 Reserved, must be kept at reset value.

Bit 10 HSECSSSF: HSE clock security system interrupt flag

Reset by software by writing HSECSSC bit.

Set by hardware in case of HSE clock failure.

0: no clock security interrupt caused by HSE clock failure (default after reset)

1: clock security interrupt caused by HSE clock failure

Bit 9 Reserved, must be kept at reset value.

11.8.18 RCC clock source interrupt clear register (RCC_CICR)

Address offset: 0x058

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.HSECS
SC
Res.PLL3R
DYC
PLL2R
DYC
PLL1R
DYC
HSI48R
DYC
HSERD
YC
HSIRD
YC
CSIRD
YC
LSERD
YC
LSIRD
YC
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1

Bits 31:11 Reserved, must be kept at reset value.

Bit 10 HSECSSC: HSE clock security system interrupt clear

Set by software to clear HSECSSF.

Reset by hardware when clear done.

0: HSECSSF no effect (default after reset)

1: HSECSSF cleared

Bit 9 Reserved, must be kept at reset value.

Bit 8 PLL3RDYC: PLL3 ready interrupt clear

Set by software to clear PLL3RDYF.

Reset by hardware when clear done.

0: PLL3RDYF no effect (default after reset)

1: PLL3RDYF cleared

Note: This bit is not available on STM32H543/553xx devices. If not present, consider this bit as reserved and keep it at reset value.

Bit 7 PLL2RDYC: PLL2 ready interrupt clear

Set by software to clear PLL2RDYF.

Reset by hardware when clear done.

0: PLL2RDYF no effect (default after reset)

1: PLL2RDYF cleared

Bit 6 PLL1RDYC: PLL1 ready interrupt clear

Set by software to clear PLL1RDYF.

Reset by hardware when clear done.

0: PLL1RDYF no effect (default after reset)

1: PLL1RDYF cleared

Bit 5 HSI48RDYC: HSI48 ready interrupt clear

Set by software to clear HSI48RDYF.

Reset by hardware when clear done.

0: HSI48RDYF no effect (default after reset)

1: HSI48RDYF cleared

Bit 4 HSERDYC: HSE ready interrupt clear

Set by software to clear HSERDYF.

Reset by hardware when clear done.

0: HSERDYF no effect (default after reset)

1: HSERDYF cleared

11.8.19 RCC AHB1 reset register (RCC_AHB1RSTR)

Address offset: 0x060

Reset value: 0x0000 0000

column_1column_2Bit 3 Bit 2 Bit 1 Bit 0HSIRDYC 1: HSIRDYF cleared CSIRDYC 1: CSIRDYF cleared LSERDYC 1: LSERDYF cleared LSIRDYC 1: LSIRDYF cleared Address offset: 0x060column_5column_6column_7column_8column_9column_10column_11RM0481
31302928 27 26 25 242322212019181716
Res.Res.Res.Res. Res. Res. Res. Res.Res.Res.Res.Res.ETHRS
TRes.RAMC FGRST
15141312 11 10 9 87654rw 32rw 10
FMACCORDIGPDM
CRSTRes.CRCR
ST Res. Res. Res. Res.Res.Res.Res.Res.Res.Res.GPDM
RSTA2RSTA1RST
rwrwrwrwrw
Bit 19ETHRST : ETHRST block reset
Bit 17RAMCFGRST : RAMCFG block reset

Bits 31:20 Reserved, must be kept at reset value.

Bit 18 Reserved, must be kept at reset value.

ST logo
ST logo

Bit 16 Reserved, must be kept at reset value.

Bit 15 FMACRST: FMAC block reset

Set and reset by software.

0: does not reset FMAC block (default after reset)

1: resets FMAC block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value..

Bit 14 CORDICRST: CORDIC block reset

Set and reset by software.

0: does not reset CORDIC block (default after reset)

1: resets CORDIC block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 13 Reserved, must be kept at reset value.

Bit 12 CRCRST: CRC block reset Set and reset by software.

0: does not reset CRC block (default after reset)

1: resets CRC block

Bits 11:2 Reserved, must be kept at reset value.

Bit 1 GPDMA2RST: GPDMA2 block reset

Set and reset by software.

0: does not reset GPDMA2 block (default after reset)

1: resets GPDMA2 block

Bit 0 GPDMA1RST: GPDMA1 block reset

Set and reset by software.

0: does not reset GPDMA1 block (default after reset)

1: resets GPDMA1 block

11.8.20 RCC AHB2 peripheral reset register (RCC_AHB2RSTR)

Address offset: 0x064

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.ADC3R
ST
Res.Res.CCBRS
T
SAESR
ST
PKARS
T
RNGR
ST
HASHR
ST
AESRS
T
rwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DCMI_
PSSIR
ST
DAC1R
ST
ADCRS
T
Res.GPIOIR
ST
GPIOH
RST
GPIOG
RST
GPIOF
RST
GPIOE
RST
GPIOD
RST
GPIOC
RST
GPIOB
RST
GPIOA
RST
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:25 Reserved, must be kept at reset value.

Bit 0 GPIOARST: GPIOA block reset

Set and reset by software.

0: does not reset the GPIOA block (default after reset)

1: resets the GPIOA block

11.8.21 RCC AHB4 peripheral reset register (RCC_AHB4RSTR)

Address offset: 0x06C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OCTOSPI1RSTRes.Res.Res.FMCRST
rwrw
1514131211109876543210
Res.Res.Res.SDMMC2RSTSDMMC1RSTRes.Res.Res.OTFDEC1RSTRes.Res.Res.Res.Res.Res.Res.
rwrwrw

Bits 31:21 Reserved, must be kept at reset value.

Bit 20 OCTOSPI1RST: OCTOSPI1 block reset

Set and reset by software.

0: does not reset OCTOSPI1 block (default after reset)

1: resets OCTOSPI1 block

Bits 19:17 Reserved, must be kept at reset value.

Bit 16 FMCRST: FMC block reset

Set and reset by software.

0: does not reset FMC block (default after reset)

1: resets FMC block

Bits 15:13 Reserved, must be kept at reset value.

Bit 12 SDMMC2RST: SDMMC2 and SDMMC2 delay blocks reset

Set and reset by software.

0: does not reset SDMMC2 and SDMMC2 delay blocks (default after reset)

1: resets SDMMC2 and SDMMC2 delay blocks

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 11 SDMMC1RST: SDMMC1 and SDMMC1 delay blocks reset

Set and reset by software.

0: does not reset SDMMC1 and SDMMC1 delay blocks (default after reset)

1: resets SDMMC1 and SDMMC1 delay blocks

Bits 10:8 Reserved, must be kept at reset value.

Bit 7 OTFDEC1RST: OTFDEC1 block reset

Set and reset by software.

0: does not reset OTFDEC1 block (default after reset)

1: resets OTFDEC1 block

Bits 6:0 Reserved, must be kept at reset value.

11.8.22 RCC APB1 peripheral low reset register (RCC_APB1LRSTR)

Address offset: 0x074

Reset value: 0x0000 0000

31302928272625242322212019181716
UART8
RST
UART7
RST
Res.CECRS
T
USART
11RST
USART
10RST
USART
6RST
CRSRS
T
I3C1RS
T
I2C2RS
T
I2C1RS
T
UART5
RST
UART4
RST
USART
3RST
USART
2RST
COMP
RST
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI3R
ST
SPI2R
ST
Res.Res.Res.Res.Res.TIM14
RST
TIM13
RST
TIM12
RST
TIM7R
ST
TIM6R
ST
TIM5R
ST
TIM4R
ST
TIM3R
ST
TIM2R
ST
rwrwrwrwrwrwrwrwrwrwrw

Bit 31 UART8RST: UART8 block reset

Set and reset by software.

0: does not reset the UART8 block (default after reset)

1: resets the UART8 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 30 UART7RST: UART7 block reset

Set and reset by software.

0: does not reset the UART7 block (default after reset)

1: resets the UART7 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 29 Reserved, must be kept at reset value.

Bit 28 CECRST: HDMI-CEC block reset

Set and reset by software.

0: does not reset the HDMI-CEC block (default after reset)

1: resets the HDMI-CEC block

Bit 27 USART11RST: USART11 block reset

Set and reset by software.

0: does not reset the USART11 block (default after reset)

1: resets the USART11 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 26 USART10RST: USART10 block reset

Set and reset by software.

0: does not reset the USART10 block (default after reset)

1: resets the USART10 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 14 SPI2RST: SPI2 block reset

Set and reset by software.

0: does not reset the SPI2 block (default after reset)

1: resets the SPI2 block

Bits 13:9 Reserved, must be kept at reset value.

Bit 8 TIM14RST: TIM14 block reset

Set and reset by software.

0: does not reset the TIM14 block (default after reset)

1: resets the TIM14 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 7 TIM13RST: TIM13 block reset

Set and reset by software.

0: does not reset the TIM13 block (default after reset)

1: resets the TIM13 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 6 TIM12RST: TIM12 block reset

Set and reset by software.

0: does not reset the TIM12 block (default after reset)

1: resets the TIM12 block

Bit 5 TIM7RST: TIM7 block reset

Set and reset by software.

0: does not reset the TIM7 block (default after reset)

1: resets the TIM7 block

Bit 4 TIM6RST: TIM6 block reset

Set and reset by software.

0: does not reset the TIM6 block (default after reset)

1: resets the TIM6 block

Bit 3 TIM5RST: TIM5 block reset

Set and reset by software.

0: does not reset the TIM5 block (default after reset)

1: resets the TIM5 block

Bit 2 TIM4RST: TIM4 block reset

Set and reset by software.

0: does not reset the TIM4 block (default after reset)

1: resets the TIM4 block

Bit 1 TIM3RST: TIM3 block reset

Set and reset by software.

0: does not reset the TIM3 block (default after reset)

1: resets the TIM3 block

Bit 0 TIM2RST: TIM2 block reset

Set and reset by software.

0: does not reset the TIM2 block (default after reset)

1: resets the TIM2 block

11.8.23 RCC APB1 peripheral high reset register (RCC_APB1HRSTR)

Address offset: 0x078

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.UCPD1
RST
Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.FDCAN
RST
Res.Res.Res.LPTIM2
RST
Res.DTSRS
T
Res.UART1
2RST
UART9
RST
rwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bit 23 UCPD1RST: UCPD1 block reset

Set and reset by software.

0: does not reset the UCPD1 block (default after reset)

1: resets the UCPD1 block

Bits 22:10 Reserved, must be kept at reset value.

Bit 9 FDCANRST: FDCAN1 and FDCAN2 blocks reset

Set and reset by software.

0: does not reset the FDCAN1 and FDCAN2 blocks (default after reset)

1: resets the FDCAN1 and FDCAN2 blocks

Bits 8:6 Reserved, must be kept at reset value.

Bit 5 LPTIM2RST: LPTIM2 block reset

Set and reset by software.

0: does not reset the LPTIM2 block (default after reset)

1: resets the LPTIM2 block

Bit 4 Reserved, must be kept at reset value.

Bit 3 DTSRST: DTS block reset

Set and reset by software.

0: does not reset the DTS block (default after reset)

1: resets the DTS block

Bit 2 Reserved, must be kept at reset value.

Bit 1 UART12RST: UART12 block reset

Set and reset by software.

0: does not reset the UART12 block (default after reset)

1: resets the UART12 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 0 UART9RST: UART9 block reset

Set and reset by software.

0: does not reset UART9 block (default after reset)

1: resets UART9 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

11.8.24 RCC APB2 peripheral reset register (RCC_APB2RSTR)

Address offset: 0x07C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.USBRSTRes.SAI2RSTSAI1RSTSPI6RSTSPI4RSTTIM17RSTTIM16RSTTIM15RST
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.USART1RSTTIM8RSTSPI1RSTTIM1RSTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrw

Bits 31:25 Reserved, must be kept at reset value.

Bit 24 USBRST: USB block reset

Set and reset by software.

0: does not reset the USB block (default after reset)

1: resets the USB block

Bit 23 Reserved, must be kept at reset value.

Bit 22 SAI2RST: SAI2 block reset

Set and reset by software.

0: does not reset the SAI2 block (default after reset)

1: resets the SAI2 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 21 SAI1RST: SAI1 block reset

Set and reset by software.

0: does not reset the SAI1 (default after reset)

1: resets the SAI1

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 20 SPI6RST: SPI6 block reset

Set and reset by software.

0: does not reset the SPI6 block (default after reset)

1: resets the SPI6 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

11.8.25 RCC APB3 peripheral reset register (RCC_APB3RSTR)

Address offset: 0x080

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.PLAY1
RST
PLAY1
POR
VREFR
ST
Res.Res.Res.Res.
rwrwrw
1514131211109876543210
LPTIM6
RST
LPTIM5
RST
LPTIM4
RST
LPTIM3
RST
LPTIM1
RST
Res.I3C2RS
T
I2C4RS
T
I2C3RS
T
LPUAR
T1RST
SPI5R
ST
Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrw

Bits 31:23 Reserved, must be kept at reset value.

Bit 22 PLAY1RST: PLAY1 block reset

Set and reset by software. This bit does not reset the user configuration registers and the matrix

0: does not reset the PLAY1 block (default after reset)

1: resets the PLAY1 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 21 PLAY1POR: PLAY1 block power-on-reset

Set and rest by software. This bit dgenerates a global reset including the user configuration registers and the matrix

0: does not reset the PLAY1 block (default after reset)

1: resets the PLAY1 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 20 VREFRST: VREFBUF block reset

Set and reset by software.

0: does not reset the VREFBUF block (default after reset)

1: resets the VREFBUF block

Bits 19:16 Reserved, must be kept at reset value.

Bit 15 LPTIM6RST: LPTIM6 block reset

Set and reset by software.

0: does not reset the LPTIM6 block (default after reset)

1: resets the LPTIM6 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 5 SPI5RST: SPI5 block reset

Set and reset by software.

0: does not reset the SPI5 block (default after reset)

1: resets the SPI5 block

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 4:0 Reserved, must be kept at reset value.

11.8.26 RCC AHB1 peripherals clock register (RCC_AHB1ENR)

Address offset: 0x088

Reset value: 0xD000 0100

31302928272625242322212019181716
SRAM1ENDCACHEENRes.BKPRAMENRes.Res.Res.TZSC1ENRes.Res.ETHRXENETHTXENETHENETHCKENRAMCFGGENRes.
rwrwrwrwrwrwrwrwrw
1514131211109876543210
FMACEENCORDICENRes.CRCEENRes.Res.Res.FLITFENRes.Res.Res.Res.Res.Res.GPDM A2ENGPDM A1EN
rwrwrwrwrwrw

Bit 31 SRAM1EN: SRAM1 clock enable

Set and reset by software.

0: SRAM1 clock disabled

1: SRAM1 clock enabled (default after reset)

Bit 30 DCACHEEN: DCACHE clock enable

Set and reset by software

0: DCACHE peripheral clock disabled (default after reset)

1: DCACHE peripheral clock enabled

Bit 29 Reserved, must be kept at reset value.

Bit 28 BKPRAMEN: BKPRAM clock enable

Set and reset by software

0: BKPRAM peripheral clock disabled (default after reset)

1: BKPRAM peripheral clock enabled

Bits 27:25 Reserved, must be kept at reset value.

Bit 24 TZSC1EN: TZSC1 clock enable

Set and reset by software

0: TZSC1 peripheral clock disabled (default after reset)

1: TZSC1 peripheral clock enabled

Bits 23:22 Reserved, must be kept at reset value.

Bit 12 CRCEN: CRC clock enable

Set and reset by software.

0: CRC peripheral clock disabled (default after reset)

1: CRC peripheral clock enabled

Bits 11:9 Reserved, must be kept at reset value.

Bit 8 FLITFEN: Flash interface clock enable

Set and reset by software.

0: FLASH interface clock disabled

1: FLASH interface clock enabled (default after reset)

Bits 7:2 Reserved, must be kept at reset value.

Bit 1 GPDMA2EN: GPDMA2 clock enable

Set and reset by software.

0: GPDMA2 peripheral clock disabled (default after reset)

1: GPDMA2 peripheral clock enabled

Bit 0 GPDMA1EN: GPDMA1 clock enable

Set and reset by software.

0: GPDMA1 peripheral clock disabled (default after reset)

1: GPDMA1 peripheral clock enabled

11.8.27 RCC AHB2 peripheral clock register (RCC_AHB2ENR)

Address offset: 0x08C

Reset value: 0xC000 0000

31302928272625242322212019181716
SRAM3ENSRAM2ENRes.Res.Res.Res.Res.ADC3ENRes.Res.CCBENSAESENPKAENRNGENHASHENAESEN
rwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DCMI_PSSIENDAC1ENADCENRes.GPIOIENGPIOHENGPIOGENGPIOFENGPIOEENGPIODENGPIOCENGPIOBENGPIOAEN
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 SRAM3EN: SRAM3 clock enable

Set and reset by software.

0: SRAM3 clock disabled

1: SRAM3 clock enabled (default after reset)

Bit 30 SRAM2EN: SRAM2 clock enable

Set and reset by software.

0: SRAM2 clock disabled

1: SRAM2 clock enabled (default after reset)

Bits 29:25 Reserved, must be kept at reset value.

11.8.28 RCC AHB4 peripheral clock register (RCC_AHB4ENR)

Address offset: 0x094

Reset value: 0x0000 0000

RM0481 Bit 5SPI5RST: SPI5 block reset
31 30 292827 26 25 24 23 22 21 20 19 18 17 16
Res. Res. Res.Res.Res. Res. Res. Res. Res. Res. Res. OCTOS
PI1EN Res. Res. Res. FMCE N rw rw
15 14 131211 10 9 8 7 6 5 4 3 2 1 0
Res. Res. Res.SDMMSDMM
C1EN Res. Res. Res. OTFDE
C2ENC1EN Res. Res. Res. Res. Res. Res. Res.
rwrw rw
Bit 20OCTOSPI1EN: OCTOSPI1 clock enable
Bit 16FMCEN: FMC clock enable
Bit 12SDMMC2EN: SDMMC2 and SDMMC2 delay peripheral clock enable
Bit 11SDMMC1EN: SDMMC1 and SDMMC1 delay peripheral clock enable reset
Bit 7OTFDEC1EN: OTFDEC1 clock enable

Bits 31:21 Reserved, must be kept at reset value.

Bits 19:17 Reserved, must be kept at reset value.

Bits 15:13 Reserved, must be kept at reset value.

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 10:8 Reserved, must be kept at reset value.

Bits 6:0 Reserved, must be kept at reset value.

11.8.29 RCC APB1 peripheral clock register (RCC_APB1LENR)

Address offset: 0x09C

Reset value: 0x0000 0000

31302928272625242322212019181716
UART8
EN
UART7
EN
Res.CECENUSART
11EN
USART
10EN
USART
6EN
CRSENI3C1ENI2C2ENI2C1ENUART5
EN
UART4
EN
USART
3EN
USART
2EN
COMP
EN
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI3E
N
SPI2E
N
Res.Res.WWDG
EN
Res.Res.TIM14E
N
TIM13E
N
TIM12E
N
TIM7E
N
TIM6E
N
TIM5E
N
TIM4E
N
TIM3E
N
TIM2E
N
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 UART8EN: UART8 clock enable

Set and reset by software.

0: UART8 peripheral clock disabled (default after reset)

1: UART8 peripheral clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 30 UART7EN: UART7 clock enable

Set and reset by software.

0: UART7 peripheral clock disabled (default after reset)

1: UART7 peripheral clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 29 Reserved, must be kept at reset value.

Bit 28 CECEN: HDMI-CEC clock enable

Set and reset by software.

0: HDMI-CEC peripheral clock disabled (default after reset)

1: HDMI-CEC peripheral clock enabled

Bit 27 USART11EN: USART11 clock enable

0: USART11 peripheral clock disabled (default after reset)

1: USART11 peripheral clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 26 USART10EN: USART10 clock enable

Set and reset by software.

0: USART10 peripheral clock disabled (default after reset)

1: USART10 peripheral clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

11.8.30 RCC APB1 peripheral clock register (RCC_APB1HENR)

Address offset: 0x0A0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.UCPD1
EN
Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.FDCAN
EN
Res.Res.Res.LPTIM2
EN
Res.DTSENRes.UART1
2EN
UART9
EN
rwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 22:10 Reserved, must be kept at reset value.

Bits 8:6 Reserved, must be kept at reset value.

Bit 4 Reserved, must be kept at reset value.

Bit 2 Reserved, must be kept at reset value.

Bit 1 UART12EN: UART12 clock enable

Set and reset by software.

0: UART12 peripheral clock disabled (default after reset)

1: UART12 peripheral clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 0 UART9EN: UART9 clock enable

Set and reset by software.

0: UART9 peripheral clock disabled (default after reset)

1: resets UART9 peripheral clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

11.8.31 RCC APB2 peripheral clock register (RCC_APB2ENR)

Address offset: 0x0A4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.USBENRes.SAI2ENSAI1ENSPI6ENSPI4ENTIM17ENTIM16ENTIM15EN
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.USART1ENTIM8ENSPI1ENTIM1ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrw

Bits 31:25 Reserved, must be kept at reset value.

Bit 24 USBEN: USB clock enable

Set and reset by software.

0: USB peripheral clock disabled (default after reset)

1: USB peripheral clock enabled

Bit 23 Reserved, must be kept at reset value.

Bit 22 SAI2EN: SAI2 clock enable

Set and cleared by software.

0: SAI2 clock disabled

1: SAI2 clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 21 SAI1EN: SAI1 clock enable

Set and reset by software.

0: SAI1 peripheral clock disabled (default after reset)

1: SAI1 peripheral clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

11.8.32 RCC APB3 peripheral clock register (RCC_APB3ENR)

Address offset: 0x0A8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.PLAY1
EN
PLAY1
APBEN
RTCAP
BEN
VREFB
UFEN
Res.Res.Res.Res.
rwrwrwrw
1514131211109876543210
LPTIM6
EN
LPTIM5
EN
LPTIM4
EN
LPTIM3
EN
LPTIM1
EN
Res.I3C2ENI2C4ENI2C3ENLPUAR
T1EN
SPI5E
N
Res.Res.Res.SBSENRes.
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bit 23 PLAY1EN: PLAY1 clock enable

Set and reset by software.

0: PLAY1 clock disabled (default after reset)

1: PLAY1 clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 22 PLAY1APBEN: Clock enable for PLAY1 configuration

Set and reset by software.

0: PLAY1 clock disabled (default after reset)

1: PLAY1 clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 21 RTCAPBEN: RTC APB interface clock enable

Set and reset by software.

0: RTC APB interface clock disabled (default after reset)

1: RTC APB interface clock enabled

Bit 20 VREFBUFEN: VREFBUF clock enable

Set and reset by software.

0: VREFBUF peripheral clock disabled (default after reset)

1: VREFBUF peripheral clock enabled

Bits 19:16 Reserved, must be kept at reset value.

Bit 15 LPTIM6EN: LPTIM6 clock enable

Set and reset by software.

0: LPTIM6 peripheral clock disabled (default after reset)

1: LPTIM6 peripheral clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 5 SPI5EN: SPI5 clock enable

Set and reset by software.

0: SPI5 peripheral clock disabled (default after reset)

1: SPI5 peripheral clock enabled

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 4:2 Reserved, must be kept at reset value.

Bit 1 SBSEN: SBS clock enable

Set and reset by software.

0: SBS peripheral clock disabled (default after reset)

1: SBS peripheral clock enabled

Bit 0 Reserved, must be kept at reset value.

11.8.33 RCC AHB1 sleep clock register (RCC_AHB1LPENR)

Address offset: 0x0B0

Reset value: 0xFFFF FFFF (for STM32H543/553xx)

Reset value: 0xF13A D103 (for STM32H562/563/573xx)

Reset value: 0xF102 1103 (for STM32H523/533xx)

31302928272625242322212019181716
SRAM1
LPEN
DCAC
HELPE
N
ICACH
ELPEN
BKPRA
MLPEN
Res.Res.Res.TZSC1
LPEN
Res.Res.ETHRX
LPEN
ETHTX
LPEN
ETHLP
EN
ETHCK
LPEN
RAMC
FGLPE
N
Res.
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FMACL
PEN
CORDI
CLPEN
Res.CRCLP
EN
Res.Res.Res.FLITFL
PEN
Res.Res.Res.Res.Res.Res.GPDM
A2LPE
N
GPDM
A1LPE
N
rwrwrwrwrwrw

Bit 31 SRAM1LPEN: SRAM1 clock enable during Sleep mode

Set and reset by software

0: SRAM1 peripheral clock disabled during Sleep mode

1: SRAM1 peripheral clock enabled during Sleep mode (default after reset)

Bit 30 DCACHELPEN: DCACHE clock enable during Sleep mode

Set and reset by software

0: DCACHE peripheral clock disabled during Sleep mode

1: DCACHE peripheral clock enabled during Sleep mode (default after reset)

Bit 29 ICACHELPEN: ICACHE clock enable during Sleep mode

Set and reset by software

0: ICACHE peripheral clock disabled during Sleep mode

1: ICACHE peripheral clock enabled during Sleep mode (default after reset)

Bit 28 BKPRAMLPEN: BKPRAM clock enable during Sleep mode

Set and reset by software

0: BKPRAM peripheral clock disabled during Sleep mode

1: BKPRAM peripheral clock enabled during Sleep mode (default after reset)

Bits 27:25 Reserved, must be kept at reset value.

Bit 24 TZSC1LPEN: TZSC1 clock enable during Sleep mode

Set and reset by software

0: TZSC1 peripheral clock disabled during Sleep mode

1: TZSC1 peripheral clock enabled during Sleep mode (default after reset)

Bits 23:22 Reserved, must be kept at reset value.

Bit 21 ETHRXLPEN: ETHRX clock enable during Sleep mode

Set and reset by software

0: ETHRX clock disabled during Sleep mode

1: ETHRX clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 20 ETHTXLPEN: ETHTX clock enable during Sleep mode

Set and reset by software

0: ETHTX clock disabled during Sleep mode

1: ETHTX clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 19 ETHLPEN: ETH clock enable during Sleep mode

Set and reset by software

0: ETH peripheral clock disabled during Sleep mode

1: ETH peripheral clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 18 ETHCKLPEN: ETH internal clock enable during Sleep mode

Set and reset by software

0: ETH internal clock disabled during Sleep mode

1: ETH internal clock enabled during Sleep mode (default after reset)

Note: This bit is only available on STM32H543/553xx devices. If not present, consider this bit as reserved, and keep its bits at reset value.

Bit 17 RAMCFGLPEN: RAMCFG clock enable during Sleep mode

Set and reset by software.

0: RAMCFG peripheral clock disabled during Sleep mode

1: RAMCFG peripheral clock enabled during Sleep mode (default after reset)

Bit 16 Reserved, must be kept at reset value.

Bit 15 FMACLPEN: FMAC clock enable during Sleep mode

Set and reset by software.

0: FMAC peripheral clock disabled during Sleep mode

1: FMAC peripheral clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 14 CORDICLPEN: CORDIC clock enable during Sleep mode

Set and reset by software.

0: CORDIC peripheral clock disabled during Sleep mode

1: CORDIC peripheral clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 13 Reserved, must be kept at reset value.

Bit 12 CRCLPEN: CRC clock enable during Sleep mode

Set and reset by software.

0: CRC peripheral clock disabled during Sleep mode

1: CRC peripheral clock enabled during Sleep mode (default after reset)

Bits 11:9 Reserved, must be kept at reset value.

Bit 8 FLITFLPEN: Flash interface (FLITF) clock enable during Sleep mode

Set and reset by software.

0: FLITF peripheral clock disabled during Sleep mode

1: FLITF peripheral clock enabled during Sleep mode (default after reset)

Bits 7:2 Reserved, must be kept at reset value.

Bit 1 GPDMA2LPEN: GPDMA2 clock enable during Sleep mode

Set and reset by software.

0: GPDMA2 peripheral clock disabled during Sleep mode

1: GPDMA2 peripheral clock enabled during Sleep mode (default after reset)

Bit 0 GPDMA1LPEN: GPDMA1 clock enable during Sleep mode

Set and reset by software.

0: GPDMA1 peripheral clock disabled during Sleep mode

1: GPDMA1 peripheral clock enabled during Sleep mode (default after reset)

11.8.34 RCC AHB2 sleep clock register (RCC_AHB2LPENR)

Address offset: 0x0B4

Reset value: 0xFFFF FFFF (for STM32H543/553xx)

Reset value: 0xC01F 1DFF (for STM32H562/563/573xx)

Reset value: 0xC01F 1CFF (for STM32H523/533xx)

31302928272625242322212019181716
SRAM3LPENSRAM2LPENRes.Res.Res.Res.Res.ADC3LPENRes.Res.CCBLPENSAESLPENPKALPENRNGLPENHASHLPENAESLPEN
rwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DCMI_PSSILPENDAC1LPENADCLPENRes.GPIOILPENGPIOHLPENGPIOGLPENGPIOFLPENGPIOELPENGPIODLPENGPIOCLPENGPIOBPENGPIOALPEN
rwrwrwrwrwrwrwrwrwrwrwrw

11.8.35 RCC AHB4 sleep clock register (RCC_AHB4LPENR)

Address offset: 0x0BC

Reset value: 0xFFFF FFFF (for STM32H543/553xx)

Reset value: 0x0011 1880 (for STM32H562/563/573xx)

Reset value: 0x0011 0880 (for STM32H523/533xx)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OCTOSPI1LPENRes.Res.Res.FMCLPEN
rwrw
1514131211109876543210
Res.Res.Res.SDMMC2LPENSDMMC1LPENRes.Res.Res.OTFDEC1LPENRes.Res.Res.Res.Res.Res.Res.
rwrwrw

Bits 31:21 Reserved, must be kept at reset value.

Bits 19:17 Reserved, must be kept at reset value.

Bits 15:13 Reserved, must be kept at reset value.

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 10:8 Reserved, must be kept at reset value.

Bits 6:0 Reserved, must be kept at reset value.

11.8.36 RCC APB1 sleep clock register (RCC_APB1LLPENR)

Address offset: 0x0C4

Reset value: 0xFFFF FFFF (for STM32H543/553xx)

Reset value: 0xDFFE C9FF (for STM32H562/563/573xx)

Reset value: 0x13FE C87F (for STM32H523/533xx)

31302928272625242322212019181716
UART8
LPEN
UART7
LPEN
Res.CECLP
EN
USART
11LPE
N
USART
10LPE
N
USART
6LPEN
CRSLP
EN
I3C1LP
EN
I2C2LP
EN
I2C1LP
EN
UART5
LPEN
UART4
LPEN
USART
3LPEN
USART
2LPEN
COMP
LPEN
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI3LP
EN
SPI2LP
EN
Res.Res.WWDG
LPEN
Res.Res.TIM14L
PEN
TIM13L
PEN
TIM12L
PEN
TIM7LP
EN
TIM6LP
EN
TIM5LP
EN
TIM4LP
EN
TIM3LP
EN
TIM2LP
EN
rwrwrwrwrwrwrwrwrwrwrwrw

11.8.37 RCC APB1 sleep clock register (RCC_APB1HLPENR)

Address offset: 0x0C8

Reset value: 0xFFFF FFFF (for STM32H543/553xx)

Reset value: 0x4080 022B (for STM32H562/563/573xx)

Reset value: 0x4080 0228 (for STM32H523/533xx)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.UCPD1
LPEN
Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.FDCAN
LPEN
Res.Res.Res.LPTIM2
LPEN
Res.DTSLP
EN
Res.UART1
2LPEN
UART9
LPEN
rwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bit 23 UCPD1LPEN: UCPD1 clock enable during Sleep mode

Set and reset by software.

0: UCPD peripheral clock disabled during Sleep mode

1: UCPD peripheral clock enabled during Sleep mode (default after reset)

Bits 22:10 Reserved, must be kept at reset value.

Bit 9 FDCANLPEN: FDCAN1 and FDCAN2 peripheral clock enable during Sleep mode

Set and reset by software.

0: FDCAN1 and FDCAN2 peripheral clock disabled during Sleep mode

1: FDCAN1 and FDCAN2 peripheral clock enabled during Sleep mode (default after reset)

Bits 8:6 Reserved, must be kept at reset value.

Bit 5 LPTIM2LPEN: LPTIM2 clock enable during Sleep mode

Set and reset by software.

0: LPTIM2 peripheral clock disabled during Sleep mode

1: LPTIM2 peripheral clock enabled during Sleep mode (default after reset)

Bit 4 Reserved, must be kept at reset value.

Bit 3 DTSLPEN: DTS clock enable during Sleep mode

Set and reset by software.

0: DTS peripheral clock disabled during Sleep mode

1: DTS peripheral clock enabled during Sleep mode (default after reset)

Bit 2 Reserved, must be kept at reset value.

Bit 1 UART12LPEN: UART12 clock enable during Sleep mode

Set and reset by software.

0: UART12 peripheral clock disabled during Sleep mode

1: UART12 peripheral clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 0 UART9LPEN: UART9 clock enable during Sleep mode

Set and reset by software.

0: UART9 peripheral clock disabled during Sleep mode

1: resets UART9 peripheral clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.e.

11.8.38 RCC APB2 sleep clock register (RCC_APB2LPENR)

Address offset: 0x0CC

Reset value: 0xFFFF FFFF (for STM32H543/553xx)

Reset value: 0x017F 7800 (for STM32H562/563/573xx)

Reset value: 0x0109 7800 (for STM32H523/533xx)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.USBLP
EN
Res.SAI2LP
EN
SAI1LP
EN
SPI6LP
EN
SPI4LP
EN
TIM17L
PEN
TIM16L
PEN
TIM15L
PEN
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.USART
1LPEN
TIM8LP
EN
SPI1LP
EN
TIM1LP
EN
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrw

Bits 31:25 Reserved, must be kept at reset value.

Bit 24 USBLPEN: USB clock enable during Sleep mode

Set and reset by software.

0: USB peripheral clock disabled during Sleep mode

1: USB peripheral clock enabled during Sleep mode (default after reset)

Bit 23 Reserved, must be kept at reset value.

Bit 22 SAI2LPEN: SAI2 clock enable during Sleep mode

Set and reset by software.

0: SAI2 peripheral clock disabled during Sleep mode

1: SAI2 peripheral clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 21 SAI1LPEN: SAI1 clock enable during Sleep mode

Set and reset by software.

0: SAI1 peripheral clock disabled during Sleep mode

1: SAI1 peripheral clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 10:0 Reserved, must be kept at reset value.

11.8.39 RCC APB3 sleep clock register (RCC_APB3LPENR)

Address offset: 0x0D0

Reset value: 0xFFFF FFFF (for STM32H543/553xx)

Reset value: 0x0030 F9E2 (for STM32H562/563/573xx)

Reset value: 0x0030 FAE2 (for STM32H523/533xx)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.PLAY1
LPEN
Res.RTCAP
BLPEN
VREFL
PEN
Res.Res.Res.Res.
rwrwrw
1514131211109876543210
LPTIM6
LPEN
LPTIM5
LPEN
LPTIM4
LPEN
LPTIM3
LPEN
LPTIM1
LPEN
Res.I3C2LP
EN
I2C4LP
EN
I2C3LP
EN
LPUAR
T1LPE
N
SPI5LP
EN
Res.Res.Res.SBSLP
EN
Res.
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bit 23 PLAY1LPEN: PLAY1 clock enable during Sleep mode

Set and reset by software.

0: PLAY1 clock disabled during Sleep mode

1: PLAY1 clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 22 Reserved, must be kept at reset value.

Bit 21 RTCAPBLPEN: RTC APB interface clock enable during Sleep mode

Set and reset by software.

0: RTC APB interface clock disabled during Sleep mode

1: RTC APB interface clock enabled during Sleep mode (default after reset)

Bit 20 VREFLPEN: VREFBUF clock enable during Sleep mode

Set and reset by software.

0: VREFBUF peripheral clock disabled during Sleep mode

1: VREFBUF peripheral clock enabled during Sleep mode (default after reset)

Bits 19:16 Reserved, must be kept at reset value.

Bit 15 LPTIM6LPEN: LPTIM6 clock enable during Sleep mode

Set and reset by software.

0: LPTIM6 peripheral clock disabled during Sleep mode

1: LPTIM6 peripheral clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 5 SPI5LPEN: SPI5 clock enable during Sleep mode

Set and reset by software.

0: SPI5 peripheral clock disabled during Sleep mode

1: SPI5 peripheral clock enabled during Sleep mode (default after reset)

Note: This bit is only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 4:2 Reserved, must be kept at reset value.

Bit 1 SBSLPEN: SBS clock enable during Sleep mode

Set and reset by software.

0: SBS peripheral clock disabled during Sleep mode

1: SBS peripheral clock enabled during Sleep mode (default after reset)

Bit 0 Reserved, must be kept at reset value.

11.8.40 RCC kernel clock configuration register (RCC_CCIPR1)

Address offset: 0x0D8

Reset value: 0x0000 0000

31302928272625242322212019181716
TIMICS
EL
Res.USART10SEL[2:0]UART9SEL[2:0]UART8SEL[2:0]UART7SEL[2:0]USART6SEL[2:1]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
USART
6SEL[0]
UART5SEL[2:0]UART4SEL[2:0]USART3SEL[2:0]USART2SEL[2:0]USART1SEL[2:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 TIMICSEL: TIM12, TIM15 and LPTIM2 input capture source selection

Set and reset by software.

0: No internal clock available for timers input capture (default after reset)

1: hsi_ker_ck/1024, hsi_ker_ck/8 and csi_ker_ck/128 selected for timers input capture

Bit 30 Reserved, must be kept at reset value.

Bits 29:27 USART10SEL[2:0]: USART10 kernel clock source selection

000: rcc_pclk1 selected as kernel clock (default after reset)

001: pll2_q_ck selected as kernel clock

010: pll3_q_ck selected as kernel clock

011: hsi_ker_ck selected as kernel clock

100: csi_ker_ck selected as kernel clock

101: lse_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 26:24 UART9SEL[2:0]: UART9 kernel clock source selection

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 23:21 UART8SEL[2:0]: UART8 kernel clock source selection

Bits 20:18 UART7SEL[2:0]: UART7 kernel clock source selection

Bits 17:15 USART6SEL[2:0]: USART6 kernel clock source selection

Bits 14:12 UART5SEL[2:0]: UART5 kernel clock source selection

000: rcc_pclk1 selected as kernel clock (default after reset)

001: pll2_q_ck selected as kernel clock

010:

– pll3_q_ck selected as kernel clock for STM32H523/533/562/563/573xx devices

– reserved for STM32H543/553xx devices

011: hsi_ker_ck selected as kernel clock

100: csi_ker_ck selected as kernel clock

101: lse_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

Bits 11:9 UART4SEL[2:0]: UART4 kernel clock source selection

000: rcc_pclk1 selected as kernel clock (default after reset)

001: pll2_q_ck selected as kernel clock

010:

– pll3_q_ck selected as kernel clock for STM32H523/533/562/563/573xx devices

– reserved for STM32H543/553xx devices

011: hsi_ker_ck selected as kernel clock

100: csi_ker_ck selected as kernel clock

101: lse_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

Bits 8:6 USART3SEL[2:0]: USART3 kernel clock source selection

Set and reset by software.

000: rcc_pclk1 selected as kernel clock (default after reset)

001: pll2_q_ck selected as kernel clock

010:

– pll3_q_ck selected as kernel clock for STM32H523/533/562/563/573xx devices

– reserved for STM32H543/553xx devices

011: hsi_ker_ck selected as kernel clock

100: csi_ker_ck selected as kernel clock

101: lse_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

Bits 5:3 USART2SEL[2:0]: USART2 kernel clock source selection

Set and reset by software.

000: rcc_pclk1 selected as kernel clock (default after reset)

001: pll2_q_ck selected as kernel clock

010:

– pll3_q_ck selected as kernel clock for STM32H523/533/562/563/573xx devices

– reserved for STM32H543/553xx devices

011: hsi_ker_ck selected as kernel clock

100: csi_ker_ck selected as kernel clock

101: lse_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

Bits 2:0 USART1SEL[2:0]: USART1 kernel clock source selection

Set and reset by software.

000: rcc_pclk2 selected as kernel clock (default after reset)

001: pll2_q_ck selected as kernel clock

010:

– pll3_q_ck selected as kernel clock for STM32H523/533/562/563/573xx devices

– reserved for STM32H543/553xx devices

011: hsi_ker_ck selected as kernel clock

100: csi_ker_ck selected as kernel clock

101: lse_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

11.8.41 RCC kernel clock configuration register (RCC_CCIPR2)

Address offset: 0x0DC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.LPTIM6SEL[2:0]Res.LPTIM5SEL[2:0]Res.LPTIM4SEL[2:0]Res.LPTIM3SEL[2:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.LPTIM2SEL[2:0]Res.LPTIM1SEL[2:0]Res.UART12SEL[2:0]Res.USART11SEL[2:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 LPTIM6SEL[2:0]: LPTIM6 kernel clock source selection

000: rcc_pclk3 selected as kernel clock (default after reset)

001: pll2_p_ck selected as kernel clock

010: pll3_r_ck selected as kernel clock

011: lse_ck selected as kernel clock

100: lsi_ck selected as kernel clock

101: per_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 27 Reserved, must be kept at reset value.

Bits 26:24 LPTIM5SEL[2:0]: LPTIM5 kernel clock source selection

000: rcc_pclk3 selected as kernel clock (default after reset)

001: pll2_p_ck selected as kernel clock

010: pll3_r_ck selected as kernel clock

011: lse_ck selected as kernel clock

100: lsi_ck selected as kernel clock

101: per_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 23 Reserved, must be kept at reset value.

Bits 22:20 LPTIM4SEL[2:0]: LPTIM4 kernel clock source selection

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 19 Reserved, must be kept at reset value.

Bits 18:16 LPTIM3SEL[2:0]: LPTIM3 kernel clock source selection

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 15 Reserved, must be kept at reset value.

Bits 14:12 LPTIM2SEL[2:0]: LPTIM2 kernel clock source selection

Bit 11 Reserved, must be kept at reset value.

Bits 10:8 LPTIM1SEL[2:0]: LPTIM1 kernel clock source selection

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 UART12SEL[2:0]: UART12 kernel clock source selection

Set and reset by software.

000: rcc_pclk1 selected as kernel clock (default after reset)

001: pll2_q_ck selected as kernel clock

010: pll3_q_ck selected as kernel clock

011: hsi_ker_ck selected as kernel clock

100: csi_ker_ck selected as kernel clock

101: lse_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bit 3 Reserved, must be kept at reset value.

Bits 2:0 USART11SEL[2:0]: USART11 kernel clock source selection

Set and reset by software.

000: rcc_pclk1 selected as kernel clock (default after reset)

001: pll2_q_ck selected as kernel clock

010: pll3_q_ck selected as kernel clock

011: hsi_ker_ck selected as kernel clock

100: csi_ker_ck selected as kernel clock

101: lse_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

11.8.42 RCC kernel clock configuration register (RCC_CCIPR3)

Address offset: 0x0E0

Reset value: 0x0000 0000 (STM32H523/533/6x/573xx devices)

Reset value: 0x0010 0000 (STM32H543/553xx devices)

31302928272625242322212019181716
PLAY1SEL[2:0]Res.Res.LPUART1SEL[2:0]PLAY1DIVSEL[3:0]Res.Res.SPI6SEL[2:1]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI6SEL[0]SPI5SEL[2:0]SPI4SEL[2:0]SPI3SEL[2:0]SPI2SEL[2:0]SPI1SEL[2:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:29 PLAY1SEL[2:0]: PLAY1 kernel clock source selection

000: rcc_pclk3 s elected as kernel clock (default after reset)

001: pll2_p_ck selected as kernel clock

011: lse_ck selected as kernel clock

100: lsi_ck selected as kernel clock

101: per_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 28:27 Reserved, must be kept at reset value.

Bits 26:24 LPUART1SEL[2:0]: LPUART1 kernel clock source selection

Bits 23:20 PLAY1DIVSEL[3:0]: \(2^N\) divider with N= 0 to 15

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 19:18 Reserved, must be kept at reset value.

Bits 17:15 SPI6SEL[2:0]: SPI6 kernel clock source selection

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 14:12 SPI5SEL[2:0]: SPI5 kernel clock source selection

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

11.8.43 RCC kernel clock configuration register (RCC_CCIPR4)

Address offset: 0x0E4

Reset value: 0x0000 0000

31302928272625242322212019181716
ETHPTPDIV[3:0]I3C2SEL[1:0]I3C1SEL[1:0]I2C4SEL[1:0]I2C3SEL[1:0]I2C2SEL[1:0]I2C1SEL[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.ETHCL
KSEL
SDMM
C2SEL
SDMM
C1SEL
USBSEL[1:0]SYSTICKSEL[1:
0]
OCTOSPI1SEL[
1:0]
rwrwrwrwrwrwrwrwrw

Bits 31:28 ETHPTPDIV[3:0]: ETH PTP clock division

This bitfield selects the division factor of the PTP clock.

0000: Divided by 1 (default after reset)

0001: Divided by 2

...

1110: Divided by 15

1111: Divided by 16

Note: This bit is only available on STM32H543/553xx devices. If not present, consider this bit as reserved, and keep its bits at reset value.

Bits 27:26 I3C2SEL[1:0]: I3C2 kernel clock source selection

00: rcc_pclk3 selected as kernel clock (default after reset)

01:

– pll2_r_ck selected as kernel clock for STM32H543/553xx devices

– pll3_r_ck selected as kernel clock for the other STM32H5 series devices

10: hsi_ker_ck selected as kernel clock

11: no clock selected

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 25:24 I3C1SEL[1:0]: I3C1 kernel clock source selection

00: rcc_pclk1 selected as kernel clock (default after reset)

01:

– pll2_r_ck selected as kernel clock for STM32H543/553xx devices

– pll3_r_ck selected as kernel clock for the other STM32H5 series devices

10: hsi_ker_ck selected as kernel clock

11: no clock selected

Bits 23:22 I2C4SEL[1:0]: I2C4 kernel clock source selection

00: rcc_pclk3 selected as kernel clock (default after reset)

01: pll3_r_ck selected as kernel clock

10: hsi_ker_ck selected as kernel clock

11: csi_ker_ck selected as kernel clock

Note: These bits are only available on some devices in the STM32H5 series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value.

Bits 3:2 SYSTICKSEL[1:0]: SYSTICK clock source selection

Note: rcc_hclk frequency must be four times higher than lsi_ker_ck/lse_ck, that is, period (LSI/LSE) ≥ 4 * period (HCLK).

Bits 1:0 OCTOSPI1SEL[1:0]: OCTOSPI1 kernel clock source selection

11.8.44 RCC kernel clock configuration register (RCC_CCIPR5)

Address offset: 0x0E8

Reset value: 0x0000 0000

31302928272625242322212019181716
CKPERSEL[1:0]Res.Res.Res.Res.Res.Res.ETHREFCLKSELRes.SAI2SEL[2:0]SAI1SEL[2:0]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.ETHPTPCLKSEL[1:0]FDCANSEL[1:0]CECSEL[1:0]RNGSEL[1:0]DACSELADCDACSEL[2:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 CKPERSEL[1:0]: per_ck clock source selection

Bits 29:24 Reserved, must be kept at reset value.

Bit 23 ETHREFCLKSEL: ETH RMII reference kernel clock source selection

This bit selects the reference clock of the ETH for RMII mode. It must be set to 0 in any other mode than RMII.

Note: This bit is only available on STM32H543/553xx devices. If not present, consider this bit as reserved, and keep its bits at reset value.

Bit 22 Reserved, must be kept at reset value.

Bits 2:0 ADCDACSEL[2:0]: ADC and DAC kernel clock source selection

000: rcc_hclk selected as kernel clock (default after reset)

001: sys_ck selected as kernel clock

010: pll2_r_ck selected as kernel clock

011: hse_ck selected as kernel clock

100: hsi_ker_ck selected as kernel clock

101: csi_ker_ck selected as kernel clock

Others: reserved, the kernel clock is disabled

11.8.45 RCC Backup domain control register (RCC_BDCR)

Address offset: 0x0F0

Reset value: 0x0000 0000

Reset value: 0x0000 0080 (for STM32H543/553xx devices)

Reset by Backup domain reset.

Access: 0 ≤ wait state ≤ 3, word, half-word and byte access.

Wait states are inserted in case of successive accesses to this register.

Note: After a system reset, this register is write-protected (except bits 27:24 and bit 16). To modify the backup domain bits, the DBP bit in the PWR Backup domain control register (PWR_BDCR) must be set to 1. All bits (except bits 27:24 and bit 16) are reset only after a Backup domain reset (see Section 11.3.3). Other resets do not have effect on these bits.

31302928272625242322212019181716
Res.Res.Res.Res.LSIRDYLSIONLSCOS ELLSCOE NRes.Res.Res.Res.Res.Res.Res.VSWR ST
rwrwrwrwrw
1514131211109876543210
RTCENRes.Res.Res.Res.Res.RTCSEL[1:0]LSEEX TLSECS SDLSECS SONLSEDRV[1:0]LSEBY PLSERD YLSEON
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bit 27 LSIRDY: LSI oscillator ready

Set and cleared by hardware to indicate when the LSI oscillator is stable. After the LSION bit is cleared, LSIRDY goes low after three internal low-speed oscillator clock cycles.

This bit is set when the LSI is used by IWDG or RTC, even if LSION = 0.

0: LSI oscillator not ready

1: LSI oscillator ready

Bit 26 LSION: LSI oscillator enable

Set and cleared by software.

0: LSI oscillator off

1: LSI oscillator on

Bit 25 LSCOSEL: Low-speed clock output selection

Set and cleared by software.

0: LSI clock selected

1: LSE clock selected

Bits 4:3 LSEDRV[1:0]: LSE oscillator driving capability

Set by software to select the driving capability of the LSE oscillator.

These bit can be written only if LSE oscillator is disabled (LSEON = 0 and LSERDY = 0).

00: lowest drive (default after Backup domain reset)

01: medium-low drive

10: medium-high drive

11: highest drive

Bit 2 LSEBYP: LSE oscillator bypass

Set and reset by software to bypass oscillator in debug mode. This bit must not be written when the LSE is enabled (by LSEON) or ready (LSERDY = 1)

0: LSE oscillator not bypassed (default after Backup domain reset)

1: LSE oscillator bypassed

Bit 1 LSERDY: LSE oscillator ready

Set and reset by hardware to indicate when the LSE is stable.

This bit needs 6 cycles of lse_ck clock to fall down after LSEON has been set to 0.

0: LSE oscillator not ready (default after Backup domain reset)

1: LSE oscillator ready

Bit 0 LSEON: LSE oscillator enabled

Set and reset by software.

0: LSE oscillator OFF (default after Backup domain reset)

1: LSE oscillator ON

11.8.46 RCC reset status register (RCC_RSR)

Address offset: 0x0F4

Reset value: 0x0C00 0000

Reset by power-on reset only.

Access: 0 ≤ wait state ≤ 3, word, half-word and byte access.

Wait states are inserted in case of successive accesses to this register.

31302928272625242322212019181716
LPWR
RSTF
WWDG
RSTF
IWDGR
STF
SFTRS
TF
BORR
STF
PINRS
TF
Res.Res.RMVFRes.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bit 31 LPWRRSTF: Low-power reset flag

Set by hardware when a reset occurs due to Stop or Standby mode entry, whereas the corresponding nRST_STOP, nRST_STBY option bit is cleared.

Cleared by writing to the RMVF bit.

0: No illegal low-power mode reset occurred

1: Illegal low-power mode reset occurred

11.8.47 RCC secure configuration register (RCC_SECCFGR)

Address offset: 0x110

Reset value: 0x0000 0000

Access: no wait state; word, half-word and byte access

When the system is secure (TZEN = 0xB4), this register can be written only by a secure privileged access if SPRIV = 1, and by a secure privileged or unprivileged access if SPRIV = 0. A non-secure write access generates an illegal access event and data is not written. This register can be read by secure or non-secure, privilege or unprivileged access.

When the system is not secure (TZEN = 0xC3), this register is read as 0 and the register write is ignored.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.CKPER
SELSE
C
RMVFS
EC
HSI48S
EC
Res.PLL3S
EC
PLL2S
EC
PLL1S
EC
PRESC
SEC
SYSCL
KSEC
LSESE
C
LSISE
C
CSISE
C
HSESE
C
HSISE
C
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:14 Reserved, must be kept at reset value.

Bit 13 CKPERSELSEC: per_ck selection security

Set and reset by software.

0: non secure

1: secure

Bit 12 RMVFSEC: Remove reset flag security

Set and reset by software.

0: non secure

1: secure

Bit 11 HSI48SEC: HSI48 clock configuration and status bits security

Set and reset by software.

0: non secure

1: secure

Bit 10 Reserved, must be kept at reset value.

Bit 9 PLL3SEC: PLL3 clock configuration and status bits security

Set and reset by software.

0: non secure

1: secure

Note: This bit is not available on STM32H543/553xx devices. If not present, consider this bit as reserved, and keep its bits at reset value.

Bit 8 PLL2SEC: PLL2 clock configuration and status bits security

Set and reset by software.

0: non secure

1: secure

Bit 7 PLL1SEC: PLL1 clock configuration and status bits security

Set and reset by software.

0: non secure

1: secure

Bit 6 PRESCSEC: AHBx/APBx prescaler configuration bits security

Set and reset by software.

0: non secure

1: secure

11.8.48 RCC privilege configuration register (RCC_PRIVCFGR)

Address offset: 0x114

Reset value: 0x0000 0000

Access: no wait state; word, half-word and byte access

This register can be written only by a privileged access. It can be read by privileged or unprivileged access.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.NSPRIVSPRIV
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bit 1 NSPRIV: RCC non-secure functions privilege configuration

Set and reset by software. This bit can be written only by privileged access, secure or non-secure.

0: Read and write to RCC non-secure functions can be done by privileged or unprivileged access.

1: Read and write to RCC non-secure functions can be done by privileged access only

Bit 0 SPRIV: RCC secure functions privilege configuration

Set and reset by software. This bit can be written only by a secure privileged access.

0: Read and write to RCC secure functions can be done by privileged or unprivileged access.

1: Read and write to RCC secure functions can be done by privileged access only

11.9 RCC register map

Table 124. RCC register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000RCC_CRRes.Res.PLL3RDY(1)PLL3ON(1)PLL2RDYPLL2ONPLL1RDYPLL1ONRes.Res.Res.HSEEXTHSECSSONHSEBYPHSERDYHSEONRes.Res.HSI48RDYHSI48ONRes.CSIKERONCSIRDYCSIONRes.Res.HSIDIVFHSIDIV[1:0]HSIKERONHSIRDYHSION
Reset value0000000000000000101011
0x004-0x00CReserved
0x010RCC_HSIConfigRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.HSITRIM[6:0]Res.Res.Res.Res.Res.HSICAL[11:0]
Reset value100000XXXXXXXXXXX
0x014RCC_CRRCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HSI48CAL[9:0]
Reset valueXXXXXXXXXX
0x018RCC_CSICFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.CSITRIM[5:0]Res.Res.Res.Res.Res.Res.Res.Res.CSICAL[7:0]
Reset value100000XXXXXXXX
0x01CRCC_CFGR1MCO2SEL[2:0]MCO2PRE[3:0]MCO1SEL[2:0]MCO1PRE[3:0]Res.Res.RTCPRE[5:0]STOPKERWUCKSTOPWUCKRes.SWS[1:0]Res.SW[1:0]
Reset value00000000000000000000000000000000
0x020RCC_CFGR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APB3DISAPB2DISAPB1DISAHB4DISRes.Res.PPRE3[2:0]Res.PPRE2[2:0]Res.PPRE1[2:0]HPRE[3:0]
Reset value000000000000000
0x024Reserved
0x028RCC_PLL1CFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PLL1RENPLL1QENPLL1PENRes.Res.PLL1M[5:0]Res.Res.PLL1VCOSELPLL1FRACENPLL1RGE[1:0]PLL1SRC[1:0]
Reset value00000000000000
0x02CRCC_PLL2CFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PLL2RENPLL2QENPLL2PENRes.Res.PLL2M[5:0]Res.Res.PLL2VCOSELPLL2FRACENPLL2RGE[1:0]PLL2SRC[1:0]
Reset value00000000000000
0x030RCC_PLL3CFGR(1)Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PLL3RENPLL3QENPLL3PENRes.Res.PLL3M[5:0]Res.Res.PLL3VCOSELPLL3FRACENPLL3RGE[1:0]PLL3SRC[1:0]
Reset value00000000000000
0x034RCC_PLL1DIVRRes.PLL1R[6:0]Res.PLL1Q[6:0]PLL1P[6:0]PLL1N[8:0]
Reset value0000000100000001000000101000000

Table 124. RCC register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x038RCC_PLL1FRACRResResResResResResResResResResResResResResResResPLL1FRACN[12:0]ResResResRes
Reset value0000000000000000
0x03CRCC_PLL2DIVRResPLL2R[6:0]ResPLL2Q[6:0]PLL2P[6:0]PLL2N[8:0]
Reset value0000001000000010000001010000000
0x040RCC_PLL2FRACRResResResResResResResResResResResResResResResResPLL2FRACN[12:0]ResResResRes
Reset value0000000000000000
0x044RCC_PLL3DIVR(1)ResPLL3R[6:0]ResPLL3Q[6:0]PLL3P[6:0]PLL3N[8:0]
Reset value0000001000000010000001010000000
0x048RCC_PLL3FRACR(1)ResResResResResResResResResResResResResResResResPLL3FRACN[12:0]ResResResRes
Reset value0000000000000000
0x050RCC_CIERResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value0PLL3RDYIE(1)PLL2RDYIEPLL1RDYIEHSI48RDYIEHSERDYIEHSIRDYIECSIRDYIELSERDYIELSIRDYIE000000
0x054RCC_CIFRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value0PLL3RDYF(1)PLL2RDYFPLL1RDYFHSI48RDYFHSERDYFHSIRDYFCSIRDYFLSERDYFLSIRDYF0000000
0x058RCC_CICRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value0PLL3RDYC(1)PLL2RDYCPLL1RDYCHSI48RDYCHSERDYCHSIRDYCCSIRDYCLSERDYCLSIRDYC0000000
0x060RCC_AHB1RSTRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value0ETHRST(2)RAMCFGRSTFMACRST(2)CORDICRST(2)000000000000000
0x064RCC_AHB2RSTRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value0ADC3RST(2)0CCBRST(2)SAESRSTPKARSTRNGRSTHASHRSTAESRSTResResResResResResResResResResResResResResRes
0x06CRCC_AHB4RSTRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value0OCTOSPI1RST0ResResResResResResResResResResResResResResResResResResResResRes

Table 124. RCC register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x074RCC_APB1LRSTRUART8RST(2)UART7RST(2)Res.CECRSTUSART11(2)USART10RST(2)USART6RSTCRSRSTI3C1RSTI2C2RSTI2C1RSTUART5RSTUART4RSTUSART3RSTUSART2RSTCOMSRST(2)SPI3RSTSPI2RSTRes.Res.Res.Res.Res.TIM14RST(2)TIM13RST(2)TIM12RSTTIM7RSTTIM6RSTTIM5RSTTIM4RSTTIM3RSTTIM2RST
Reset value00000000000000000000000000
0x078RCC_APB1HRSTRRes.Res.Res.Res.Res.Res.Res.Res.UCPD1RSTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FDCANRSTRes.Res.Res.LPTIM2RSTRes.DTSRSTRes.UART12RST(2)UART9RST(2)
Reset value000000
0x07CRCC_APB2RSTRRes.Res.Res.Res.Res.Res.Res.USBRSTRes.SAI2RST(2)SAI1RST(2)SPI6RST(2)SPI4RSTTIM17RST(2)TIM16RST(2)TIM15RSTRes.USART1RSTTIM8RSTSPI1RSTTIM1RSTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000
0x080RCC_APB3RSTRRes.Res.Res.Res.Res.Res.Res.Res.PLAY1RST(2)PLAY1POR(2)Res.VREFRSTRes.Res.Res.Res.LPTIM6RST(2)LPTIM5RST(2)LPTIM4RST(2)LPTIM3RST(2)LPTIM1RSTRes.Res.Res.I3C2RST(2)I2C4RST(2)I2C3RSTLPUART1RSTSPI5RST(2)Res.Res.Res.
Reset value0000000000000
0x088RCC_AHB1ENRSRAM1ENDCACHEENRes.BKPRAMENRes.Res.Res.TZSC1ENRes.Res.ETHRXEN(2)ETHTXEN(2)ETHEN(2)ETHCKEN(3)RAMCFGENRes.FMACEN(2)CORDICEN(2)Res.CRCENRes.Res.Res.Res.FLITFENRes.Res.Res.Res.Res.GPDMA2ENGPDMA1EN
Reset value111000000000100
0x08CRCC_AHB2ENRSRAM3ENSRAM2ENRes.Res.Res.Res.Res.ADC3EN(2)Res.Res.CCBEN(2)SAESENPKAENRNGENHASHENAESENRes.Res.Res.DCMI_PSSIEN(2)DAC1ENADCENRes.Res.GPIOIEN(2)GPIOHENGPIOGENGPIOFENGPIOEENGPIOCENGPIOBENGPIOAEN
Reset value11000000000000000000
0x094RCC_AHB4ENRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OCTOSPI1ENRes.Res.Res.FMCENRes.Res.Res.SDMMC2EN(2)SDMMC1ENRes.Res.Res.Res.OTFDEC1ENRes.Res.Res.Res.Res.Res.
Reset value00000
0x09CRCC_APB1LENRUART8EN(2)UART7EN(2)Res.CECENUSART11(2)USART10EN(2)USART6ENCRSENI3C1ENI2C2ENI2C1ENUART5ENUART4ENUSART3ENUSART2ENCOMPEN(2)SPI3ENSPI2ENRes.Res.Res.Res.WWDGENTIM14EN(2)TIM13EN(2)TIM12ENTIM7ENTIM6ENTIM5ENTIM4ENTIM3ENTIM2EN
Reset value000000000000000000000000000
0x0A0RCC_APB1HENRRes.Res.Res.Res.Res.Res.Res.UCPD1ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FDCANENRes.Res.Res.LPTIM2ENRes.DTSENRes.UART12EN(2)UART9EN(2)
Reset value000000

Table 124. RCC register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x0A4RCC_APB2ENRRes.Res.Res.Res.Res.Res.Res.USBENRes.SAI2EN(2)SAI1EN(2)SPI6EN(2)SPI4ENTIM17EN(2)TIM16EN(2)TIM15ENRes.USART1ENTIM8ENSPI1ENTIM1ENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000
0x0A8RCC_APB3ENRRes.Res.Res.Res.Res.Res.Res.Res.PLAY1EN(2)PLAY1APBEN(2)RTCAPBENVREFENRes.Res.Res.Res.LPTIM6EN(2)LPTIM5EN(2)LPTIM4EN(2)LPTIM3EN(2)LPTIM1ENRes.I3C2EN(2)I2C4EN(2)I2C3ENLPUART1ENSPI5EN(2)Res.Res.Res.SBSENRes.
Reset value000000000000000
0x0B0RCC_AHB1LPENRSRAM1LPENDCACHELPENICACHELPENBKPRAMLPENRes.Res.Res.TZSC1LPENRes.Res.ETHRXLPEN(2)ETHTXLPEN(2)ETHLPEN(2)ETHCKLPEN(3)RAMCFGLPENRes.FMACLPEN(2)CORDICLPEN(2)Res.CRCLPENRes.Res.Res.FLITFLPENRes.Res.Res.Res.Res.Res.GPDMA2LPENGPDMA1LPEN
Reset value1111111111111111
0x0B4RCC_AHB2LPENRSRAM3LPENSRAM2LPENRes.Res.Res.Res.Res.ADC3LPEN(2)Res.Res.CCBLPEN(2)SAESLPENPKALPENRNGLPENHASHLPENAESLPENRes.Res.Res.DCMI_PSSILPEN(2)DAC1LPENADCLPENRes.GPIOILPEN(2)GPIOHLPENGPIOGLPENGPIOFLPENGPIOELPENGPIODLPENGPIOCLPENGPIOBLPENGPIOALPEN
Reset value111111111111111111111
0x0BCRCC_AHB4LPENRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OCTOSPI1LPENRes.Res.Res.FMCLPENRes.Res.Res.SDMMC2LPEN(2)SDMMC1LPENRes.Res.Res.OTFDEC1LPENRes.Res.Res.Res.Res.Res.Res.
Reset value11111
0x0C4RCC_APB1LLPENRUART8LPEN(2)UART7LPEN(2)Res.CECLPENUSART11LPEN(2)USART10LPEN(2)USART6LPENCRSLPENI3C1LPENI2C2LPENI2C1LPENUART5LPENUART4LPENUSART3LPENUSART2LPENCOMPLPEN(2)SPI3LPENSPI2LPENRes.Res.WWDGLPENRes.Res.TIM14LPEN(2)TIM13LPEN(2)TIM12LPENTIM7LPENTIM6LPENTIM5LPENTIM4LPENTIM3LPENTIM2LPEN
Reset value111111111111111111111111111
0x0C8RCC_APB1HLPENRRes.Res.Res.Res.Res.Res.Res.Res.UCPD1LPENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FDCANLPENRes.Res.Res.LPTIM2LPENRes.DTSLPENRes.UART12LPEN(2)UART9LPEN(2)
Reset value111111
0x0CCRCC_APB2LPENRRes.Res.Res.Res.Res.Res.Res.USBLPENRes.SAI2LPEN(2)SAI1LPEN(2)SPI6LPEN(2)SPI4LPENTIM17LPEN(2)TIM16LPEN(2)TIM15LPENRes.USART1LPENTIM8LPENSPI1LPENTIM1LPENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value111111111111
Table 124. RCC register map and reset values (continued)
OffsetRegister name313029282726252423222120191817161514131211109876543210
0x0D0RCC_APB3LPENRRes.Res.Res.Res.Res.Res.Res.Res.PLAY1LPENRes.RTCAPBLPENVREFLPENRes.Res.Res.Res.LPTIM6LPEN(2)LPTIM5LPEN(2)LPTIM4LPEN(2)LPTIM3LPEN(2)LPTIM1LPENRes.I3C2LPEN(4)I2C4LPEN(2)I2C3LPENLPUART1LPENSPI5LPEN(2)Res.Res.Res.SBSLPENRes.
Reset value11111111011111
0x0D8RCC_CCIPR1TIMCSELRes.USART10SEL
[2:0](5)
Res.UART9SEL
[2:0](5)
UART8SEL
[2:0](5)
UART7SEL
[2:0](5)
USART6SEL
[2:0](5)
UART5SEL
[2:0]
UART4SEL
[2:0]
USART3SEL
[2:0]
USART2SEL
[2:0]
USART1SEL
[2:0]
Reset value000000000000000000000000000000
0x0DCRCC_CCIPR2Res.LPTIM6SEL
[2:0](5)
Res.LPTIM5SEL
[2:0](5)
Res.LPTIM4SEL
[2:0](5)
Res.LPTIM3SEL
[2:0](5)
Res.LPTIM2SEL
[2:0]
Res.LPTIM1SEL
[2:0]
Res.UART12SEL
[2:0](5)
Res.USART11SEL
[2:0](5)
Reset value000000000000000000000000
0x0E0RCC_CCIPR3PLAY1SEL
[2:0](5)
Res.Res.LPUART1SEL
[2:0]
PLAY1DIV
SEL[2:0](5)
Res.Res.Res.SPI6SEL
[2:0](5)
SPI5SEL
[2:0](5)
SPI4SEL
[2:0]
SPI3SEL
[2:0]
SPI2SEL
[2:0]
SPI1SEL
[2:0]
Reset value000000000000000000000000000
0x0E4RCC_CCIPR4ETHPTPSEL
[3:0](3)
I3C2SEL
[1:0](5)
I3C1SEL
[1:0]
I2C4SEL
[1:0](5)
I2C3SEL
[1:0]
I2C2SEL
[1:0]
I2C1SEL
[1:0]
Res.Res.Res.Res.Res.Res.ETHCLKSEL(3)SDMMC2SEL(2)SDMMC1SELUSBSEL
[1:0]
SYSTICKSEL
[1:0]
OCTOSPI
[1:0]
Reset value00000000000000000000000000
0x0E8RCC_CCIPR5CKPERSEL
[1:0]
Res.Res.Res.Res.Res.Res.ETHREFCLKSEL(3)SAI2SEL
[2:0](5)
SAI1SEL
[2:0](5)
Res.Res.Res.Res.ETHPTPCLKSEL[1:0](3)FDCANSEL
[1:0]
CECSEL
[1:0]
RNGSEL
[1:0]
DACSELADCDACSEL
[2:0]
Reset value000000000000000000000
0x0F0RCC_BDCRRes.Res.Res.Res.LSIRDYLSIONLSCSELLSCOENRes.Res.Res.Res.Res.Res.Res.VSWRSTRTCENRes.Res.Res.Res.Res.RTCSEL
[1:0]
LSEEXT(6)LSECSSDLSECSONLSEDRV
[1:0]
LSEBYPLSERDYLSEON
Reset value0000000000000000
0x0F4RCC_RSRLPWRRSTFWWDGRSTFIWDGRSTFSFTRSTFBORRSTFPINRSTFRes.Res.RMVFRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000110

Table 124. RCC register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x110RCC_SECCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CKPERSELSECRMVFSECHSI48SECRes.PLL3SEC(1)PLL2SECPLL1SECPRESCSECSYSCCLKSECLSESECLSISECCSISECHSESECHSISEC
Reset value0000000000000
0x114RCC_PRIVCFGRRes.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.NSPRIVSPRI
Reset value00
  1. Not Available on STM32H543/553xx devices. If not present, consider it as reserved, and keep it at reset value.
  2. For the actual availability of this bit check the datasheet. If not present, consider it as reserved, and keep it at reset value.
  3. Available only on STM32H543/553xx devices. If not present, consider it as reserved, and keep it at reset value.
  4. The Reset value is 1 for STM32H523/533/543/553xx devices.
  5. For the actual availability of these bits check the datasheet. If not present, consider them as reserved, and keep them at reset value.
  6. The reset value is 1 for STM32H543/553xx devices.

Refer to Section 2.3: Memory organization for the register boundary addresses.