Im refloating this thread because I have a question:

I tried the example provided by Bruce succesfully, but now I want to use ON Interrupt on portb changes.

The problem I encounter is that CCP3 uses RB5 and the interrupt is triggered by changes in the portb.4 to portb.7

What can be done?

Thanks