Howdy
Is it possible to use both a hardware interrupt (from PORTB.0 and another from Timer0) using the same interrupt service routine?
I am using a hardware interrupt based on an external event triggering PORTB.0, and also want to use a timer interrupt, within some other un-related code. If I use the same interrupt handler, and on entry check a flag to see which interrupt caused it, then jump to the related routine, and then use the same exit point, will that work? Or does one somehow write two separate interrupt handlers? That does not seem possible - but then I'm just starting to use interrupts.
I have done some searching but have not found an answer.
Ken
Bookmarks