How To Program The Watchdog Timeout; Figure 201. Window Watchdog Timing Diagram - ST STM32F100 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F100 Series:
Table of Contents

Advertisement

RM0041
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 interrupt service routine (ISR) should reload the WWDG counter to
avoid the WWDG reset, then trigger the required actions.
The EWI interrupt is cleared by writing '0' to the EWIF bit in the WWDG_SR register.
Note:
When the EWI interrupt cannot be served (due to a system lock in a higher priority task), the
WWDG reset is eventually generated.
19.4

How to program the watchdog timeout

Warning:
The formula to calculate the WWDG timeout value is given by:
where:
t
WWDG
t
PCLK1
4096: value corresponding to internal divider
When writing to the WWDG_CR register, always write 1 in the
T6 bit to avoid generating an immediate reset.

Figure 201. Window watchdog timing diagram

T[6:0] CNT downcounter
W[6:0]
0x3F
Refresh not allowed
T6 bit
RESET
×
t
=
t
WWDG
PCLK1
: WWDG timeout
: APB1 clock period measured in ms
RM0041 Rev 6
Refresh allowed
WDGTB[1:0]
×
4096
2
Window watchdog (WWDG)
Time
×
(
)
(
T[5:0]
+
1
ms
ai17101c
)
489/709
493

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents