brew
Member level 3

hi, i'm trying to a handle several interrupts but i don't know how to create ISR functions for them. is using an IF statement when flag bits of the interrupts are set to high will do? or do i have to do something else.
if(TMR1IF == 1) //IF TMR1 TIMER OVERFLOWS
{
timercounter++;
TMR1IF = 0;
}
if(INT0IF ==1) //IF RB0/INT has an interrupt
{
//wake from sleep
}
thanks
regards, brew.
if(TMR1IF == 1) //IF TMR1 TIMER OVERFLOWS
{
timercounter++;
TMR1IF = 0;
}
if(INT0IF ==1) //IF RB0/INT has an interrupt
{
//wake from sleep
}
thanks
regards, brew.