33.4.2.6 Input and Reference Selection
The input selection to the ADC is controlled by the Positive and Negative Input Multiplexer bit fields in the Input Control register (INPUTCTRL.MUXPOS and INPUTCTRL.MUXNEG). For single-ended conversions, only MUXPOS is used, while both MUXPOS and MUXNEG are used for differential conversions.
The reference voltage (VREF) determines the conversion range of the ADC. It can be selected by configuring the Reference Selection bit field in the Control C register (CTRLC.REFSEL).
| Mode | Resolution | Negative Input Voltage (VINN) | Positive Input Voltage (VINP) for Minimum Result | Input Voltage (VINP) for 0 Result | Input Voltage (VINP) for Maximum Result | LSb Resolution |
|---|---|---|---|---|---|---|
| Single-ended | 8 | GND | GND | VREF | VREF/256 | |
| 10 | VREF/1024 | |||||
| 12 | VREF/4096 | |||||
| 13 | VREF | 2 * VREF | VREF/4096 | |||
| Differential | 8 | MUXNEG | VINN - VREF | VINN | VINN + VREF | VREF/128 |
| 10 | VREF/512 | |||||
| 12 | VREF/2048 | |||||
| 13 | VREF/4096 | |||||
Changing the input or reference selections while a conversion is ongoing will corrupt the output. To avoid this, detect an ongoing conversion by reading the ADC Busy bit in the Status register (STATUS.ADCBUSY). Writing STOP to the Start Conversion bit field in the Command register (COMMAND.START) will stop an ongoing conversion.
After switching the input or reference, the ADC requires time to settle. Refer to the Electrical Characteristics chapter for further details.
