The STM32C5 series requires a 2.7 V to 3.6 V operating voltage supply VDD.
Several independent supplies can be provided for specific peripherals. Those supplies must not be provided without a valid operating supply on the VDD pin.
VDD = 2.7 to 3.6 V
VDD is the external power supply for the I/Os, the internal regulator, and the system analog (such as reset, power management, and internal clocks). It is provided externally through the VDD pins.
VDDA = 2.7 V (ADCs, DAC, COMP, OPAMP) to 3.6 V
VDDA is the external analog power supply for A/D converters, D/A converters, and the analog comparator. The VDDA voltage domain is physically connected to the VDD voltage.
VCAP = 0.9 to 1.15 V: digital core domain supply
This power supply is independent from all the other power supplies:
VRTC = 2.7 to 3.6 V
VRTC is the power supply for RTC, external clock 32 kHz oscillator, and backup registers. The VRTC voltage level is physically connected to the VDD voltage.
VREF-, VREF+
VREF+ is the input reference voltage for ADCs, DAC, and COMP.
VREF+ can be grounded when ADC and DAC are not active.
VREF- and VREF+ pins are not available on all packages. When not available, they are bonded to VSS and VDD, respectively.
The VDDA and VSSA analog supply, providing power to ADC, DAC, OPAMP, and COMP, are connected internally to digital supply VDD and VSS offering extra GPIOs to user.
ADC and DAC reference voltage
To ensure a better accuracy on low-voltage inputs and outputs, the user can connect to VREF+, a separate reference voltage lower than VDDA.
VREF+ is the highest voltage, represented by the full-scale value, for an analog input (ADC) or output (DAC) signal.
For more details, refer to the device datasheet and to the reference manual.
Note:
The VREF+ and VREF- pins are not available on all packages (connected internally respectively to VDDA and VSSA). Do not enable the internal voltage reference buffer when an external power supply is applied to the VREF+ pin.
RTC domain
To retain the content of the backup registers and to supply the RTC function when the device enters Standby mode.
The RTC domain powers the RTC unit and the LSE oscillator, allowing the RTC to operate even when the core supply domain is switched off.
RTC domain access
After a system reset, the RTC domain (RCC RTC domain control register RCC_RTCCR, RTC registers, TAMP registers, and backup registers) is protected against possible unwanted write accesses. To enable access to the RTC domain, set the DBP bit in the PWR disable backup domain control register (PWR_DBPR) to enable access to the RTC domain.
Voltage regulator
Linear voltage regulator (LDO) is enabled on power-on reset. It supplies digital parts of the STM32C5 in the VCORE domain and is stabilized thanks to the 2.2 μF capacitor positioned on VCAP pad.
Embedded voltage regulator operating modes
There are three different power modes:
Run mode
The voltage regulator provides full power to the VCORE domain (core, memories, and digital peripherals). The regulator output voltage is in range of 1.2 V in Run and Sleep mode.
Stop mode
The voltage regulator supplies the VCORE domain to retain the content of registers and internal memories. The regulator output voltage is decreased to 0.95 V under Stop modes.
Standby mode
The regulator is OFF and the VCORE domains are powered down. The content of the registers and memories is lost except for the Standby circuitry and the RTC domain.
Power supply scheme
The following figure shows the power supply scheme for STM32C5 devices.
Figure 1. STM32C5 power-supply scheme
Reset and power-supply supervisor
Power-on reset (POR) and power-down reset (PDR)
The devices have an integrated power-on reset (POR) and power-down reset (PDR) circuitry.
During power-on, the POR keeps the device under reset until the supply voltage VDD reaches the specified threshold. When VDD drops below the VPDR threshold, a device reset is generated. When VDD is above the VPOR upper limit, the device reset is released and the system can start.
For more details on the reset thresholds, refer to the electrical characteristics section in the datasheet.
Figure 2. POR/PDR reset waveform
Programmable voltage detector (PVD)
The PVD can be used to monitor the VDD power supply by comparing it to a threshold in range of 3 V (refer to product datasheet for more details). The PVD is enabled by setting the PVDE bit in PWR voltage monitor control register (PWR_VMCR).
A PVDO flag is available in the PWR voltage monitor status register (PWR_VMSR) to indicate if VDD voltage is higher or lower than the PVD threshold. This event is internally connected to the EXTI and can generate an interrupt, provided it has been enabled through the EXTI registers.
The rising/falling edge sensitivity of the EXTI line must be configured according to PVD output behavior that is, if the EXTI line is configured to rising edge sensitivity, the interrupt is generated when VDD voltage drops below the PVD threshold. As an example, the service routine could perform an emergency shutdown.
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:
A low level on the NRST pin (external reset)
A window watchdog event (WWDG reset)
An independent watchdog event (IWDG reset)
A software reset (SW reset)
A low-power mode security reset
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 the RPD level, 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 RPU is deactivated in order to save the power consumption through the pull-up resistor.Figure 3. Simplified diagram of the reset circuit
RTC domain reset
An RTC domain reset is generated when one of the following events occurs:
A software reset, triggered by setting the RTCDRST bit in the RCC_RTCCR register
A VDD power-on
An RTC domain reset affects the LSE oscillator, the RTC, the backup registers all secrets protected by tamper and the RCC_RTCCR register.
RCC clocks functional description
Four different clock sources can be used to drive the system clock (SYSCLK):
HSIS: high-speed internal clock at 144 MHz
→ and HSIDIV3: high-speed internal clock is divided by 3; at 48 MHz
PSIS: precise speed internal clock up to 160 MHz (max SYSCLK is 144 MHz)
HSE: high-speed external crystal or clock, from 4 to 50 MHz
The HSIDIV3 is used as a the system clock source after startup from reset, at 48 MHz.
Note:
If HSE or PSIS with HSE as reference are used as SYSCLK and the HSE CSS detect a failure, HSIDIV3 is automatically set as SYSCLK. Adequate wait state supporting both frequencies must be configured in this case.
The device has the following additional clock sources:
HSIK: high-speed internal clock divided by 1;1.5; 2;...; 7.5; 8
PSIDIV3: precise speed internal clock divided by 3
LSI: 32 kHz low-speed internal RC that drives the independent watchdog and optionally the RTC used for auto-wake-up from Stop and Standby modes
LSE: 32.768 kHz low-speed external crystal or clock that optionally drives the real-time clock (rtc_ck)
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 and APB frequencies. The maximum frequency of the AHB and APB domains is 144 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).
Note:
All timers (except LPTIM) are clocked by HCLK, independently of their respective PCLK.
In addition, the RTC kernel clock is selected by software in RCC_RTCCR. 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.