STMicroelectronics STM32WL5 Series Reference Manual page 986

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

Advertisement

System window watchdog (WWDG)
As an example, if APB frequency is 48 MHz, WDGTB[2:0] is set to 3 and T[5:0] is set to 63:
Refer to the datasheet for the minimum and maximum values of t
31.3.6
Debug mode
When the CPU1 enters debug mode (processor halted), the WWDG counter either
continues to work normally or stops, depending on the configuration bit in DBG module. For
more details, refer to
31.4
WWDG interrupts
The early wake-up interrupt (EWI) can be used if specific safety operations or data logging
must be performed before the reset is generated. To enable the early wake-up interrupt, the
application must:
Write EWIF bit of WWDG_SR register to 0, to clear unwanted pending interrupt
Write EWI bit of WWDG_CFR register to 1, to enable interrupt
When the down-counter reaches the value 0x40, a watchdog interrupt is generated, and the
corresponding interrupt service routine (ISR) can be used to trigger specific actions (such as
communications or data logging), before resetting the device.
In some applications, the EWI interrupt can be used to manage a software system check
and/or system recovery/graceful degradation, without generating a WWDG reset. In this
case the corresponding ISR must reload the WWDG counter to avoid the WWDG reset,
then trigger the required actions.
The watchdog interrupt is cleared by writing '0' to the EWIF bit in the WWDG_SR register.
Note:
When the watchdog interrupt cannot be served (for example due to a system lock in a
higher priority task), the WWDG reset is eventually generated.
31.5
WWDG registers
Refer to
The peripheral registers can be accessed by halfwords (16-bit) or words (32-bit).
986/1450
(
t WWDG
=
Section 38: Debug support
Section 1.2 on page 59
)
×
×
1
48000
4096
(DBG).
for a list of abbreviations used in register descriptions.
RM0453 Rev 5
3
×
(
)
2
63
+
1
=
43.69ms
.
WWDG
RM0453

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32wl55 seriesStm32wl54 series

Table of Contents