Autotune for CVD Devices

Last modified by Microchip on 2026/03/19 09:54

There are differences in how the touch library is managed for Charge Voltage Distribution (CVD) and Peripheral Touch Controller (PTC) devices. To simplify the tuning process for the CVD waveform, the library offers auto-calibration for acquisition time and additional internal capacitance. This auto-calibration is performed for each sensor following power-up, timeout, and negative capacitance detection events. For more information, please refer to the "Auto-Calibration" section of the Hardware Sensor Configuration page.

When the auto-tune and touch-tuning options are enabled, we will observe varying values for acquisition time. Below is the screenshot that displays the different acquisition times when these options are enabled.

For production, you can directly use these tuned values in the code generated from MPLAB® Code Configurator (MCC). Below are the steps in detail:

Select Enable Touch Tuning Data Connection and Enable Charge Time Autotune

Enable Touch Tuning Data connection provides two options, one being Touch Tuning (bidirectional, requires UART Tx and Rx).

Tune tab with Touch Tuning  selected

Sensor Node Config pane

The other option is Touch Visualization (unidirectional, requires UART Tx).

Touch Visualization selected

variations in acquisition time and additional internal capacitance

When Enable Charge Time Autotune is selected, you will notice variations in acquisition time and additional internal capacitance, as highlighted in the image.


In MPLAB Data Visualizer, note down the acquisition time and additional internal capacitance value.


Use the obtained values in production code and disable the touch-tuning option.

Note:
Charge Time Autotune and Touch Tuning Data Connection are distinct features. By enabling the Touch Tuning Data Connection, you can view data for buttons and scrollers in the MPLAB Data Visualizer tool using one of the following options (see attached image):

  1. Touch Tuning (bidirectional, requires UART Tx and Rx)
  2. Touch Visualization (unidirectional, requires UART Tx)

Back to Top