2005-12-19 09:23 AM
2005-09-23 03:13 AM
Hi
I've compiled the Polling example under the ADC12 folder and downloaded it to the evaluationboard. When the potentiometer is placed to output 0V, the Calib_result value is 0x1D6, which indeed is not zero. Is this the offset mentioned in the datasheet? or is there another explanation to this? Regards Thomas Jespersen, Logic IO2005-09-25 01:25 AM
Yes there is an explanation to that. They use only a diode for voltage regulation. 3,3v-0.6v=2,7v
So the adc overflows. Above 2,5v instead of seeing ffffffff you see 00000000 because it overflows on the bit sign. You could have verified that yourself by reading directly the register from adc and rotating the button(and verify with the scope the voltage there). The solution to this is a good 2.5v regulator.2005-09-25 08:46 PM
@RISC
Thank you. What do you mean by ''To do this it's better to chose two voltage the first 0''? @Tudor At the moment it's only the offset that I was investigating. But I'll be aware of the problem....! Thanks.2005-09-25 11:55 PM
Okay.
I've encountered another problem during testing of our target board (not the evaluation board). I want to do a single conversion of each analog input. But the program stoppes in second while (ADC12_FlagStatus (ADC12_DAx)==RESET); Is it not possible to do a single conversion, then change channel, and do another conversion?2005-09-28 02:28 AM
Well how do I find the Offset and the gain, please include an example in C.
Best regards, Frank Andersen2005-09-29 02:07 AM
Thanks, but in the source it says 2500 mV and 1830 mV in another line, I think it is the 2500 mV, that is the correct value?
Best regards, Frank Andersen2005-12-19 09:23 AM
There are a few questions I have about the ADC conversion offset thread:
1) Is Frank Anderson correct about the comment in the example calibration code that the 1830 mV should have been 2500 mV? 2) Why did ST make this ADC so convoluted? It seems that in a production setting I would need more external circuitry to calibrate the offset and gain of the internal ADC than I would need for just putting a serial ADC on the board (lower cost anyway). What is the ''typical'' way of using the on board ADC? What is the benefit of using the two's complement output of the ADC? Thanks in advance for any insight. Doug