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).

Except for VDD and internal ground, the internal reference voltages are generated from an internal band gap reference.
Table 33-5. ADC Input Range and Resolution
ModeResolutionNegative Input Voltage (VINN)Positive Input Voltage (VINP) for Minimum ResultInput Voltage (VINP) for 0 ResultInput Voltage (VINP) for Maximum ResultLSb Resolution
Single-ended8GNDGNDVREFVREF/256
10VREF/1024
12VREF/4096
13VREF2 * VREFVREF/4096
Differential8MUXNEGVINN - VREFVINNVINN + VREFVREF/128
10VREF/512
12VREF/2048
13VREF/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.