This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I find out on what port and pin a GPIO interrupt is generetad?

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.

Parents Reply Children
No data