Hi, how can I detect on what port (port 0 or 2) and pin (pin 0 to 31) a interrupt on EINT3 was genereted?
if (IO_INT_STAT & P0int) ...
if(IO_INT_STAT & P2int) ...
to figure out what port. But whats is P0int and P2int in this case? What bit to look for? I guess I check IO0_INT_STAT_F and IO2_INT_STAT_F in a simular way to find out what pin. What bits to look for and how do I translate them to pins? Any example of a ISR function that writes out port and pin would be great.
Isn't it enough if the processor can support up to 64 I/O pins with pin change interrupts?
I haven't had any troubles allocating pins requiring interrupts to either any of EINT0..EINT3 or any of the pins on P0 or P2.