DocID018909 Rev 11
791/1731
RM0090
Real-time clock (RTC)
828
Figure 237. RTC block diagram
1. On STM32F4xx devices, the RTC_AF1 and RTC_AF2 alternate functions are connected to PC13 and PI8,
respectively.
26.3
RTC functional description
26.3.1
Clock and prescalers
The RTC clock source (RTCCLK) is selected through the clock controller among the LSE
clock, the LSI oscillator clock, and the HSE clock. For more information on the RTC clock
source configuration, refer to
Section 7: Reset and clock control for STM32F405xx/07xx
Section 6: Reset and clock control for STM32F42xxx
.
A programmable prescaler stage generates a 1 Hz clock which is used to update the
calendar. To minimize power consumption, the prescaler is split into 2 programmable
prescalers (see
•
A 7-bit asynchronous prescaler configured through the PREDIV_A bits of the
RTC_PRER register.
•
A 15-bit synchronous prescaler configured through the PREDIV_S bits of the
RTC_PRER register.
Note:
When both prescalers are used, it is recommended to configure the asynchronous prescaler
to a high value to minimize consumption.
The asynchronous prescaler division factor is set to 128, and the synchronous division
factor to 256, to obtain an internal clock frequency of 1 Hz (ck_spre) with an LSE frequency
of 32.768 kHz.
069
FNBDSUH
]
FN VSUH
]
57&B&$/,%
+]
57&B:875
57&&/.
:87)
+6(B57&
0+]PD[
/6(+]
/6,
$V\Q FK
ELWSUHVFDOHU
GHIDXOW
6\Q FKURQRXV
ELWSUHVFDOHU
GHIDXOW
&DOHQGDU
ELWZDNHXS
DXWRUHORDGWLPHU
$ODUP$
57&B$/50$5
UHJLVWHUV
$/5$)
57&B$/$50
57&B35(5
57&B35(5
6KDGRZUHJLVWHUV
57&B75
57&B'5
&RDUVH
&DOLEUDWLRQ
57&B&$/,%5
$/5%)
7LPHVWDPS
UHJLVWH UV
76)
2XWSXW
FRQWURO
57&B$)
57&B287
+]
57&B$/50$665
$ODUP%
57&B$/50%5
UHJLVWHUV
57&B$/50%665
6PRRWK
FDOLEUDWLRQ
57&B&$/5
3UHVFDOHU
:8&.6(/>@
%DFNXSDQG
57&WDPSHU
FRQWUROUHJLVWHUV
57&B7$03
57&B76
7$03(
76(
57&B$)
6KDGRZUHJLVWHU
57&B665
57&B7$03