SAM D21 Peripheral Touch Controller Overview

The QTouch® Peripheral Touch Controller (PTC) offers built-in hardware for capacitive touch measurement on sensors that function as buttons, sliders, and wheels. The PTC supports both mutual and self-capacitance measurement without the need for any external component. It offers superb sensitivity and noise tolerance, as well as self-calibration, and minimizes your sensitivity tuning effort.

The PTC is intended for autonomously performing capacitive touch sensor measurements. The external capacitive touch sensor is typically formed on a PCB, and the sensor electrodes are connected to the analog charge integrator of the PTC using the device I/O pins. The PTC supports mutual capacitance sensors organized as capacitive touch matrices in different X-Y configurations, including Indium Tin Oxide (ITO) sensor grids. In mutual capacitance mode, the PTC requires one pin per X-line (drive line) and one pin per Y-line (sense line). In self-capacitance mode, the PTC requires only one pin with a Y-line driver for each self-capacitance sensor.


  • Implements low-power, high-sensitivity, environmentally robust capacitive touch buttons, sliders, and wheels
  • Supports mutual capacitance and self-capacitance sensing
  • Up to 32 buttons in self-capacitance mode
  • Up to 256 buttons in mutual capacitance mode
  • Supports lumped mode configuration
  • One pin per electrode - no external components
  • Load compensating charge sensing
  • Parasitic capacitance compensation for mutual capacitance mode
  • Adjustable gain for superior sensitivity
  • Zero drift over the temperature and VDD range
  • No need for temperature or VDD compensation
  • Hardware noise filtering and noise signal de-synchronization for high conducted immunity
  • Microchip-provided QTouch Library firmware and QTouch Composer tool

PTC and its Benefits

Mixed Hardware and Firmware solution, allows you to define sensor configuration

  • PTC with the QTouch Library

PTC runs data acquisition autonomously, resulting in low CPU utilization and power consumption

  • User-controlled power-performance trade-off
  • CPU can sleep during acquisition to save power
  • Alternatively, CPU can perform other time critical operations during touch acquisition

Robust noise performance

Self-Capacitance Block Diagram

The PTC block diagram for self-capacitance measurement is shown in the following figure. Only the Y-lines can be connected to self-capacitance sensors and are selected using the Input control. X-lines are unused and can be utilized for any other GPIO functionality. The acquisition module along with the compensation circuit helps in measuring the change in capacitance due to user touch.


Mutual Capacitance Block Diagram

The PTC block diagram for mutual capacitance measurement is as shown in the following figure. Both X-lines and Y-lines should be connected to mutual capacitance sensors and are selected using the Input control.


 Learn More

Peripheral Touch Controller Configuration
Learn more >
Peripheral Touch Controller Example Project
Learn more >
© 2024 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.