Datasheet

After a conversion, the INPUTOFFSET register will be incremented by one, causing the next conversion
to be done with the positive input equal to MUXPOS + INPUTOFFSET. The sum of MUXPOS and
INPUTOFFSET gives the input that is actually converted.
Bits 19:16 – INPUTSCAN[3:0] Number of Input Channels Included in Scan
This register gives the number of input sources included in the pin scan. The number of input sources
included is INPUTSCAN + 1. The input channels included are in the range from MUXPOS +
INPUTOFFSET to MUXPOS + INPUTOFFSET + INPUTSCAN.
The range of the scan mode must not exceed the number of input channels available on the device.
Bits 12:8 – MUXNEG[4:0] Negative Mux Input Selection
These bits define the Mux selection for the negative ADC input. selections.
Value Name Description
0x00
PIN0 ADC AIN0 pin
0x01
PIN1 ADC AIN1 pin
0x02
PIN2 ADC AIN2 pin
0x03
PIN3 ADC AIN3 pin
0x04
PIN4 ADC AIN4 pin
0x05
PIN5 ADC AIN5 pin
0x06
PIN6 ADC AIN6 pin
0x07
PIN7 ADC AIN7 pin
0x08-0x
17
Reserved
0x18
GND
Internal ground
0x19
IOGND I/O ground
0x1A-0x
1F
Reserved
Note: 1. Only available in SAM R21G.
Bits 4:0 – MUXPOS[4:0] Positive Mux Input Selection
These bits define the Mux selection for the positive ADC input. The following table shows the possible
input selections. If the internal bandgap voltage channel is selected, then the Sampling Time Length bit
group in the SamplingControl register must be written.
MUXPOS[4:0] Group configuration Description
0x00 PIN0 ADC AIN0 pin
0x01 PIN1 ADC AIN1 pin
0x02 PIN2 ADC AIN2 pin
0x03 PIN3 ADC AIN3 pin
0x04 PIN4 ADC AIN4 pin
0x05 PIN5 ADC AIN5 pin
0x06 PIN6 ADC AIN6 pin
0x07 PIN7 ADC AIN7 pin
SAM D21 Family
ADC – Analog-to-Digital Converter
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40001882D-page 915