Analog ADC Pin pushing 2.5V

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Any idea why my analog ADC input pins are reading 2.5 V when floating? I'm using the LPO97 68-QFN chip. For the pins, im using p3[0] and p3[1]. If I change the pins, those new pins will now be 2.5 V also. 

   

 

   

-Thanks

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You are using ADC_CountsTo_Volts(). This API assumes the Vdda to be correctly specified (in .cydwr view, System tab). When changing the supply from 5V to 3.3V or back will affect the result of ADC_CountsTo_Volts().

   

The analog pin will not affect your voltage divider because as an input (as you use it) it is high-Z, but the input to the ADC is 180kOhms.

   

You might consider using a buffer amplifier which will provide an input resistance in the MOhm range.

   

 

   

Bob

View solution in original post

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

What do you expect a floating pin does?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I expect it to read 0 volts. It's affecting my voltage divider into the adc because as I change the supply voltage, that pin voltage changes also. However, I am powering the chip through a 5 volt regulator so I don't understand why changing the board supply voltage would change that pin voltage (even though it should be zero). After removing the second channel from the SAR everything is working as it should and the pin now does read 0 V when left floating. 

   

Thanks

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You are using ADC_CountsTo_Volts(). This API assumes the Vdda to be correctly specified (in .cydwr view, System tab). When changing the supply from 5V to 3.3V or back will affect the result of ADC_CountsTo_Volts().

   

The analog pin will not affect your voltage divider because as an input (as you use it) it is high-Z, but the input to the ADC is 180kOhms.

   

You might consider using a buffer amplifier which will provide an input resistance in the MOhm range.

   

 

   

Bob

0 Likes