I think your link is dud, however I assume you mean the wakex2.bas example.
Don't use NAP but use the assembler @SLEEP in your PBP code in it's place instead. This will permanently cause the PIC to sleep until woken by an event. What 'events' will cause the PIC to wake is detailed in the 'Special Features of the CPU' section of your chosen PIC's Datasheet.
There are lots of examples of this usage in past archives at the MeLabs site.
http://list.picbasic.com/cgi-bin/board-search.cgi
Bookmarks