Independent watchdog (IWDG)
RM0365
DocID025202 Rev 7
26
Independent watchdog (IWDG)
26.1 Introduction
The devices feature an embedded watchdog peripheral that offers a combination of high
safety level, timing accuracy and flexibility of use. The Independent watchdog peripheral
detects and solves malfunctions due to software failure, and triggers system reset when the
counter reaches a given timeout value.
The independent watchdog (IWDG) is clocked by its own dedicated low-speed clock (LSI)
and thus stays active even if the main clock fails.
The IWDG is best suited for applications that require the watchdog to run as a totally
independent process outside the main application, but have lower timing accuracy
constraints. For further information on the window watchdog, refer to
26.2 IWDG
main
features
•
Free-running downcounter
•
Clocked from an independent RC oscillator (can operate in Standby and Stop modes)
•
Conditional Reset
–
Reset (if watchdog activated) when the downcounter value becomes lower than
0x000
–
Reset (if watchdog activated) if the downcounter is reloaded outside the window
26.3 IWDG
functional
description
26.3.1
IWDG block diagram
shows the functional blocks of the independent watchdog module.
Figure 282. Independent watchdog block diagram
1. The watchdog function is implemented in the CORE voltage domain that is still functional in Stop and
Standby modes.
)7$'RESET
PRESCALER
)7$'?02
0RESCALERREGISTER
)7$'?2,2
2ELOADREGISTER
BIT
,3)
K(Z
)7$'?+2
+EYREGISTER
#/2%
6$$VOLTAGEDOMAIN
)7$'?32
3TATUSREGISTER
-36
BITRELOADVALUE
BITDOWNCOUNTER