why is it that in setting up priority levels for interrupts, the parent intcon number changes:
INTCON
3bits.INT2IP = 0; // Pin 1
INTCON
2bits.INT3IP = 0; // Pin 2
INTCON2bits.RBIP = 0; // Pins 3, 4, 5, 6
but in setting up edge select, pin 1 and pin 2 are both intcon2bits:
INTCON
2bits.INTEDG2 = 1; // Pin 1
INTCON
2bits.INTEDG3 = 1; // Pin 2
and then when setting interrupt flags, they both turn into 3s?
INTCON
3bits.INT2IF = 0; // Pin 1
INTCON
3bits.INT3IF = 0; // Pin 2
INTCONbits.RBIF = 0; // Pins 3, 4, 5, 6
(not to mention pins 3,4,5,6 going from 2 to no number)
i got this code from the interrupts_for_dummies pdf in the white pages, so i'm assuming that this is correct code.
is it all just arbitrary, or what? what am i missing here?
