Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
inter:
movwf temp
swapf STATUS,w
clrf STATUS
movwf temp_s
btfss INTCON,RBIF ;is it Port B change interrupt
goto NotPortB ;no, go check other interrupts
movfw PORTB ;read port B to clear change condition
bcf INTCON,RBIF ;Yes so clear the interrupt flag
;put code here for RB4 change
NotPortB btfss INTCON,INTF ;is it INT0 interrupt
goto NotIntF ;no
bcf INTCON,INTF ;Yes so clear the interrupt flag
;Put code here for RB0 rising edge
NotIntF
swapf temp_s,w
movwf STATUS
swapf temp,w
retfie
Does that damaged the KIT permanently ?