Reading input from the board for temperature sensor

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

Reading input from the board for temperature sensor

771件の閲覧回数
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 返信

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