Hi!
Im using the ATTiny861 and I would like to use the watchdogtimer.
Its the first time I use it but I've checked it up and I know how to enable:
wdt_enable(WDTO_8S);
and reset:
wdt_reset();
Now to the problem. 8s is max but I want to be able to set it to 10, 15 or 20s.
I was thinking of using ISR() and a globel uint8_t to keep track of how many times the watchdog had reached 5s.
And when the settings (10s, 15s, 20s) have been reached then I want to reboot my system. Any suggestion on how I could do this. Or if you have a better solution pls post a code and some text to explaine. Would really like to learn. :)
Best regards
BBB