STMicroelectronics STM32WL5 Series Reference Manual page 33

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Table of Contents

Advertisement

RM0453
31.5.3
31.5.4
32
Real-time clock (RTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 989
32.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 989
32.2
RTC main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 989
32.3
RTC functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 990
32.3.1
32.3.2
32.3.3
32.3.4
32.3.5
32.3.6
32.3.7
32.3.8
32.3.9
32.3.10 Reading the calendar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1000
32.3.11 Resetting the RTC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001
32.3.12 RTC synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001
32.3.13 RTC reference clock detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1002
32.3.14 RTC smooth digital calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1003
32.3.15 Timestamp function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1005
32.3.16 Calibration clock output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1006
32.3.17 Tamper and alarm output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1006
32.4
RTC low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1007
32.5
RTC interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1008
32.6
RTC registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1009
32.6.1
32.6.2
32.6.3
32.6.4
32.6.5
32.6.6
32.6.7
32.6.8
32.6.9
WWDG status register (WWDG_SR) . . . . . . . . . . . . . . . . . . . . . . . . . 988
WWDG register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 988
RTC block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 990
RTC pins and internal signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 991
GPIOs controlled by the RTC and TAMP . . . . . . . . . . . . . . . . . . . . . . . 992
Clock and prescalers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 994
Real-time clock and calendar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 996
Calendar ultra-low power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 996
Programmable alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 996
Periodic auto-wake-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 997
RTC initialization and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 998
RTC time register (RTC_TR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1009
RTC date register (RTC_DR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1010
RTC sub second register (RTC_SSR) . . . . . . . . . . . . . . . . . . . . . . . . 1011
RTC initialization control and status register (RTC_ICSR) . . . . . . . . 1011
RTC prescaler register (RTC_PRER) . . . . . . . . . . . . . . . . . . . . . . . . 1013
RTC wake-up timer register (RTC_WUTR) . . . . . . . . . . . . . . . . . . . . 1014
RTC control register (RTC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1014
RTC write protection register (RTC_WPR) . . . . . . . . . . . . . . . . . . . . 1018
RTC calibration register (RTC_CALR) . . . . . . . . . . . . . . . . . . . . . . . . 1018
RM0453 Rev 5
Contents
33/1450
44

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Stm32wl55 seriesStm32wl54 series

Table of Contents