SLAA842B December 2018 – August 2019 DS90C401 , DS90C402 , MSP430FR2512 , MSP430FR2522 , MSP430FR2532 , MSP430FR2533 , MSP430FR2632 , MSP430FR2633 , MSP430FR2672 , MSP430FR2673 , MSP430FR2675 , MSP430FR2676
The 5th step of designing a successful capacitive touch sensing system is to develop the firmware with the optimized tuning configuration based on the system requirements defined in Step 2 and the hardware developed in Step 4.
TI provides two software development tools that can reduce firmware development effort and time. Download the latest version of the tools.
or
Step 5a: CapTIvate Design Center
The CapTIvate Design Center is a rapid development tool that accelerates capacitive touch designs for CapTIvate Technology enabled MSP430 devices. By helping guide you through the capacitive touch development process, the CapTIvate Design Center can simplify accelerate any touch design through the use of innovative user graphical interfaces, wizards and controls. This GUI tool can generate the source code, perform real time tunning and also provide example projects.
Step 5b: CapTIvate Tuning Process
It is important to first understand how to leverage the software development tools to tune the sensor and then how to actually tune the sensor performance step by step.
Step 5b.1: Create the Project
Refer to Create a new project for details.
Step 5b.2: Generate Source Code
Refer to Generate source code for details.
Step 5b.3: Program Source Code to MCU
Refer to Loading and running generated projects for details.
Step 5b.4: Real-Time Tuning and Configuring
After connecting the target MCU to CapTIvate Design Center GUI tool you should be able to display the real-time sensor data, and also to enable reading and modifying the sensor’s configuration and tuning parameters.
Open the Sensor Properties window by double clicking the sensor element.
Open the Controller Properties window by double clicking the controller element.
NOTE
Make sure to enable the advance mode to see all the tuning parameters that are listed in this document. In CapTIvate Design Center, click Options → Features → Advanced → OK (See Figure 23).
Three key areas determine the capacitive touch performance. The purpose of the tuning process is to balance the performance tradeoffs in these three areas.
Sensitivity Tuning Checklist
No. | Parameter | Location | Recommendations |
---|---|---|---|
1 | Conversion Gain | Sensor Properties → Conversion_Control | 100 |
2 | Conversion Count | Sensor Properties → Conversion_Control | Depends on the sensor and mechanical design. Start from the small number and increase it until reach the desired touch delta. |
3 | Frequency Divider | Sensor Properties → Conversion_Control | Self capacitance: f/4
Mutual capacitance: f/2 |
4 | Delta | Sensor Properties → Channel Table | Desired touched delta depends on applications |
1 and 2. Conversion Gain and Conversion Count
3. Frequency Divider
4. Delta
Table 14 is a reliability tuning checklist.
No. | Parameter | Location | Recommendations |
---|---|---|---|
1 | Prox Threshold | Sensor Properties → Tuning | This proximity threshold is an absolute value of the counts not percentage. The value depends on applications. |
2 | Touch Threshold | Sensor Properties → Tuning | This touch threshold is a percentage value of LTA. The value depends on the PCB and overlay design. |
3 | Signal-to-Noise Ratio Measurement | Sensor Properties → SNR | Run SNR measurement before moving forward
Make sure Advice = GOOD |
4 | Prox Debounce | Sensor Properties → Tuning | Debounce In = 1
Debounce Out = 1 |
5 | Touch Debounce | Sensor Properties → Tuning | Debounce In = 2
Debounce Out = 2 |
6 | Noise Immunity | Controller Properties → Compile Time Options | If noisy environment and system → enable noise immunity |
7 | Error Threshold | Sensor Properties → Tuning | Long term average (LTA) x 2 |
8 | Sensor Timeout Threshold | Sensor Properties → Tuning | 65535 (off) or depends on application |
9 | Count Filter Beta | Sensor Properties → Tuning | 1 or 2 |
10 | LTA Filter Beta | Sensor Properties → Tuning | 7 |
1. Prox Threshold
2. Touch Threshold
3. SNR Measurement
4 and 5. Prox Debounce and Touch Debounce
6. Noise Immunity
Based on the operating conditions defined in Step 2, if the application requires noise immunity feature, you can enable the software noise immunity feature in CapTIvate Design Center. Refer to Noise Immunity Tuning Check List for details.
Table 15 is a response time tuning checklist.
No. | Parameter | Location | Recommendations |
---|---|---|---|
1 | Active Mode Scan Rate (ms) | Controller Properties → Conversion Control | Typical HMI application, 33 ms (30 Hz) |
2 | Scan Time Estimation | Controller Properties → Scan Time Estimation | |
3 | Touch Debounce | Sensor Properties → Tuning | Debounce in = 2
Debounce out = 1 |
1. Active Mode Scan Rate
2. Scan Time Estimation
Make sure the scan rate period is longer than the time takes to scan all the sensors. This window shows the estimated:
3. Touch Debounce
Step 5b.5: Update Source Code
After real-time tuning and configuration, you can use CapTIvate Design Center to update the source code with the latest tuning parameters. The output directory must be the IDE source code project directory.
Step 5c: Firmware Development
After the basic CapTIvate tuning process, the next step is to complete the firmware development based on specific application requirements.
Step 5c.1: Accessing the Sensor Data
Step 5c.2: Customize Communication Code
Step 5c.3: Optimize Low Power Consumption
Refer to Ultra Low Power Optimization for details.