normad
Member
hey guys..
i enabled my globle interrupts (GIE = 1) and the port b interrupts(RBIE = 1) and followed the usual manner of handling the interrupt but for some reason my interrupt function seems to be running all the time.. in the case of external interrupts we dont have to read from a flag like timers do we?
what i did was check if my pin is high
void interrupt int_handler(void) {
if(RB0) {
//do this and that
}
}
is there something wrong in my method.. do i have to clear any particular bit to exit the interrupt function
i enabled my globle interrupts (GIE = 1) and the port b interrupts(RBIE = 1) and followed the usual manner of handling the interrupt but for some reason my interrupt function seems to be running all the time.. in the case of external interrupts we dont have to read from a flag like timers do we?
what i did was check if my pin is high
void interrupt int_handler(void) {
if(RB0) {
//do this and that
}
}
is there something wrong in my method.. do i have to clear any particular bit to exit the interrupt function