It's saving PortB in HoldB but after the pin goes back to its high state. In other words, Pin 2 is changing back to it's high state before it goes to ISR - at least it seems that way.


Disable Interrupt

MyISR:
HoldB = PortB
' Interrupt service routine
Pause 100
CV = CV + 1

INTCON.0 = 0

Resume
Enable Interrupt