17.3.1.1 Pseudo Differential CVD Algorithm

The CVD allows measuring a capacitance connected to the CVDANx input. It can be used to detect an event of touch in touch sensor applications.

CVD measurement algorithm consists of two phases, Sample A and Sample B.

Sample A: The capacitive sensor CSENSOR is connected to I/O power (VDD, charged), and the internal CVD capacitors array CCVD is connected to ground (GND, discharged), as shown in Figure 17-2, Step 1. Then, both capacitors are connected to balance a charge between them, as shown in Figure 17-2, Step 2. After the charge between capacitors is settled, the resulting voltage is proportional to a ratio of the CSENSOR and CSENSOR+CCVD capacitances. Then, this voltage is converted by the ADC 5.

Sample B: The capacitive sensor CSENSOR is connected to ground (GND, discharged), and the internal CVD capacitors array CCVD is connected to I/O power (VDD, charged), as shown in Figure 17-2, Step 3. Then, both capacitors are connected to balance a charge between them, as shown in Figure 17-2, Step 4. After the charge between capacitors is settled, the resulting voltage is proportional to a ratio of the CCVD and CSENSOR+CCVD capacitances. Then, this voltage is converted by the ADC 5.

Figure 17-2. CVD Connection Diagrams for Sample A and Sample B

The ITC module internally calculates the difference between Sample A and Sample B and accumulates the result in the ITCRESx register in a signed format. Equation 17-1 shows the relation between the result in ITCRESx register and capacitances of CSENSOR and CCVD:

Equation 17-1. CVD Result Calculation

To ensure the maximum sensitivity, CSENSOR should be equal or close to CCVD value, which can be achieved by adjusting CCVD capacitance using the CVDCAP[3:0] bits (ITCLSxSEQ[31:28]).

The typical waveform on the CVD Sensor is shown in Figure 17-3.

Figure 17-3. CVD Pin Waveform

The CVD measures total capacitance, so as the base capacitance of a sensor decreases, the change in signal caused by a measured factor (such as user’s finger in case of a capacitive touch application) will increase. Active guards are a way of minimizing the base capacitance by reducing the electric potential between the sensor and its surrounding environment. When designing the guard for an application, the best solution is to encircle the sensor and guard trace completely. The guard trace should be placed between the sensor and any low impedance source. The guard signal should be as close as possible to the CVD waveform. To generate the sensor’s guard signal, the CVDTXx pins selected in ITCTXA, ITCTXB and ITCTXC registers and controlled in Acquisition Sequencer commands can be used.