Hi Michael
I'm not sure if this will help. The sleep statement needs to be followed by at least a nop. Read the datasheet carefully - it has a mention of this. Anyway, I am too lazy to read it and point it out at this time. I use the 16F628A in sleep and successfully.
The statement sequence should be
@sleep
@nop
@nop
Also, make sure that the pending interrupt is cleared before you put the PIC to sleep.
Jerson
Bookmarks