57.8.4.1 Differential Mode (12-bit mode)

A differential input voltage VIN = VINP - VINN can be applied between two selected differential pins, e.g. AFE0_AD0 and AFE0_AD1.The ideal code Ci is calculated by using the following formula and rounding the result to the nearest positive integer.

Ci=4096VVREFP×VIN×Gain+(2047)

For the other resolution defined by RES, the code Ci is extended to the corresponding resolution.

The table below is a computation example for the above formula, where VVREFP = 3V.

Table 57-31. Input Voltage Values in Differential Mode, Nonsigned Output
CiGain
SignedNonsigned124
-20480-3-1.5-0.75
02047000
2047409531.50.75