We have been having problems with units built around a TMS320F28335, using the ADC many readings are too high. We traced the problem to (we think) an offset, i.e. the ADC returns non-zero when connected to 0V / ground. In three different units we have found typical readings for 0V of 19, 6, 13.
I eventually thought to look at ADCOFFTRIM, and in each case found the value there was close to the observed offset described above. I if follow section 1.10 of the ADC Ref Guide (spru812a), the value for ADCOFFTRIM ends up at about -2.
It’s only 3 samples, but it looks like the ADC_Cal value is making things worse. Simply setting ADCOFFTRIM to zero gives better results.
Any explanation for this?
We are using the internal ADC reference, with ADCOFFTRIM, ADCRESEXT, ADCREFP, ADCREFM, ADCLO grounded.
Regards.