Read portB on entry into the interrupt routine to end the mismatch condition.
SomeVar = PORTB ' read portB
Then clear the interrupt flag before exiting your interrupt routine.
INTCON.0 = 0 ' RB port change int flag is cleared.
Now whenever portB is different from the last value read, INTCON.0 will be set, and you'll vector back to your interrupt routine.
Read this app note for more details:
http://ww1.microchip.com/downloads/e...tes/00566b.pdf
Bookmarks