GPIO IRQ

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPIO IRQ

1,098 Views
antperlag1
Contributor I

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.

Tags (1)
0 Kudos
Reply
1 Reply

1,012 Views
jorge_a_vazquez
NXP Employee
NXP Employee

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!
-------------------------------------------------------------------------------

0 Kudos
Reply