Implementing Capacitive Touch in Your 32-Bit Design | Peripheral Touch Controller Deep Dive (Part 2) @MicrochipDeveloperHelp
Implementing Capacitive Touch in Your 32-Bit Design | Peripheral Touch Controller Deep Dive (Part 2)  @MicrochipDeveloperHelp
Uploaded March 2026 | Updated November 2026, 1 week ago
In Part 2 of the Peripheral Touch Controller (PTC) Deep Dive, we move from theory to implementation on a 32-bit microcontroller.

After introducing the PTC and capacitive touch fundamentals in Part 1, this video demonstrates how to configure the Peripheral Touch Controller using MPLAB® Code Configurator (MCC) and Microchip’s Touch Library inside VS Code® with the MPLAB Extensions.

Using the PIC32CM PL10 Curiosity Nano, we configure the onboard capacitive touch button to detect a press event. When the button is touched, a message is sent over UART and the onboard LED turns on. When released, the LED turns off and a corresponding message is printed to the terminal.

This example shows how touch sensing, GPIO, and UART can be combined to build a simple capacitive touch application.

What You'll Learn
• Create a project in VS Code using MPLAB Extensions
• Configure peripherals with MPLAB Code Configurator (MCC)
• Set up the Harmony Touch Library for a capacitive button
• Send messages over UART and control an onboard LED based on touch input

Resources
PIC32CM PL10 Product Page
mchp.us/4lAnb2j

PIC32CM PL10 Curiosity Nano Evaluation Kit
mchp.us/3N0e3Y9

Peripheral Touch Controller Deep Dive – Part 1
youtube.com/watch?v=MIKMHODDkQs

Source Code for This Example
mchp.us/4sFdGkH

MPLAB Extensions for VS Code
marketplace.visualstudio.com/items?itemName=Microchip.mplab-extension-pack
Implementing Capacitive Touch in Your 32-Bit Design | Peripheral Touch Controller Deep Dive (Part 2)Create Your First Project with PIC32MZ EF Using MPLAB® Harmony v3 and MCCEasy Communication with UART | Peripheral Deep Dive: UARTMCC Melody Timer0 PLIB Driver: 100 ms TimerInstallation of CMSIS-Driver Packs Using the Arm® Keil® Studio Pack (MDK v6) with PIC32CM PL10Downloading, Installing, and Activating MPLAB® XC CompilersBuilding Block Solutions Applications: Electrochemical Gas Sensing DemoTrustZone® Getting Started Application with PIC32CK SG Curiosity Ultra Development BoardHigh-Precision Analog Sensing Made Easy with the PIC32CM ADC (Part 2)How does an e-Scooter Traction Motor Control work?Getting Started with the MCP3221 SAR ADC Evaluation Board (EV55L49A)Dev Tool Bits | Creating VS Code profiles for MPLAB® Tools
Microchip Developer Help |

Implementing Capacitive Touch in Your 32-Bit Design | Peripheral Touch Controller Deep Dive (Part 2)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER