Reading input from the board for temperature sensor

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

Reading input from the board for temperature sensor

445 Views
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 Kudos
Reply
1 Reply

435 Views
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 Kudos
Reply