Download Print this page

Rtc/Awu Clock - ST STM32F413 Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F413:

Advertisement

RM0430
CSS interrupt in the NMI ISR by setting the CSSC bit in the Clock interrupt register
(RCC_CIR).
If the HSE oscillator is used directly or indirectly as the system clock (indirectly meaning that
it is directly used as PLL input clock, and that PLL clock is the system clock) and a failure is
detected, then the system clock switches to the HSI oscillator and the HSE oscillator is
disabled.
If the HSE oscillator clock was the clock source of PLL used as the system clock when the
failure occurred, PLL is also disabled. In this case, if the PLLI2S was enabled, it is also
disabled when the HSE fails.
6.2.8

RTC/AWU clock

Once the RTCCLK clock source has been selected, the only possible way of modifying the
selection is to reset the power domain.
The RTCCLK clock source can be either the HSE 1 MHz (HSE divided by a programmable
prescaler), the LSE or the LSI clock. This is selected by programming the RTCSEL[1:0] bits
in the
RCC Backup domain control register (RCC_BDCR)
clock configuration register
resetting the Backup domain.
If the LSE is selected as the RTC clock, the RTC will work normally if the backup or the
system supply disappears. If the LSI is selected as the AWU clock, the AWU state is not
guaranteed if the system supply disappears. If the HSE oscillator divided by a value
between 2 and 31 is used as the RTC clock, the RTC state is not guaranteed if the backup
or the system supply disappears.
The LSE clock is in the Backup domain, whereas the HSE and LSI clocks are not. As a
consequence:
If LSE is selected as the RTC clock:
If LSI is selected as the Auto-wakeup unit (AWU) clock:
If the HSE clock is used as the RTC clock:
Note:
To read the RTC calendar register when the APB1 clock frequency is less than seven times
the RTC clock frequency (f
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.
6.2.9
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 clock is provided to the IWDG.
(RCC_CFGR). This selection cannot be modified without
The RTC continues to work even if the V
V
supply is maintained.
BAT
The RTC remains clocked and functional under system reset.
The AWU state is not guaranteed if the V
Section 6.2.5: LSI clock
The RTC state is not guaranteed if the V
voltage regulator is powered off (removing power from the 1.2 V domain).
APB1
DocID029473 Rev 3
Reset and clock control (RCC) for STM32F413/423
DD
DD
for more details on LSI calibration.
DD
< 7xf
), the software must read the calendar time and
RTCLCK
and the RTCPRE[4:0] bits in
supply is switched off, provided the
supply is powered off. Refer to
supply is powered off or if the internal
RCC
123/1284
180

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F413 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32f423