Hardware Sample Accumulator

The ADC can be configured to automatically accumulate a number of sampling results for a single conversion trigger by writing the Sample Accumulation Number Select (SAMPNUM) bit field in the Control B (ADC.CTRLB) register. Upon receiving a conversion trigger, 2SAMPNUM sampling results will be accumulated in the ADC Result register (ADC.RES) before the Result Ready (RESRDY) bit in the Interrupt Flags (ADC.INTFLAGS) register is set. The ADC supports accumulation of up to 64 sampling results.