#include #define DEBUG 1 int INTpin = 2; volatile boolean wdt_expired=0; // Interrupt Serive Routine that will be executed when the Watchdog Timer expired. ISR(WDT_vect) { wdt_expired=1; } //**************************************************************** // 0=16ms, 1=32ms,2=64ms,3=128ms,4=250ms,5=500ms // 6=1 sec,7=2 sec, 8=4 sec, 9= 8sec void setup_watchdog(int ii) { byte bb; int ww; if (ii > 9 ) ii=9; bb=ii & 7; if (ii > 7) bb|= (1<<5); bb|= (1<