Hi,
PBP uses the watchdog timer for its own sleep function. Even if you are running your asm sleep instruction the wdt wakes the PIC. There is a define that prevents PBP compiler from automatically inserting the clearwdt instruction. Combine it with the config registers to turn off the watchdog timer. I have never used it. Please check.
Regards
Sougata
Bookmarks