Melody Touch Library User Guide



Open MPLAB® Xpress

Go to MPLAB Xpress and select the Get Started Now option.


Then log in with the registered email account.



Create New Project

Create a new project by clicking the folder icon or from the file menu, select New Project.


Click Next in the New Project dialog box.


Select the required device family and click Next.


Assign a project name and click Finish.



Touch Plugin

Open the MCC configurator by clicking on the MCC icon.

After initialization, expand Touch Configurator from the Libraries menu under Device Resources. Click on the + icon to add the touch library.


The touch configurator will be loaded on the right side of the IDE. A user tour will be initialized to tell you about the available options inside the touch library.


Select the buttons and click Add to add them to the configuration.


After you added the buttons, click on the Configure tab to apply different modifications.


Click on the displayed pin to select and assign an alternate set of pins to the currently selected button/slider/wheel.


Click Sensor Parameters to modify the selected button/slider/wheel’s Gain, Delay, Clock, etc.


Click Common Parameters to modify the selected button/slider/wheel’s Drift Rate, Hold Time, etc.


Click Driven Shield to enable the Driven Shield Feature and add a dedicated shield pin.


Click Boost Mode to enable the Boost mode.


Click Frequency Hop to enable Frequency Hop and Frequency Hop Tuning


Click on the Tune tab to enable touch tuning using the UART interface.

  • Select MPLAB DV to read and write touch tuning.
  • Datastreamer to read touch tuning data.

Click on the Summary tab to check the device's summary.



Code Generation and Build

Click on the Generate button to generate the configured code.


Click on the hammer icon to build the project



Once you have finished configuring your project and are ready to export, you can export to MPLAB X to start writing your application code.

Table of Contents

© 2022 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.