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
Code:
OPTION_REG.6 = 0 'INTERUPT PORTB.0 ON 1 = RISING EDGE 0 = falling
INTCON.4 = 1 'ENABLE RBO INTERUPT
Sleep
Code:
SLEEPLOOP:
'OPTION_REG.7 = 0 'ENABLE PULLUP RESISTORS PORTB
INTCON.7 = 1 'ENABLE GLOBLE INTERUPTS
@ SLEEP ;ASSEMBLY SLEEP COMMAND - TURNOFF uP CLOCK
INTCON.7 = 0 'ON INTERUPT DISABLE GLOBLE INTERUPTS
INTCON.1 = 0 'RESET INTERUPT FLAG
Bookmarks