CPUs and architecture
What is the role of the watchdog timer built into microcontrollers?
- ADisplaying the accurate time
- BRaising the clock frequency
- CResetting the system if the program runs away and fails to clear the timer within a set time
Show answer and explanation
Answer: C. Resetting the system if the program runs away and fails to clear the timer within a set time
A watchdog timer expects healthy software to reset it periodically; if a crash or hang lets it expire, it resets the microcontroller. This allows automatic recovery without human intervention after noise or unexpected states, which is essential in automotive, industrial and remote equipment. Running it from an independent clock, or using a window watchdog that also treats too-early resets as faults, improves reliability.
- A. Keeping time is the role of a real-time clock (RTC) and similar.
- B. It does not raise the clock frequency.
- C. Correct. It detects runaway and resets the system.