Hello,
I am working with a S32K144 EVB. I had 5 interruptions assigned to PORTA, PORTB, PORTC, PORTD and PORTE.
Now I need to include more interruptions and I have a problem. Interrupts are activated when a rising edge occurs on one of the port pins regardless of the pin.
Is there any way to know which pin has activated the interrupt?
Thanks.
Hi Antonio Pérez Laguarda
Once that you are in the interruption, you could check the Port Data Input Register (PDIR) register to verify which of the pins was the one that trigger the interruption.
https://community.nxp.com/message/633852?commentID=633852#comment-633852
Reading Input using PDIR(Port Data Input Register)
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------