Just curious - is it MELabs PicBASIC that you are using? Some of the commands don't look familiar (I only use the "Pro" version - so can't tell).
If you want to use the PicBASIC SLEEP command (not the assembly command) - you'll need to have the WatchDog Timer set to ON in the config settings.
Arch
Bookmarks