How to interrupt watchdog?


hi,
i'm trying make low-consumption circuit , use watchdog. works great, i'd able wake "system" change values etc. tryed interrupts, don't work when arduino sleeps. idea?

regards,
peter

i don't think you're able "interrupt" watchdog, powers down every aspect of chip.

one thing run if statement @ beginning of loop, (might easier use switch, rather push button this.. it's example)

if(buttonread(8) == high){ debug();  }
// watchdogtimer

debug being function want run change values, or have set while loop..

if(buttonread(8) == high){ debug = 1;}
  while(debug == 1){
//read sensors, change values, etc, etc
debug = 0;
}
//watchdogtimer

i'm not sure how watchdog timer works exactly.. might missing important details, these should in right direction!:d


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > How to interrupt watchdog?


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums