GPIO IRQ

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPIO IRQ

1,620件の閲覧回数
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,534件の閲覧回数
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 件の賞賛
返信