Reading input from the board for temperature sensor

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

Reading input from the board for temperature sensor

759 次查看
Jada246
Contributor I

Firstly I set the GPIO to input using GPIO -> DIRCLR[0] =(1UL << sensor1)

//sensor 1 is gpio 19 which is the output voltage from temperature sensor

im trying to read it and print it to the console using

GPIO -> B[0][sensor1] 

the problem is I’m constantly getting 0 as the voltage.

0 项奖励
回复
1 回复

749 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jada246 ,

Please first use logic to confirm there is signal in gpio pin.

Then check your code, you'd better refer to to gpio demo, which chip do you used,

I can help to provide demo.

Also check whether enable GPIO  clock.

 

Regards,

Alice

0 项奖励
回复