I have scanned through the first number of tutorial pages, and did a google search on avrfreaks on using the watchdog, but I come up empty on a tutorial on watchdog usage.
Is there a tutorial on the use of the watchdog?
what I want to do is:
during normal program execution the watchdog is off. there are no things blocking so at this point I think I do not need it there.
But I have a couple of possible crash situations were I want to enable the watchdog and let that trigger a HW reset.
example 1 is my main for loop that should never ever exit, but if it does... turn on watchdog and that will never be reset so it will trigger a complete system restart.
second is when I want to power off the system. If for some reason the power off does not work I want the watchdog to get triggered and then let that give a system reset.
I have never worked with the watchdog and before I start asking a lot of questions that most likely will be answered in a tutorial I want to have read that first.