04Fault response
A timer that watches for silence
A watchdog timer watches for expected activity. If it does not arrive within a defined interval, the timer can signal a problem.
Make an expectation explicit
Software can become stuck while hardware remains powered. A watchdog detects an expected action's absence. The program normally refreshes the timer before expiry; if it fails to do so, the configured response can include an interrupt or reset.
The timer measures a chosen condition, not the accuracy of a calculation or whether the program has achieved its purpose.
Activity should mean progress
In a hypothetical monitoring device, only completion of essential tasks refreshes the timer. An unrelated loop could otherwise keep refreshing it while useful work is stuck.
The interval must accommodate legitimate delays, including startup and long operations, while detecting unacceptable silence. Some watchdog designs also reject refreshes arriving too early.
Plan what follows expiry
Restarting may discard temporary information or repeat unfinished actions. The recovery path matters as much as the timer: it may need to preserve fault information and establish a known starting condition.
A watchdog is one layer of supervision. Repeated resets can indicate a persistent problem rather than a successful repair.
Further reading: Texas Instruments: TPS3851 watchdog overview.