tsi_v5_selfmode#
Overview#
The tsi_v5_selfmode demo shows how to use TSI_V5 driver in self-cap mode:
In this example , available electrodes on board is used to show how to realize touch key.
Firstly, get the non-touch calibration results as baseline electrode counter;
Then, start the periodical Software-Trigger scan using polling method to detect finger touch;
Wait for the electrodes touched and deal with the event.
Running the demo#
When running successfully, LED will be turn on when the electrode on board touched and will be turn off when released. The log output in terminal shall be similar as below:
TSI self mode demo.
TSI key touched.
TSI key released.
TSI key touched.
TSI key released.
Supported Boards#
FRDM-KE15Z
Hardware requirements
Micro USB cable
FRDM-KE15Z board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When running successfully, LED will be turn on when the electrode on board touched and will be turn off when released. The log output in terminal shall be similar as below:
TSI self mode demo.
TSI key touched.
TSI key released.
TSI key touched.
TSI key released.
FRDM-KE16Z
Hardware requirements
Micro USB cable
FRDM-KE16Z board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When running successfully, LED will be turn on when the electrode on board touched and will be turn off when released. The log output in terminal shall be similar as below:
TSI self mode demo.
TSI key touched.
TSI key released.
TSI key touched.
TSI key released.
FRDM-KE17Z
Hardware requirements
Micro USB cable
FRDM-KE17Z board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When running successfully, LED will be turn on when the electrode on board touched and will be turn off when released. The log output in terminal shall be similar as below:
TSI self mode demo.
TSI key touched.
TSI key released.
TSI key touched.
TSI key released.
FRDM-KE17Z512
Hardware requirements
Micro USB cable
FRDM-KE17Z512 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the MCU-LINK USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When running successfully, LED will be turn on when the electrode on board touched and will be turn off when released. The log output in terminal shall be similar as below:
TSI self mode demo.
TSI key touched.
TSI key released.
TSI key touched.
TSI key released.