Hi, Henrik
The good question is :
Do you really need the Watchdog to be enabled ??? ... as it's use is limited to SLEEP and NAP PbP commands ...
In other words ... do you use those two commands in your Program ???
Alain
Hi, Henrik
The good question is :
Do you really need the Watchdog to be enabled ??? ... as it's use is limited to SLEEP and NAP PbP commands ...
In other words ... do you use those two commands in your Program ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Hi Alain,
No, I'm not using Sleep or Nap. But as you know that's not only what the WDT is used for... However, AFIK the program has never locked up or anything like that so you may be right, perhaps I should simply kill it.
I'm still interested in an alternative solution though if anyone else has an idea!
/Henrik.
Hi, Henrik
Could your test be replaced by :
AlainCode:If AnalyzeMode AND ! trigger THEN trigged = 1 Endif
Last edited by Acetronics2; - 12th April 2010 at 19:38.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Yep, that only produces a single clrwdt. On the other hand it produces CALLs to both LNOT and LAND, so two calls = 4 cycles + whatever code is actually in the LNOT and LAND routines. All in all I think it'll be slower than the previous version - unfortunately.
I know, I'm hard to please.... ;-)
/Henrik.
Disassemble program, remove offending clrwdt commands, reassemble program.
Bookmarks