Any Timer generates an interrupt at its terminal count, and Watchdog Timer is no exception. However,
the specialty of the Watchdog Timer is that instead of generating a normal interrupt and drawing the
attention of the processor, it triggers a system reset. is is very useful if the system is in an infi nite loop or
just ‘hanging’. To avoid any unwanted system reset, the Watchdog Timer must be periodically serviced by
the system software.
ATmega8 off ers a built-in Watchdog Timer, which may be enabled or disabled by the software
commands through its register, which is designated as WDTCR. e Watchdog Timer is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.