Getting the pin status using PINS_DRV_ReadPins

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

Getting the pin status using PINS_DRV_ReadPins

20,858 Views
abhinandan
Contributor II

Hi Community,

  I am working on S32K118 eval board, I need to get the status of each pin, can you please help me to know whether I can get this using PINS_DRV_Readpins command and how to obtain the output.

 

Thank You 

0 Kudos
Reply
26 Replies

1,978 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

If you must use this pin, then only modify the PCB to solder the resistor on. I have enable pullup for PTC8 on S32K118EVB-Q064, so just connect GND to it will trigger interrupt.

0 Kudos
Reply

2,048 Views
AVND
Contributor I

"buttonISR" callback function only called when interrupt occured for the button pins PTD3,PTD5 not for PTC8 pin

0 Kudos
Reply

2,036 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Did you configure the PTC8 as input\internal pullup\enable interrupt at raising edge?

PTC8 Pins Tool.png

You need to check the flag and clear the flag of PTC8 in buttonISR.

0 Kudos
Reply

2,023 Views
AVND
Contributor I

Yes i have configured as like what you sent, but still interrupt didn't occured for PTC8.

ptc8.png

0 Kudos
Reply

1,982 Views
AVND
Contributor I

But when i configured "interrupt on raising edge"  initially when code starts to run it hit the buttonISR callback function after that i didnt hit even connecting the pin to vcc for generating the interrupt.Can you please check on your side for the PTC8 pin interrupt?

0 Kudos
Reply

1,611 Views
AVND
Contributor I

I think some problem regarding the pin PTC8,as same as if i configured for button pin PTD3 it works perfectly what i expected, i don't know why its not working for PTC8.

0 Kudos
Reply