Quote Originally Posted by andybarrett1 View Post
Hi All
Both Sleep and nap seem to be for short time durations.....???
You could cheat by using the ASM sleep directive thus.
Code:
asm
        sleep
        nop
        nop
endasm
See section 14.8.1 (Wake-up from sleep) in the datasheet to understand why you may need nops.

This way you can make the processor sleep indefinitely