This is the documentation for the latest (main) development branch of mcuxpresso sdk. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

tsi_v6_self_cap

Overview

The tsi_v6_self_cap example shows how to use TSI_V6 driver in self-cap mode:

In this example , we make use of the available electrodes on board to show driver usage.

  1. Firstly, we get the non-touch calibration results as baseline electrode counter;

  2. Then, we start the Software-Trigger scan using polling method and interrupt method;

  3. Then, we start the Hardware-Trigger scan using interrupt method.

Running the demo

When running successfully, the log output in terminal shall be similar as below:

TSI_V6 Self-Cap mode Example Start! Calibrated counters for channel 0 is: 4328 Calibrated counters for channel 1 is: 4310 Calibrated counters for channel 2 is: 5095 Calibrated counters for channel 3 is: 65535 Calibrated counters for channel 4 is: 8748 Calibrated counters for channel 5 is: 8512 Calibrated counters for channel 6 is: 7375 Calibrated counters for channel 7 is: 7464 Calibrated counters for channel 8 is: 4935 Calibrated counters for channel 9 is: 4872 Calibrated counters for channel 10 is: 65535 Calibrated counters for channel 11 is: 5266 Calibrated counters for channel 12 is: 5419 Calibrated counters for channel 13 is: 4494 Calibrated counters for channel 14 is: 4822 Calibrated counters for channel 15 is: 4932 Calibrated counters for channel 16 is: 5070 Calibrated counters for channel 17 is: 65535 Calibrated counters for channel 18 is: 65535 Calibrated counters for channel 19 is: 4056 Calibrated counters for channel 20 is: 8420 Calibrated counters for channel 21 is: 4048 Calibrated counters for channel 22 is: 65535 Calibrated counters for channel 23 is: 65535 Calibrated counters for channel 24 is: 65535

NOW, comes to the software trigger scan using polling method! Channel 0 Normal mode counter is: 4056

NOW, comes to the software trigger scan using interrupt method! Channel 0 Normal mode counter is: 4183

NOW, comes to the hardware trigger scan method! After running, touch pad E1 each time, you will see LED toggles.

Supported Boards