2.6.5.4 Enum adc_divide_result

Enum for the possible division factors to use when accumulating multiple samples. To keep the same resolution for the averaged result and the actual input value, the division factor must be equal to the number of samples accumulated. This setting is only used when the ADC_RESOLUTION_CUSTOM resolution setting is used.

Table 2-44. Members
Enum valueDescription

ADC_DIVIDE_RESULT_DISABLE

Don't divide result register after accumulation

ADC_DIVIDE_RESULT_2

Divide result register by 2 after accumulation

ADC_DIVIDE_RESULT_4

Divide result register by 4 after accumulation

ADC_DIVIDE_RESULT_8

Divide result register by 8 after accumulation

ADC_DIVIDE_RESULT_16

Divide result register by 16 after accumulation

ADC_DIVIDE_RESULT_32

Divide result register by 32 after accumulation

ADC_DIVIDE_RESULT_64

Divide result register by 64 after accumulation

ADC_DIVIDE_RESULT_128

Divide result register by 128 after accumulation