- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What do you expect a floating pin does?
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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