STM32L1 STMTouch touch-sensing library

STMicroelectronics touch-sensing libraries provide a complete robust free source-code solution to be used on STM8L, STM8TL5x, STM32F0xx, STM32F3xx and STM32L1xx microcontrollers. This solution allows designers familiar with the use of standard microcontrollers to create higher-end human interfaces by replacing conventional electromechanical switches by capacitive sensors.

The xxxx-TOUCH-LIB is part of the application firmware. It allows combining various capacitive sensing touchkeys, linear or rotary touch sensors with traditional MCU features (communications, control of LEDs, beeper or LCD) in the same application.

Two capacitive acquisition principles, surface Charge Transfer (CT) and ProxSenseTM, are available and can be configured at compiling level. Both acquisition principles offer the same advanced processing algorithms to filter out noise and to compensate environmental parameters such as temperature, humidity, and power supply variation.

Note: ProxSense is a trademark of Azoteq (Pty) Ltd.

Key Features

  • Complete free C source code library with firmware examples for STM8L, STM8TL5x, STM32F0xx, STM32F3xx and STM32L1xx microcontrollers
  • Both surface Charge Transfer (CT) and ProxSenseTM (PXS) acquisition principles supported
  • Multifunction capability to combine capacitive sensing functions with traditional MCU features
  • Modular architecture allowing easy addition of new acquisitions or sensors
  • Acquisition, filtering and calibration functions
  • Enhanced processing features for optimized sensitivity and immunity
    • Environment Control System (ECS)
    • Detection Time Out (DTO)
    • Detection Exclusion System (DXS)
    • Noise filter
  • Flexible touchkey/linear/rotary touch sensors configuration and combination
    • Unlimited number of sensors supported
    • Each sensor can have its own state machine
  • Active shield feature
  • Compliant with MISRA
  • Compliant with Cosmic, IAR, Raisonance, Keil, Altium and Atollic C compilers


Technical Documentation

Product Specifications
Description Version Size
DB1808 DB1808: STMTouch library 4.0 567 KB
User Manuals
Description Version Size
UM1606 UM1606: STMTouch driver user manual 5.0 2 MB

Presentations & Training Material

Description Version Size
STM32 and STM8 embedded software solutions 6.0 2 MB


License Agreement
Description Version Size
SLA0048 SLA0048: Mix Ultimate Liberty+OSS+3rd-party V1 - SOFTWARE LICENSE AGREEMENT 4.9 86 KB

Tools and Software

Embedded Software
MCUs Embedded Software

Get Software

Part Number Software Version Marketing Status Supplier Order from ST
32L1-TOUCH-LIB 1.1.0 Active ST