Getting the pin status using PINS_DRV_ReadPins

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

Getting the pin status using PINS_DRV_ReadPins

23,156 次查看
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 回复数

2,128 次查看
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,198 次查看
AVND
Contributor I

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

0 项奖励
回复

2,186 次查看
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,173 次查看
AVND
Contributor I

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

ptc8.png

0 项奖励
回复

2,132 次查看
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,761 次查看
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 项奖励
回复