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 assumes that a correctly running program clears it periodically. If the program runs away or hangs and the timer expires without being cleared, it resets the microcontroller to recover. It is a mechanism for improving equipment 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.