An MCU-based touch sensing applications may use the charge transfer acquisition principle, supported by STMTouch touch sensing libraries, to sense changes in capacitance. The electrode capacitance (CX) is charged to a stable reference voltage (VDD for general purpose Arm®-based STM32 microcontrollers). The charge is then transferred to a known capacitor referred to as the sampling capacitor CS. This sequence is repeated until the voltage on CS reaches the internal reference voltage VIH. The number of transfers required to reach the threshold depends on the size of the electrode capacitance and represents its value.
To ensure stable operation of the solution, the number of transfers needed to reach the threshold is adjusted by an infinite impulse response (IIR) filter that compensates for environmental changes such as temperature, power supply, moisture, and surrounding conductive objects.
Since CS is an integral part of the design, the non-ideal effects of capacitors must be considered.
Note: Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.