4.4 Free-Running Mode
In Free-Running mode, a new conversion is started as soon as the previous accumulation has completed.
It is configured by writing the Free-Running (FREERUN) bit to
‘1
’ in the Control F (ADCn.CTRLF) register as shown in the code
snippet below.
ADC0.CTRLF = ADC_FREERUN_bm; /* ADC Free-Running mode enabled */
A new conversion can be started immediately after a result is available in the Result (ADCn.RESULT) register. This is signaled by RESRDY in the Interrupt Flags (ADCn.INTFLAGS) register.