Quote Originally Posted by crueheads View Post
The PBP SLEEP command is not the same as assembly SLEEP

With the watchdog timer on the chip won't go into real sleep mode, it will just sleep for a set period of time. I want the chip to hibernate until there is a change on GPIO.3 not sleep for a specific amount of time, and for this from what I have read the watchdog has to be off.
You didn't say any thing about asm in your first post you said
@sleep function
PBP has a sleep function The wdt has to be on for it to work

Glad you have it all worked out hope you have a good day

I was going to post how to do it in asm but I'd go with LinkMTech code