what else on the PORTB.0 pin??? any pull-down resistor???
Should have one, if not it could act weird.
Another altenative is to use the internal PULL-UP and connect your push-buuton between RB0 and GND
Code:OPTION_REG = 0 ' enable internal pull-up and interrupt on RB0 falling edge




Bookmarks