I was just wondering, in MPLAB what are the structure element names for each interrupt. I know what the first and second interrupt are. They are INT2IF (1st interrupt) and INT3IF (2nd interrupt).
If you know what any of these variables names are, please let me know. Thanks.
INT2IF and INT3IF are of the structure INTCON3bits. The rest of the interrupt ports are in INTCONbits, labeled RB4, RB5, RB6, and RB7 for ports 3, 4, 5, and 6, respectively.
However what you must know is that those are used as digital IO ports - they don’t actually act like interrupts. I once tried using a shaft encoder on one of the RB ports and it got really jumbled data (this was before I found out that they aren’t actually interrupts).
If you would like to know how an interrupt port differs from a digital input, check this thread out: how to use interrupts??. look at post #7 by Blake for a summary of interrupts, and on the second page, post #12 (which led me to this thread in the first place btw) has the default (MPLAB) code for handling the interrupt ports on the Vex controller.