GPIO IRQ

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

GPIO IRQ

1,621 次查看
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.

标记 (1)
0 项奖励
回复
1 回复

1,535 次查看
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 项奖励
回复