2.1 Burst Mode Configuration

There are two available Burst modes: Burst Accumulation and Burst Accumulation with Scaling. In both modes, the ADC converts a set number of samples after a trigger, and updates the Sample (ADCn.SAMPLE) register with each conversion result. The samples are automatically accumulated and placed in the Result (ADCn.RESULT) register when the last conversion in the burst is finished. In Burst Accumulation mode, the accumulated result is presented as-is, while in Burst Accumulation with Scaling, the result is scaled to ease output processing as shown in Section Burst Accumulation with Scaling.

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

/* Burst Accumulation mode */
ADC0.COMMAND = ADC_MODE_BURST_gc;
/* Burst Accumulation with Scaling mode */
ADC0.COMMAND = ADC_MODE_BURST_SCALING_gc;