SLAU857A May   2021  – July 2021 MSP430FR2476 , MSP430FR2512 , MSP430FR2522 , MSP430FR2532 , MSP430FR2533 , MSP430FR2632 , MSP430FR2633 , MSP430FR2672 , MSP430FR2673 , MSP430FR2675 , MSP430FR2676

 

  1.   1
  2.   2
    1.     3
    2.     4
  3.   5
    1.     6
    2.     7
    3.     8
  4.   9
    1.     10
      1.      11
      2.      12
      3.      13
    2.     14
    3.     15
  5.   16
    1.     17
      1.      18
      2.      19
        1.       20
        2.       21
        3.       22
      3.      23
    2.     24
      1.      25
      2.      26
  6.   27
    1.     28
      1.      29
      2.      30
      3.      31
      4.      32
      5.      33
    2.     34
      1.      35
      2.      36
      3.      37
    3.     38
    4.     39
      1.      40
      2.      41
      3.      42
      4.      43
      5.      44
    5.     45
    6.     46
      1.      47
      2.      48
      3.      49
      4.      50
      5.      51
  7.   52
    1.     53
    2.     54
    3.     55
    4.     56
    5.     57
  8.   58
  9.   59

Relationships of Parameters in CapTIvate Technology

The parameter structure of CapTIvate technology is shown in Figure 5-5. The parameters are divided into hardware configuration parameters and software configuration parameters, all of which are configured in the sensor widget. From this, you can also know which parameters can be automatically updated when the CPU is not working and the CapTIvate MCU is in Wake-on-Prox mode.

GUID-20210517-CA0I-HHWB-Z1LJ-7RTW9CFSMNMN-low.png Figure 5-5 Parameter Relationships

First, the sampling module generates raw data by detecting the external capacitance. Conversion Count and Conversion Gain determine the gain of the sampling module. Then the data passes through the optional anti-noise module (sampling frequency spread spectrum, oversampling, and other functions) to achieve noise filtering. For GEN1, part of the anti-noise function is implemented by software.

The output data is first compared to the Error Threshold. Then filterCount (default is 1) is generated through IIR filtering of different intensities, which is used to characterize real-time capacitance changes, and LTA (Long time average, default is 7) is used to characterize the base capacitance of the environment. Here filterCount corresponds to "Count" in the GUI data monitoring module, and LTA corresponds to "LTA". The Delta between the two is used to characterize the change of capacitance generated by a touch. The relationship between the capacitance change percentage caused by the touch and the filterCount and LTA is shown in Equation 8. For self-capacitance detection, Delta is a positive value, and for mutual-capacitance detection, Delta is a negative value.

Equation 7. D e l t a = f i l t e r C o u n t L T A
Equation 8. Δ C t o u c h = G a i n 1 L T A + D e l t a 1 L T A * 100 %

The entire signal change process is: when power is on, the calibration function calibrates the equivalent value of the environmental base capacitance to Conversion Count. That is, LTA = Conversion Count. Therefore, Conversion Count can also be understood as a parameter that determines the resolution of the system. At this time, because there is no touch, filterCount=LTA. When touched by a human hand, due to the different filter strengths of the LTA Filter and the Counter Filter, the filterCount changes rapidly, and the Delta increases from 0. When the Prox Threshold is triggered, the LTA Filter is closed and the LTA value remains unchanged. filterCount continues to change, Delta continues to increase, which triggers Touch Threshold. When the hand leaves, if the signal is weaker than the Prox Threshold, the LTA Filter opens and the LTA value starts to refresh. Therefore, the Prox Threshold must be smaller than the Touch Threshold to ensure the normal working mechanism of LTA. In addition, if the Prox Threshold is set too large, human touch causes the LTA to change significantly, and the LTA drifts after multiple consecutive touches, and the system cannot correctly respond to subsequent touches.

Strictly speaking, both Prox Threshold and Touch Threshold are thresholds set for Delta. When triggered, the corresponding global variable of the system is set, and the signal is sent to the subsequent program logic. It should be noted that Prox Threshold is an absolute threshold, while Touch Threshold is a relative threshold. The direct relationship between the two and LTA is shown in Equation 9 and Equation 10. In addition, it can be seen from Equation 8 that Delta has a parallel relationship with ΔCtouch. This is also the reason why Prox/Touch Threshold and Prox/Touch Threshold Percentage are different, because the latter directly characterizes the change in touch capacitance.

Equation 9. D e l t a = P r o x   T h r e s h o l d
Equation 10. D e l t a = L T A × T o u c h   T h r e s h o l d 128

Other Thresholds determines the setting events of the Touch flag and Proximity flag of the entire Sensor. For example, the MCU is powered on when a human hand touches. Then, the touch signal of the human hand is counted as the base capacitance of the environment. At this time, removing the finger generates a negative signal. When the negative signal reaches the Negative Threshold, system calibration is triggered. The debounce in and out threshold introduces a signal anti-jitter mechanism to combat noise, which delays the response of the button to a certain extent. The Sensor Timeout Threshold is used to prevent environmental changes from triggering the Prox Threshold situation. After the threshold is triggered, the system recalibrates the environmental base capacitance.