Have you tried to just use the sleep command with an led project? Maybe its a different part of your code giving you the trouble.
But the best way to tell that, is just a lil project to test the command on its own.
Could always have something to do with the watchdog timer. Hopefully that helps. If it works in the project then its a problem with the way your other code configures the pic or maybe a loop of death somewhere.





Bookmarks