The ADC supports up to eight external analog inputs. It can be operated in One-shot mode with sampling under software control, or Continuous mode with a programmable sampling rate.
- GPIO pins with analog input function, see Pin assignments, also marked with name AIN. Input range is 0 to VDD.
- VDD (divided down to a valid range using the programmable gain stage)
- DVDD
- AVDD
Oversampling can be done with either noise shaping or by accumulation and averaging.
Internally, the ADC is always a differential analog-to-digital converter, but by default it is configured with single-ended input in the MODE field of the CH[n].CONFIG register. In single-ended mode, the negative input will be shorted to ground internally.
The assumption in single-ended mode is that the internal ground of the ADC is the same as the external ground that the measured voltage is referred to. The ADC is thus sensitive to ground bounce on the PCB in single-ended mode. If this is a concern we recommend using differential measurement.