Hello Again,
I'm trying to switch over another program I wrote for a 16F877 to an 18F452. It's a moisture meter circuit that runs on batteries. After compiling for the 452 then running the program, the program was running ever so slowly and locking up. After commenting out 95% of the program I got it down to a few counters and displaying them to the Lcd, then I noticed that when I changed the NAP & SLEEP commands to a PAUSE, then it worked good and the programs speed was normal. I've spent more than a few hours going through the archives but couldn't find any discussions about it. Can anyone here explain what's going on with using NAP's and SLEEP commands with the 18F452's? I've gone through the 452 manual as well and can't find any reference that say's these commands won't work for the 452.
I did find an interesting read about using the LP oscillator mode to save power while in sleep and will try and absorb that information in the next little while but in the meantime can anyone explain to me why the nap & pause commands won't work as expected?
Thanks
jessey
Bookmarks