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 1. Input Voltage Values in Single-ended Mode
Ci Gain
Signed Nonsigned 1 2 4
-2048 0 0 0.75 1.125
0 2047 1.5 1.5 1.5
2047 4095 3 2.25 1.875