32.6.1 Digital Filter/Average
The digital filter/average module consists of an accumulator with data feedback options, and a control logic to determine when threshold tests need to be applied. The accumulator is a 16-bit wide register that can be accessed through the ADACCH:ADACCL register pair.
The CRS bits control the data shift on the accumulator result, which effectively divides the value in accumulator (ADACCU:ADACCH:ADACCL) register pair. For the Accumulate mode of the digital filter, the shift provides a simple scaling operation. For the Average/Burst Average mode, the Shift bits are used to determine the number of logical right shifts to be performed on the accumulated result. For the Low-Pass Filter mode, the shift is an integral part of the filter, and determines the cut-off frequency of the filter. The table below shows the -3 dB cut-off frequency in ωT (radians) and the highest signal attenuation obtained by this filter at nyquist frequency (ωT = π).
CRS | ωT (radians) @ -3 dB Frequency | dB @ Fnyquist = 1/(2T) |
---|---|---|
1 | 0.72 | -9.5 |
2 | 0.284 | -16.9 |
3 | 0.134 | -23.5 |
4 | 0.065 | -29.8 |
5 | 0.032 | -36.0 |
6 | 0.016 | -42.0 |
7 | 0.0078 | -48.1 |