AN4207 Single ended zero reference mode
Hello.
Reffering to AN4207(Doc ID 023945 Rev 1) Single ended zero reference mode (Page 9):
This mode injects an input common mode of half scale to the ADC thus maintaining the dynamic range the same as in differential mode (-32767 to +32767). In this mode, the injected common mode is dependent on gain variations.
The formula is: Vin = SDADCx_AINyP = (ReadData + 32767) * Vref/(gain x 65535)
I suspect here is a mistake. There should be -32768 (0x8000) instead of -32767 (0x8001).
And the formula should apply offset 32768 to ReadData.
Or how to explan SDADC_GetInjectedConversionValue() returning 0x8000 in case of connecting ADC input to ground?
