

This must be executed by the application before the configured watchdog period has ended. The watchdog reset is specified as an inline assembler statement by the macro wdt_reset(). Install the interrupt routine for Watchdog Interruptįirstly, include the definition of the interrupt names and the ISR interrupt service routine. #define wdt_reset() _asm_ _volatile_ ("wdr")

This code is distributed under the GNU Public License The author is in no way responsible for any problems or damage caused by This sketch demonstrates the watchdog interrupt which toggles the onboard LED of Arduino that is connected with pin13. Open your Arduino IDE and go to File > New to open a new file. Watchdog Configuration Arduino Watchdog Interrupt Sketch
