I am using PIC18F26K83 and I want to use interrupts for a switch that will be connected to one of the pins of my PIC. So I have some related questions:
- There are 2 interrupt options in PIC18F26K83: IOC vs INT. What is the difference? I heard that is quite easy to miss edges with IOC though. Can I use both of them at the same time?
- Other question is related to interrupt function. If I have 2 interrupt functions : interrupt i1(void) and interrupt i2(void), in case of any interrupt, does the software enters all the interrupts one by one? If not how does it get which function is related to coming interrupt? For example I am using CANBus interrupt, I2C interrupt, timer interrupt and one external interrupt coming from a switch. If I press the switch, how will software know which interrupt function is related to switch? Thanks beforehand.