touch_sensing#
Overview#
The user interface of a product is a key element that design engineers need to address to provide a compelling user experience. Touchpads, slides and rotaries offer a more intuitive and effective way of user interaction than traditional buttons. And, designing a touch-based user interface is simplified with the NXP Touch solution. This solution includes software that is designed to work simply and seamlessly with NXP’s capacitive touch sensing hardware IP that’s available on Kinetis KE15Z/KE16Z/KE17Z/MCX-N9XX/MCX-N5XX MCUs. Key benefits of the NXP Touch solution include:
Robust EMC performance, noise immunity with IEC61000-4-6 standard certification with the 3V and 10V tests
Self-cap and mutual-cap modes supporting up to 6x6 matrix touchpads
Effective performance even with liquid substances such as water, salt water, oil, cold steam, etc.
High sensitivity with a boost feature to use when the touch overlay on the user interface is thick (acrylic, glass)
Supported Boards#
FRDM-K32L2A4S
Hardware requirements
Micro USB cable
FRDM-K32L2A4S 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.
Download the program to the target board.
Download a FreeMASTER tool (from: http://www.nxp.com/freemaster, version 3.1) and install the FreeMASTER
Open the FreeMASTER project NXPTouchK32l2a4s.pmp file from: MCUXpresso SDK\middleware\touch\freemaster\NXPTouchK32l2a4s.pmp and choose Project -> Options… from FreeMASTER menu.
In Comm tab set the port with description: mbed Serial Port.
Set the Speed to 115200 baud rate.
Continue with help of the NXP Touch Library Reference Manual (Chapter 8 Examples).
Running the demo
The control page in FreeMASTER should show changing values from TSI measurement. The Led on FRDM-K32L2A4S board should be shining after the touch event or should be blinking when finger is moving on the slider control. The LED color demonstrates the slider position and is changing from red through yellow, green and purple to blue color. More information can be found in the NXP Touch Library Reference Manual (Chapter 8 Examples).
FRDM-KE15Z
Hardware requirements
Micro USB cable
FRDM-KE15Z board
NXP FRDM-TOUCH board (expand the NXP Touch library features enabling to change LED’s hue or brightness and demonstrating mutual sensing keypad)
Personal Computer
Board settings
The default 5 voltage power supply is recommended for correct demo operation.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Download the program to the target board.
Download a FreeMASTER tool (from: http://www.nxp.com/freemaster, version 3.2) and install the FreeMASTER
Open the FreeMASTER project NXPTouch.pmpx file from: MCUXpresso SDK\middleware\touch\freemaster\ and choose Project -> Options… from FreeMASTER menu.
In Comm tab set the COM_ALL option or port created by the MCU board.
Set the Speed to 19200 baud rate.
Continue with help of the NXP Touch Library Reference Manual (Chapter 8 Examples or Chapter 5 Touch GUI Tool).
Running the demo
The control page in FreeMASTER should show changing values from TSI measurement. The Led on FRDM-KE15Z board should change the color after detected touch event. In case the red color shine without touching demo, debug the main function of application, code comments should explain wrong setting and find the solution. More information can be found in the NXP Touch Library Reference Manual (Chapter 8 Examples).
FRDM-KE16Z
Hardware requirements
Micro USB cable
FRDM-KE16Z board
NXP FRDM-TOUCH board (expand the NXP Touch library features enabling to change LED’s hue or brightness and demonstrating mutual sensing keypad)
Personal Computer
Board settings
The default 5 voltage power supply is recommended for correct demo operation.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Download the program to the target board.
Download a FreeMASTER tool (from: http://www.nxp.com/freemaster, version 3.2) and install the FreeMASTER
Open the FreeMASTER project NXPTouch.pmpx file from: MCUXpresso SDK\middleware\touch\freemaster\ and choose Project -> Options… from FreeMASTER menu.
In Comm tab set the COM_ALL option or port created by the MCU board.
Set the Speed to 19200 baud rate.
Continue with help of the NXP Touch Library Reference Manual (Chapter 8 Examples or Chapter 5 Touch GUI Tool).
Running the demo
The control page in FreeMASTER should show changing values from TSI measurement. The Led on FRDM-KE16Z board should change the color after detected touch event. In case the red color shine without touching demo, debug the main function of application, code comments should explain wrong setting and find the solution. More information can be found in the NXP Touch Library Reference Manual (Chapter 8 Examples).
FRDM-KE17Z
Hardware requirements
Micro USB cable
FRDM-KE15Z board
NXP FRDM-TOUCH board (expand the NXP Touch library features enabling to change LED’s hue or brightness and demonstrating mutual sensing keypad)
Personal Computer
Board settings
The default 5 voltage power supply is recommended for correct demo operation.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Download the program to the target board.
Download a FreeMASTER tool (from: http://www.nxp.com/freemaster, version 3.2) and install the FreeMASTER
Open the FreeMASTER project NXPTouch.pmpx file from: MCUXpresso SDK\middleware\touch\freemaster\ and choose Project -> Options… from FreeMASTER menu.
In Comm tab set the COM_ALL option or port created by the MCU board.
Set the Speed to 19200 baud rate.
Continue with help of the NXP Touch Library Reference Manual (Chapter 8 Examples or Chapter 5 Touch GUI Tool).
Running the demo
The control page in FreeMASTER should show changing values from TSI measurement. The Led on FRDM-KE17Z board should change the color after detected touch event. In case the red color shine without touching demo, debug the main function of application, code comments should explain wrong setting and find the solution. More information can be found in the NXP Touch Library Reference Manual (Chapter 8 Examples).
FRDM-KE17Z512
Hardware requirements
Micro USB cable
FRDM-KE17Z512 board
NXP FRDM-TOUCH board (expand the NXP Touch library features enabling to change LED’s hue or brightness and demonstrating mutual sensing keypad)
Personal Computer
Board settings
The default 5 voltage power supply is recommended for correct demo operation.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Download the program to the target board.
Download a FreeMASTER tool (from: http://www.nxp.com/freemaster, version 3.2) and install the FreeMASTER
Open the FreeMASTER project NXPTouch.pmpx file from: MCUXpresso SDK\middleware\touch\freemaster\ and choose Project -> Options… from FreeMASTER menu.
In Comm tab set the COM_ALL option or port created by the MCU board.
Set the Speed to 19200 baud rate.
Continue with help of the NXP Touch Library Reference Manual (Chapter 8 Examples or Chapter 5 Touch GUI Tool).
Running the demo
The control page in FreeMASTER should show changing values from TSI measurement. The Led on FRDM-KE17Z512 board should change the color after detected touch event. In case the red color shine without touching demo, debug the main function of application, code comments should explain wrong setting and find the solution. More information can be found in the NXP Touch Library Reference Manual (Chapter 8 Examples). In this example the keypad electrode part of setup is configured by tunning tool from Application Code Hub.
FRDM-MCXN947
Hardware requirements
Micro USB cable
MCX-N9XX-FRDM board
NXP FRDM-TOUCH board (optional, expands the NXP Touch library features enabling to change LED’s hue or blinking durring movement and demonstrating mutual sensing keypad)
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.
Download the program to the target board.
Download a FreeMASTER tool (from: http://www.nxp.com/freemaster, version 3.2) and install the FreeMASTER
Open the FreeMASTER project NXPTouch.pmpx file from: MCUXpresso SDK\middleware\touch\freemaster\ and choose Project -> Options… from FreeMASTER menu.
In Comm tab set the COM_ALL option or port created by the MCU board.
Set the Speed to 19200 baud rate.
Continue with help of the NXP Touch Library Reference Manual (Chapter 8 Examples or Chapter 5 Touch GUI Tool).
Running the demo
The control page in FreeMASTER should show changing values from TSI measurement. The FRDM-MCXN947 on-board LED is turned on when the touch event is detected, and it is turned off when the finger release event is detected. In case the red color shine without touching demo, debug the main function of application, code comments should explain wrong setting and find the solution. More information can be found in the NXP Touch Library Reference Manual (Chapter 8 Examples).
FRDM-MCXN947T
Hardware requirements
Micro USB cable
MCX-N9XX-FRDM board
NXP FRDM-TOUCH board (optional, expands the NXP Touch library features enabling to change LED’s hue or blinking durring movement and demonstrating mutual sensing keypad)
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.
Download the program to the target board.
Download a FreeMASTER tool (from: http://www.nxp.com/freemaster, version 3.2) and install the FreeMASTER
Open the FreeMASTER project NXPTouch.pmpx file from: MCUXpresso SDK\middleware\touch\freemaster\ and choose Project -> Options… from FreeMASTER menu.
In Comm tab set the COM_ALL option or port created by the MCU board.
Set the Speed to 19200 baud rate.
Continue with help of the NXP Touch Library Reference Manual (Chapter 8 Examples or Chapter 5 Touch GUI Tool).
Running the demo
The control page in FreeMASTER should show changing values from TSI measurement. The FRDM-MCXN947T on-board LED is turned on when the touch event is detected, and it is turned off when the finger release event is detected. In case the red color shine without touching demo, debug the main function of application, code comments should explain wrong setting and find the solution. More information can be found in the NXP Touch Library Reference Manual (Chapter 8 Examples).
MCX-N5XX-EVK
Hardware requirements
Micro USB cable
MCX-N5XX-EVK board
NXP FRDM-TOUCH board (expand the NXP Touch library features enabling to change LED’s hue or blinking durring movement and demonstrating mutual sensing keypad)
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.
Download the program to the target board.
Download a FreeMASTER tool (from: http://www.nxp.com/freemaster, version 3.2) and install the FreeMASTER
Open the FreeMASTER project NXPTouch.pmpx file from: MCUXpresso SDK\middleware\touch\freemaster\ and choose Project -> Options… from FreeMASTER menu.
In Comm tab set the COM_ALL option or port created by the MCU board.
Set the Speed to 19200 baud rate.
Continue with help of the NXP Touch Library Reference Manual (Chapter 8 Examples or Chapter 5 Touch GUI Tool).
Running the demo
The control page in FreeMASTER should show changing values from TSI measurement. The Led on MCX-N5XX-EVK board should be shining after the touch event or should be blinking when finger is moving on the slider control. The LED color demonstrates the slider position and is changing from red through yellow, green and purple to blue color. In case the red color shine without touching demo, debug the main function of application, code comments should explain wrong setting and find the solution. More information can be found in the NXP Touch Library Reference Manual (Chapter 8 Examples).
MCX-N9XX-EVK
Hardware requirements
Micro USB cable
MCX-N9XX-EVK board
NXP FRDM-TOUCH board (expand the NXP Touch library features enabling to change LED’s hue or blinking durring movement and demonstrating mutual sensing keypad)
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.
Download the program to the target board.
Download a FreeMASTER tool (from: http://www.nxp.com/freemaster, version 3.2) and install the FreeMASTER
Open the FreeMASTER project NXPTouch.pmpx file from: MCUXpresso SDK\middleware\touch\freemaster\ and choose Project -> Options… from FreeMASTER menu.
In Comm tab set the COM_ALL option or port created by the MCU board.
Set the Speed to 19200 baud rate.
Continue with help of the NXP Touch Library Reference Manual (Chapter 8 Examples or Chapter 5 Touch GUI Tool).
Running the demo
The control page in FreeMASTER should show changing values from TSI measurement. The Led on MCX-N9XX-EVK board should be shining after the touch event or should be blinking when finger is moving on the slider control. The LED color demonstrates the slider position and is changing from red through yellow, green and purple to blue color. In case the red color shine without touching demo, debug the main function of application, code comments should explain wrong setting and find the solution. More information can be found in the NXP Touch Library Reference Manual (Chapter 8 Examples).