Dear All, I'm using this interrupt on my program
void timer1_ISR (void) interrupt 3 //timer1 interrupt services routine { .. } void it_ext1(void) interrupt 2 // external interrupt INT1 { .. } void timerisr(void) interrupt 1 //timer0 interrupt services routine { .. } static void com_isr (void) interrupt 4 //SERIAL COMMUNICATION INTERRUPT SERVICES ROUTINE { .. } void i2c(void) interrupt 5 //i2c interrupt services routines { .. }
"You don't need a register bank to be unique to each ISR. You can use the same register bank for each ISR that is at the same interrupt level. This is the case because an interrupt cannot itself be interrupted by an ISR at the same interrupt level." I'd never thought of that. Good point.