3.5 ADC Sample Accumulator
In this use case, ADC runs in Sample Accumulating mode. It is configured to accumulate 64 samples automatically in one conversion in order to average out noise or to get averaged ADC result. Consequently, the Conversion Complete flag is only raised once, after taking the last sample of the accumulation. The ADC result is averaged over the configured number of samples. It is then converted to voltage format which is printed through the USART to the terminal.
EXAMPLE_CODE
definition to SAMPLE_ACCUMULATOR
in main.c
as:
#define EXAMPLE_CODE SAMPLE_ACCUMULATOR