Hi,
You want a ~1 sec PAUSE ...
use PAUSE 1000 !!!
a PAUSE can be "interrupted" so, there are no problem to use it ...
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 " !!!
*****************************************
If you're using the Microchip USB loader, it may have WDT disabled in config.
Try inserting WDTCON.0=1 before any NAP or SLEEP commands to enable WDT.
Can't still see the "ok"
Could the problem come from the LCD setup ???
Generally, we allow 500 ms min for the LCD Power on ...Code:pause 1 lcdout $FE, 1 pause 1
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 " !!!
*****************************************
How long are you waiting? If the WDT poscaler in config is set to 32,768 it's going to take around 131 seconds before it wakes-up.
the WDTPS is 128 as in #9, and actually it takes several seconds before that sleep instrucion is reached in the demo code (#9) as well as in the "big" code where I spotted this phenomena/error/failure at first.
I have never seen sleep working, yet...
but I would really like to see it![]()
Bookmarks