Hi
I dug up some old code I did on a pic16f819. Maybe it will help? I did not see Intcon.7 set in your code?
Place this above your variable declaration
OPTION_REG.6 = 0 'INTERUPT...
Type: Posts; User: mark_s; Keyword(s):
Hi
I dug up some old code I did on a pic16f819. Maybe it will help? I did not see Intcon.7 set in your code?
Place this above your variable declaration
OPTION_REG.6 = 0 'INTERUPT...
I think you need to read portb after you awake from sleep to clear the mismatch.
At the top
Dummy var Byte
Place this after your sleep command