2.1 Series Mode Configuration

There are two available Series modes: Series Accumulation and Series Accumulation with Scaling. In both modes, the ADC requires one trigger per conversion, where the Sample (ADCn.SAMPLE) register is updated with each conversion result. The samples are automatically accumulated and placed in the Result (ADCn.RESULT) register when the last conversion in the series is finished. In Series Accumulation mode, the accumulated result is presented as-is, while in Series Accumulation with Scaling, the result is scaled to ease output processing as shown in Section Series Accumulation with Scaling.

The two modes can be selected by writing the MODE bits in the ADCn.COMMAND register. Below are code examples showing the configuration of the Series modes.

/* Series Accumulation mode */
ADC0.COMMAND = ADC_MODE_SERIES_gc;
/* Series Accumulation with Scaling mode */
ADC0.COMMAND = ADC_MODE_SERIES_SCALING_gc;