Getting the pin status using PINS_DRV_ReadPins

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

Getting the pin status using PINS_DRV_ReadPins

20,827件の閲覧回数
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 件の賞賛
返信
26 返答(返信)

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

2,046件の閲覧回数
AVND
Contributor I

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

0 件の賞賛
返信

2,034件の閲覧回数
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 件の賞賛
返信

2,021件の閲覧回数
AVND
Contributor I

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

ptc8.png

0 件の賞賛
返信

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

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