ST STM32L4x6 Reference Manual page 29

Table of Contents

Advertisement

RM0351
33
System window watchdog (WWDG) . . . . . . . . . . . . . . . . . . . . . . . . . 1056
33.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1056
33.2
WWDG main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1056
33.3
WWDG functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1056
33.3.1
33.3.2
33.3.3
33.3.4
33.3.5
33.4
WWDG registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1060
33.4.1
33.4.2
33.4.3
33.4.4
34
Real-time clock (RTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1063
34.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1063
34.2
RTC main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1064
34.3
RTC functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1065
34.3.1
34.3.2
34.3.3
34.3.4
34.3.5
34.3.6
34.3.7
34.3.8
34.3.9
34.3.10 RTC synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1073
34.3.11 RTC reference clock detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1073
34.3.12 RTC smooth digital calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1074
34.3.13 Time-stamp function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1076
34.3.14 Tamper detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1077
34.3.15 Calibration clock output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1079
34.3.16 Alarm output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1079
34.4
RTC low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1079
Enabling the watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1057
Controlling the downcounter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1057
Advanced watchdog interrupt feature . . . . . . . . . . . . . . . . . . . . . . . . 1057
How to program the watchdog timeout . . . . . . . . . . . . . . . . . . . . . . . 1058
Debug mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1059
Control register (WWDG_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1060
Configuration register (WWDG_CFR) . . . . . . . . . . . . . . . . . . . . . . . . 1061
Status register (WWDG_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1061
WWDG register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1062
RTC block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1065
GPIOs controlled by the RTC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1066
Clock and prescalers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1067
Real-time clock and calendar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1068
Programmable alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1069
Periodic auto-wakeup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1069
RTC initialization and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 1070
Reading the calendar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1071
Resetting the RTC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1072
DocID024597 Rev 3
Contents
29/1693
43

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF