This App Note states:
To have the maximum ADC conversion precision, it is preferable that the ADC dynamic range matches the maximum amplitude of the signal. Assume that the signal to be converted varies between 0 V to 2.5 V and that VAREF is equal to 3.3 V. The maximum signal value converted by the ADC is 3102 (2.5 V) as shown in Figure 9. In this case, there are 993 unused transitions (4095 – 3102 = 993). This implies a loss in the converted signal accuracy especially if the ADC lineaty performance is not ideal.
In my case I'm using a SAR ADC to measure RMS of sine wave. The ADC VREF is 3.3V coming from the same power supply of the microcontroller. The mid point of the input signal is set to 1.65V using the circuit below.
With 1.65V being the mid point, my RMS measurements have around 7% error.
When I use 1.25V as the midpoint as below, the error is reduced to ~1%.
The point is that I was expecting the error to increase with 1.25V mid point since the unused ADC translation range increased as my VREF remained to be 3.3V. Why is this?