57.8.4.2 Single-ended Mode (12-bit mode)

A single input voltage VIN can be applied to selected pins, e.g. AFE0_AD0 or AFE0_AD1. The ideal code Ci is calculated using the following formula and rounding the result to the nearest positive integer.

The single-ended ideal code conversion formula is:

Ci=4096VVREFP×(VINVDAC)×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-32. Input Voltage Values in Single-ended Mode
CiGain
SignedNonsigned124
-2048000.751.125
020471.51.51.5
2047409532.251.875