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'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(
== high){ debug(); }
// watchdogtimer
debug being function want run change values, or have set while loop..
if(buttonread(
== 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
one thing run if statement @ beginning of loop, (might easier use switch, rather push button this.. it's example)
if(buttonread(
== high){ debug(); } // watchdogtimer
debug being function want run change values, or have set while loop..
if(buttonread(
== 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
Post a Comment