MCUXpresso SDK Documentation

tsi_v5_mutual_cap

tsi_v5_mutual_cap#

Overview#

The tsi_v5_mutual_cap example shows how to use TSI_V5 driver in mutual-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_V5 Mutual-Cap mode Example Start!

Please do not touch pad KEY3 when in calibration process! Calibrated counters for mutual-cap pad KEY3 is: 2198

NOW, comes to the software trigger scan using polling method! Mutual-cap pad KEY3 Normal mode counter is: 2200

NOW, comes to the software trigger scan using interrupt method! Mutual-cap pad KEY3 Normal mode counter is: 2198

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

Supported Boards#

FRDM-KE15Z
Hardware requirements
  • Micro USB cable

  • FRDM-KE15Z board

  • FRDM-TOUCH board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.

  2. Open a serial terminal with the following settings:

  • 115200 baud rate

  • 8 data bits

  • No parity

  • One stop bit

  • No flow control

  1. Download the program to the target board.

  2. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, the following message is displayed in the terminal:

TSI_V5 Mutual-Cap mode Example Start!

Please do not touch pad KEY3 when in calibration process!
Calibrated counters for mutual-cap pad KEY3 is: 2600 

NOW, comes to the software trigger scan using polling method!
Mutual-cap pad KEY3 Normal mode counter is: 2600 

NOW, comes to the software trigger scan using interrupt method!
Mutual-cap pad KEY3 Normal mode counter is: 2600 

NOW, comes to the hardware trigger scan method!
After running, touch pad KEY3 each time, you will see LED toggles
FRDM-KE16Z
Hardware requirements
  • Micro USB cable

  • FRDM-KE16Z board

  • FRDM-TOUCH board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.

  2. Open a serial terminal with the following settings:

  • 115200 baud rate

  • 8 data bits

  • No parity

  • One stop bit

  • No flow control

  1. Download the program to the target board.

  2. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, the following message is displayed in the terminal:

TSI_V5 Mutual-Cap mode Example Start!

Please do not touch pad KEY3 when in calibration process!
Calibrated counters for mutual-cap pad KEY3 is: 2600 

NOW, comes to the software trigger scan using polling method!
Mutual-cap pad KEY3 Normal mode counter is: 2600 

NOW, comes to the software trigger scan using interrupt method!
Mutual-cap pad KEY3 Normal mode counter is: 2600 

NOW, comes to the hardware trigger scan method!
After running, touch pad KEY3 each time, you will see LED toggles
FRDM-KE17Z
Hardware requirements
  • Micro USB cable

  • FRDM-KE17Z board

  • FRDM-TOUCH board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.

  2. Open a serial terminal with the following settings:

  • 115200 baud rate

  • 8 data bits

  • No parity

  • One stop bit

  • No flow control

  1. Download the program to the target board.

  2. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, the following message is displayed in the terminal:

TSI_V5 Mutual-Cap mode Example Start!

Please do not touch pad KEY3 when in calibration process!
Calibrated counters for mutual-cap pad KEY3 is: 2600 

NOW, comes to the software trigger scan using polling method!
Mutual-cap pad KEY3 Normal mode counter is: 2600 

NOW, comes to the software trigger scan using interrupt method!
Mutual-cap pad KEY3 Normal mode counter is: 2600 

NOW, comes to the hardware trigger scan method!
After running, touch pad KEY3 each time, you will see LED toggles
FRDM-KE17Z512
Hardware requirements
  • Micro USB cable

  • FRDM-KE17Z512 board

  • FRDM-TOUCH board

  • Personal Computer

Board settings

Keep the default configuration for the FRDM board and connect the FRDM-TOUCH board with the FRDM board.

Prepare the Demo
  1. Connect a USB cable between the PC host and the MCU-LINK USB port on the board.

  2. Open a serial terminal with the following settings:

  • 115200 baud rate

  • 8 data bits

  • No parity

  • One stop bit

  • No flow control

  1. Download the program to the target board.

  2. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, the following message is displayed in the terminal: