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:
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:
| Non-signed Ci | VIN |
|---|---|
| 0 | 0 |
| 2047 | 1.5 |
| 4095 | 3 |
