s32k142, how to distinguish gpio interrupt flag (raising flag or falling flag)

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

s32k142, how to distinguish gpio interrupt flag (raising flag or falling flag)

Jump to solution
1,757 Views
bgong
Contributor II

Hi

I am working on a project with s32k142 and have a question about gpio interrupt

i do the following:

      set IRQC as EITHER edge

      read ISF to see if the interrupt is happed

      

the question is: 

how can i distinguish if it war a falling oder raising edge? 

Thanks a lot

Baoyuan Gong

Tags (2)
0 Kudos
Reply
1 Solution
1,562 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi Baoyuan,

You can check the logic level of the corresponding pin in the Port Data Input Register (PDIR).

I hope it helps you.

Best regards,

Diana

View solution in original post

0 Kudos
Reply
1 Reply
1,563 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi Baoyuan,

You can check the logic level of the corresponding pin in the Port Data Input Register (PDIR).

I hope it helps you.

Best regards,

Diana

0 Kudos
Reply