Hello,
thanks for putting me to this discussion. So now i know, that i´m not alone with this problem.
So my conclusion is, that there is a bug somewhere inside the mbed micro or inside the mbed lib!
1. You are sampling the same souce voltage with two different ADC-pins.
2. The same ADC is sampling the voltage, but within two HW chanals.
The question is, if the sample and hold circuit is latching all the analogue values at the same time?
3. You are getting readings which are different more then 50% of full scale!
Sorry, that could not be only noise, espscially when both ADC-Pins are grounded!
Something in the mbed micro or in the mbed lib is going wrong.
Is there somebody who is able to do this test again,
but without using the mbed lib?
I´m not able to code in that way so closed to the HW.
I do not know how to set all the registers in a propper way.
But i feel that there is something going wrong.
There are some possible reasons:
- Maybe the ADC state machine is disturbed through a happaning inside the micro.
- There is an (timer-)interrupt who is destroying the originaly proper readed ADC-value.
- Inside the mbed lib someting is going wrong.
Hi All,
Has anyone figured out how to get good results reading Analog in? I posed a few days ago about how to get a good voltage sample and after seting it all up I find completly unstable readings... Then I search the site and find it's a common problem talked about for awhile now...
Is there a way around this using digital in, reading a frequency signal or some other method?
Thanks in Advance
Tim