BQ25620: ADC running average

Part Number: BQ25620


Hi all,

the REG0x26_ADC_Control Register has 2 bitfields related to a "running average":
- ADC_AVG,
- ADC_AVG_INIT,
but the datasheet provides no further information about averaging.

What kind of average is this? Moving average - how many samples? Or is it an IIR like Yn = (Xn + Yn-1)/2?

Thanks,
Wolfgang

  • Hi Wolfgang,

    1)In averaging mode, each new sample is averaged with the previous value of that channel's output register.

    2)When ADC_AVG_INIT = 1, the first converted value is stored without averaging, and each subsequent value is averaged. In this mode,

    the first stored value is X0,

    the second value is (X1 + X0)/2

    the third stored value is (X2 + (X1+X0)/2) / 2 =  (½ X2 + ¼ X1 + ¼ X0), where X0, X1 and X2 are the sequential values measured by the ADC.

    3)When ADC_AVG = 1 in one-shot mode, two samples are taken and averaged.

    Thanks,

    Ning