AN3236 · Application noteHow to increase the number of touchkeys for touch sensing applications on STM32 MCUs
Download .pdfOpen in the full document

Detection exclusion system (DxS)

Detection exclusion system (DxS)

For a touchkey matrix (without single electrode touchkeys), DxS allows only the first detected touch inside a group to be reported. By defining a DxS group with channel rows, and another group with channel columns, only one touchkey can be activated at a time. For an application managing only single touches, this simplifies the processing at the application level.

Conclusion

By following the guidelines described in this document it is possible to improve the touchkey capabilities of STM32 microcontrollers without modifying the touch sensing firmware library. The application software must determine which touchkey is touched when a pair of channels is activated, providinge a simple processing step.

Revision history

Table 3. Document revision history
DateVersionChanges
18-Jun-20101Initial release.
18-Nov-20132Added support for STM32F0, STM32F3, STM32L1, STM8AF series and STM8L162 lines.
Updated:
  • Section 1: Adding an extra touchkey
  • Section 3: Touchkey matrix
  • Section 4: Maximizing the number of touchkeys
  • Section 5: Working around the limitations
  • Section 6: Conclusion

Removed paragraph “Maximum touchkey matrix size by product”.

28-May-20143Added support for STM32L0 series.
3-Nov-20154Updated Table 1: STM32L4 series added (up to 24 channels) and STM8AL series added (up to 20 channels).
17-Jan-20195Updated:
  • Title of the document
  • Introduction

Added Section 1 General information.

16-Mar-20206Updated Table 1. Applicable products
10-Aug-20217Updated:
27-Jan-20238

Updated Introduction

Added STM32WBA series in Table 1
06-Mar-20249Updated:
  • Title of the document
  • Added STM32U0 series in Table 1
26-Nov-202410Updated: