Safety Timer
System reliability in unattended environments is maintained by a dedicated electronic timer that resets the main processor upon detecting a software stall. A hardware watchdog monitors the execution of the system software by requiring a periodic signal, often called a kick, to prevent a timeout. If the software hangs due to a bug or an external disturbance, the timer expires and triggers a hardware reset.
This mechanism ensures that the device can recover from errors without human intervention.
Circuit Autonomy
Internal or external circuits provide the count. A hardware watchdog is often a discrete component or a specialized peripheral within a microcontroller that operates independently of the main clock tree. This independence is required because it allows the timer to continue running even if the main processor clock fails.
The reset signal is physically wired to the reset pin of the processor to force a clean restart.
Reset Threshold
Timeout periods must be carefully selected. If the hardware watchdog period is too short, normal software operations might be interrupted by a reset. Conversely, a period that is too long delays the recovery of the system, potentially leading to unsafe conditions.
Engineers calculate the maximum execution time of the most intensive software tasks to set a safe and effective threshold.
Functional Certification
Safety standards mandate these timers. In applications such as automotive control or industrial automation, a hardware watchdog is a required component for achieving high safety integrity levels. Certification bodies inspect the design to ensure the timer cannot be disabled by the same software failure it is intended to detect.
Testing includes injecting faults into the software to verify that the reset occurs as expected.