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![]()
How are you setting the WDT postscaler to 128?
The watchdog timer postscaler & on/off options are configuration options. These are set at
program time.
PBP allows you to DEFINE pretty much anything without throwing an error, but that doesn't
mean your defines are doing anything.
If you're using the older version Microchip USB boot-loader firmware, these are set in the C
code.
You can open the loader .HEX file with your programmer, change WDTPS from 32768 to 128Code:#pragma config WDT = OFF #pragma config WDTPS = 32768
then save the .HEX file & re-program your 4550 with the modified loader firmware. Then you
will have a postscaler of 128. I would leave WDT=OFF, and use the software enable option
WDTCON.0=1.
You'll also want to use DEFINE OSC 48 so PBP will use the correct timing. Without defining
the osc speed PBP defaults to 4MHz.
Bookmarks