2 Assignment 2: Software Accumulation Compared to Hardware Accumulation for ADC

In this assignment, the power consumption of two different ADC accumulation techniques will be compared. Accumulating results in an ADC has the role of increasing the accuracy of the results and minimizing the effect of noise.

The first approach will trigger conversions again and again until 128 of these are completed. The results will be added to a variable that acts as an accumulator.

The second approach takes advantage of the built-in accumulator for the ADC. It will use the accumulated conversion mode of the ADC to run 128 conversions and add the results to the hardware accumulator.