67.10.4.2 Single-ended Mode (12-bit mode)

A single input voltage VIN can be applied to selected pins, e.g., ADC0_AD0 or ADC0_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:

C i = 4095 V ADVREF × V IN

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 VADVREF = 3V:

Table 67-34. Input Voltage Values in Single-ended Mode
Non-signed Ci VIN
0 0
2047 1.5
4095 3