I'm trying to calibrate the ADC of the Hercules evaluation board for the TMS570LS3137.
I have configured to ADC to use 12bit values, but I get 10bit values from the ADCALR register instead of 12bit values:
- low: 0
- middle-low: 426
- middle-high: 597
- high: 1023
In the figure 18-10 from the technical reference manual (spnu499) is shows that the ADCALR only has 10bits. What is correct?
In addition I have an understanding problem: The correction that I can configure in the ADCALR is just an offset independently of the analogue value that I wants to convert. But as shown in figure 18-11 in the TRM the real transfer function has not just a constant offset relative to the theoretical transfer function! Does the error offset "correction" generate more error than it should correct? I think that I have to set the ADCALR to 0 after the calibration and then correct the calibrated values by my self.