18.1.3 Step 3: Adjusting Oversampling

Once the clipping is prevented by hardware filtering and full charge transfer is ensured, the next step is to find the optimal settings for oversampling.

This is a trade-off between noise tolerance against response time and power consumption. More samples give better quality data but take longer to acquire.

Narrow Band Noise Counter Measures

If the noise includes a frequency component that is related to the capacitance measurement frequency, then no amount of oversampling will average out the noise effects. Any batch of measurement samples taken with the same sampling frequency will result in a measurement offset. The actual offset resulting from each measurement depends on the relative phase of the noise component and the sampling frequency.

This effect is illustrated in the following diagram, where the noise is represented by a sine wave.