Using ATmega2560 processor.
How to use a watchdog?
Enable watchdog
Code: Select all
MCUSR = 0x08;
Disable watchdog
Code: Select all
wdt_disable();
Reset watch dog
Code: Select all
wdt_reset();
I wonder whether the commands are correct for the watchdog?
Thanks for the reply.