SLAA843A August   2018  – March 2019 MSP430FR2512 , MSP430FR2512 , MSP430FR2522 , MSP430FR2522 , MSP430FR2532 , MSP430FR2532 , MSP430FR2533 , MSP430FR2533 , MSP430FR2632 , MSP430FR2632 , MSP430FR2633 , MSP430FR2633

 

  1.   Sensitivity, SNR, and design margin in capacitive touch applications
    1.     Trademarks
    2. 1 Overview
      1. 1.1 Design Objectives
        1. 1.1.1 Reliability
        2. 1.1.2 Robustness
      2. 1.2 The Designer's Dilemma
    3. 2 Recommended Actions for Developers
      1. 2.1 Run SNR and Design Margin Tests
    4. 3 Terminology
      1. 3.1 Signal (S)
      2. 3.2 Noise (N)
      3. 3.3 Threshold (Sensitivity) (Th)
      4. 3.4 Design Margin
        1. 3.4.1 False Detection Margin (Min)
        2. 3.4.2 Detection Margin (Mout)
      5. 3.5 Signal-to-Noise Ratio (SNR)
      6. 3.6 Advice
    5. 4 CapTIvate Device Performance
      1. 4.1 Minimum Recommended Values
      2. 4.2 CapTIvate Device SNR
    6. 5 Interpreting the Results
      1. 5.1 Interpreting the Advice
      2. 5.2 Check Other Results
    7. 6 Application of Terms
      1. 6.1 Count and Percent Change Analysis With 7.5-mm Overlay, Advice = POOR
      2. 6.2 Count and Percent Change Analysis With 1.5-mm Overlay, Advice = GOOD
      3. 6.3 Count and Percent Change Analysis (1.5-mm Overlay vs 7.5-mm Overlay)
      4. 6.4 Effect of Post-Processing and Sampling Rate
    8. 7 Summary
  2.   Revision History

Count and Percent Change Analysis With 7.5-mm Overlay, Advice = POOR

Because the capacitive touch sensing process involves a change in capacitance over time, the capacitive touch software must maintain a reference value that represents the untouched capacitance. This reference value is a slow moving average referred to as the long-term average, or LTA. Each new sample is compared against this moving average to determine if a touch is present or not. Figure 10 shows the count and the long-term average of the test hardware with a 7.5-mm overlay when a touch is applied and then removed. Note that the count value (the conversion result) decreases from the long-term average value of approximately 1410 to approximately 1264 (a change of approximately 146 counts). Some noise is also present in this particular measurement.

D002_SLAA843.gifFigure 10. Count Analysis With 7.5-mm Overlay

To determine the signal 'S' and noise 'N' parameters for this data set, the count and LTA values must be converted into a percent change in capacitance format. This is necessary, because the CapTIvate analog front end has a programmable offset feature to amplify small changes in capacitance. The 1410 to 1264 count change due to a touch is a –10% change in counts. However, this is not the change in capacitance. The change in counts appears larger than the change in capacitance, because offset is applied in the conversion to remove the effect of some of the electrode's parasitic capacitance (Cp). Equation 9 shows the relationship between counts and percent change.

Equation 9. C x = Conversion_Gain Count - Conversion_Gain LTA   ×100 %

In this equation, the Conversion_Gain parameter is taken from CapTIvate Design Center, and the LTA and count are taken from the data set. Applying this equation to the LTA an count values in the previous example gives the result in Figure 11.

Example: Signal Percent Change in Capacitance = [(100/1264) – (100/1410)] × 100% = 0.82%. Note that a decrease in counts represents an increase in capacitance, which is why the direction of change due to a touch appears to flip.

D001_SLAA843.gifFigure 11. Percent Change Analysis With 7.5-mm Overlay

The application of Equation 9 in Figure 11 provides a clear picture of how the electrode's capacitance changed as a result of the touch. As can be seen in the figure, the touch created an average change in capacitance of 0.82%. Also note that the noise level in the direction of a touch was as high as 0.12% in this example. These values provide the signal 'S' and noise 'N' respectively. It is now possible to compute an SNR for this example.

Equation 10. SNR = S N = 0 .82 % 0 .12 % =6 .8 :1

With 'S', 'N', and SNR now available, a detection threshold can be placed and the design margin can be analyzed. Design margin provides more information than SNR for capacitive touch applications, because it indicates the margin between the highest noise levels and the detection threshold. This provides insight into false detection risk. The reason this needs to be considered along with SNR is that if the detection threshold is set to a smaller than normal value for some reason, the SNR does not change but the false detection risk does (because the distance between the noise floor and the detection threshold is smaller).

Figure 11 shows that the Threshold (Th) = 0.5%. Based on Table 4, the minimum recommended threshold for 0°C operating temperature is 0.9%. This means that if this example is designed to operate down to 0°C then the SNR analyze tool will give an advice as POOR.

Equation 11 calculates the Min in this example. In this example, the Min of 0.38% is also lower than the minimum recommended margin in 0.83% as showing in Table 4. This means that if this example is designed to operate down to 0°C then the SNR analyze tool will give an advice as POOR.

Equation 11. M in = Th - N =0 .5 % -0 .12 % =0 .38 %

Equation 12 calculates the Mout. This is the difference between the lowest percent change during a touch and the detection threshold.

Equation 12. M out = S low - Th =0 .73 % -0 .50 % =0 .23 %