For further information contact your local STMicroelectronics sales office.
April 2013DocID023933 Rev 21/40
xxxx-TOUCH-LIB
STMTouch library
Data brief
Features
?Complete free C source code library with firmware examples for STM8TL5x,
STM32F0xx, STM32F3xx and STM32L1xx microcontrollers ?Both surface Charge Transfer (CT) and ProxSense TM (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
Description
STMicroelectronics xxxx-TOUCH-LIB is a touch-sensing library that provides a complete robust free source-code solution to be used on 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 ProxSense TM , 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.
Table 1. Device summary
Reference
Part number
xxxx-TOUCH-LIB
STM8TL-TOUCH-LIB 32F0-TOUCH-LIB
32F3-TOUCH-LIB 32L1-TOUCH-LIB
https://www.doczj.com/doc/0819271225.html,
Contents xxxx-TOUCH-LIB
Contents
1ProxSense (PXS) acquisition principle . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2Surface charge transfer (CT) acquisition principle . . . . . . . . . . . . . . . . 5 3STMTouch Library architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4MCU resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5Touch-sensing channels availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.1STM8TL5x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.1.1STM8TL5x features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.1.2STM8TL5x available touch-sensing channels . . . . . . . . . . . . . . . . . . . . . 9
5.2STM32F0xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
5.2.1STM32F0xx features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.2.2STM32F0xx available touch-sensing channels . . . . . . . . . . . . . . . . . . . 12
5.3STM32F3xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.3.1STM32F3xx features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.3.2STM32F3xx available touch-sensing channels . . . . . . . . . . . . . . . . . . . 15
5.4STM32L1xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.4.1STM32L1xx features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.4.2STM32L1xx available touch-sensing channels . . . . . . . . . . . . . . . . . . . 22
6Memory footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.1STM8TL5x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.2STM32F0xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.3STM32F3xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
6.4STM32L1xx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 7Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2/40DocID023933 Rev 2
xxxx-TOUCH-LIB List of tables List of tables
Table 1.Device summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Table 2.List of peripherals used by the STMTouch driver. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Table 3.Available touch-sensing channels for STM8TL5x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Table 4.Available touch-sensing channels for STM32F0xx. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Table 5.Available touch sensing channels for STM32F30x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Table 6.Available touch sensing channels for STM32F37x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Table 7.Available touch sensing channels for STM32L1xx 384K / High-density. . . . . . . . . . . . . . . 22 Table 8.Available touch sensing channels for STM32L1xx 256K / Medium-density plus (table 1/2)26 Table 9.Available touch sensing channels for STM32L1xx 256K / Medium-density plus (table 2/2)30 Table 10.Available touch sensing channels for STM32L15x 32K to 128K / Medium-density . . . . . . 33 Table 11.STM8TL5x memory footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Table 12.STM32F0xx memory footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Table 13.STM32F30x memory footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Table 14.STM32F37x memory footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Table 15.STM32L1xx memory footprint, example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Table 16.STM32L1xx memory footprint, example 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Table 17.Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
DocID023933 Rev 23/40
List of figures xxxx-TOUCH-LIB List of figures
Figure 1.STMTouch driver architecture 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Figure 2.STMTouch driver architecture 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4/40DocID023933 Rev 2
xxxx-TOUCH-LIB ProxSense (PXS) acquisition principle 1 ProxSense (PXS) acquisition principle
This peripheral operates in Projected mode which is used to measure the charge
transferred by a driven electrode to a second electrode.
This acquisition principle is only available on STM8TL5x devices.
For more information see the STM8TL5x Reference Manual (RM0312).
2 Surface charge transfer (CT) acquisition principle
The surface charge transfer acquisition consists in charging the electrode capacitance (C X)
and transferring part of the accumulated charge into a sampling capacitor (C S). This
sequence is repeated until the voltage across C S reaches a given threshold. The number of
transfers required to reach the threshold depends on the size of the electrode capacitance.
The CT acquisition can be managed in three different ways:
?using the touch sensing controller (TSC) on STM32F0xx and STM32F3xx devices
?using the routing interface (RI) only for STM32L1xx devices with software acquisition
?using the routing interface (RI) and two 16-bits timers for STM32L1xx devices with hardware acquisition.
Please see the Table2 for more details about the peripherals used.
DocID023933 Rev 25/40
STMTouch Library architecture xxxx-TOUCH-LIB
6/40
DocID023933 Rev 2
3 STMTouch Library architecture
The STMTouch Library is a “package” composed of different elements:
?the “STMTouch driver” directory contains the firmware layer to perform the touch-sensing acquisition and the sensors processing. This driver contains all the
acquisitions for all supported microcontrollers. This is the core of the STMTouch Library ?the “STMTouch examples” directory contains a set of firmware examples to show how to use the STMTouch driver
?the “Standard Peripherals driver” directory contains the firmware layer to access the standard peripherals
?the “CMSIS driver” directory contains the Cortex microcontroller software interface standard (STM32 only)
?the “Utilities drivers” directory contains the drivers to access for example the LCD on the evaluation boards.
Note:There is one STMTouch Library per microcontroller family (STM8TL5x STMTouch Library, STM32F0xx STMTouch Library, STM32F3xx STMTouch Library, STM32L1xx STMTouch
Library...).
Figure1 and Figure2 show the STMTouch driver layers.
xxxx-TOUCH-LIB
STMTouch Library architecture
DocID023933 Rev 27/40
MCU resources
xxxx-TOUCH-LIB
8/40DocID023933 Rev 2
4 MCU resources
Table 2 shows the peripherals that are used by the STMTouch driver. Care must be taken when using them to avoid any unwanted
behavior.
Table 2. List of peripherals used by the STMTouch driver
Device / Acquisition principle
Peripheral Function STM8TL5x PXS
STM32F0xx
CT
STM32F3xx
CT
STM32L1xx CT software
STM32L1xx CT hardware
GPIOs Acquisition Yes Yes Yes Yes Yes 8-bit timer (TIM4)Time base for ECS
and DTO Yes No No No No Systick
Time base for ECS
and DTO
No Yes Yes Yes Yes Routing interface (RI)Acquisition No No No Yes Yes ProxSense (PXS)Acquisition Yes No No No No Touch-sensing controller (TSC)
Acquisition No Yes Yes No No 2 x 16-bit timers (TIM9 and TIM11)
Acquisition
No
No
No
No
Yes
xxxx-TOUCH-LIB Touch-sensing channels availability 5 Touch-sensing channels availability
5.1 STM8TL5x
5.1.1 STM8TL5x
features
?Up to 300 capacitive sensing channels composed of 15 transmitters and 20 receivers
?with up to 10 Rx channels acquired in parallel
?Fast acquisition with a typical scan time of 250 μs for 10 Rx channels
?Configurable internal sampling capacitor (CS)
?Electrode Parasitic Capacitance Compensation (EPCC) to ensure the best sensitivity in all user environments
?RF noise detection, allowing to reject corrupted samples
?External trigger to de-synchronize the acquisition from known noise
?Can be configured to return to low power mode between each conversion
?Acquisition possible in Run, Wait and Active-halt modes
5.1.2 STM8TL5x available touch-sensing channels
The table below provide an overview of the available touch sensing channels for the
STM8TL5x devices.
Note:The following table is not restrictive in term of part numbers supported by the STMTouch driver. The STMTouch driver can be used on any new device that may become available as
part of ST microcontrollers portfolio. Please contact your ST representative for support.
Table 3. Available touch-sensing channels for STM8TL5x
Packages TSSOP20UFQFPN28UFQFPN48
Part numbers STM8TL52F4P STM8TL52G4U
STM8TL53C4U STM8TL53F4P STM8TL53G4U
PXS function GPIO Pin Pin Usage Pin Pin Usage Pin Usage
Receiver
A(1)RX0a-1111
5 Receivers /
Transmitters
1010
8 Receivers /
Transmitters
13
10 Receivers /
Transmitters RX1a-1212111115
RX2a-1313121217
RX3a---131319
RX4a---141421
RX5a---151523
RX6a-1414161625
RX7a-1515171727
RX8a-----29
RX9a-----31
DocID023933 Rev 29/40
Touch-sensing channels availability xxxx-TOUCH-LIB
10/40DocID023933 Rev 2
Receiver B (1)RX0b ---0 Receivers / Transmitters --0 Receivers / Transmitters 1410 Receivers / Transmitters
RX1b -----16RX2b -----18RX3b
-----20RX4b -----22RX5b
-----24RX6b -----26RX7b -----28RX8b -----30RX9b -----32Transmitte r
TX0PD01616STM8TL52F4P:2 Transmitters STM8TL53F4P:5 Transmitters
1818STM8TL52G4U: 2 Transmitters STM8TL53G4U:9 Transmitters
3315 Transmitters TX1PD1171719
19
34TX2PD2--20(2)2035TX3PD3--21(2)2136TX4PD418(2)1822(2)22
39
TX5PD519(2)1923(2)2340TX6
PD620(2)2024(2)2441TX7PD7--27(2)2742TX8PB0--28(2)2843TX9PB1----44TX10PB2----45TX11PB3----46TX12PB4----47TX13PB5----48TX14
PB6
--
--
1
Maximum number of channels
STM8TL52F4P: 12 channels with a 4RX*3TX matrix STM8TL53F4P: 25 channels with a 5RX*5TX matrix STM8TL52G4U: 25 channels with a 5RX*5TX matrix STM8TL53G4U: 72 channels with a 8RX*9TX matrix
300 channels with a
20RX*15TX matrix
1.The receivers can also be used as transmitters. This is used to define the square matrix to address the maximum number of
channels (please refer to product datasheet for further information).2.On STM8TL52 devices, this GPIO is present but does not support the PSX alternate function.
Table 3. Available touch-sensing channels for STM8TL5x (continued)
Packages TSSOP20UFQFPN28UFQFPN48
Part numbers
STM8TL52F4P
STM8TL52G4U
STM8TL53C4U STM8TL53F4P
STM8TL53G4U
PXS function
GPIO Pin Pin Usage
Pin Pin Usage
Pin Usage
xxxx-TOUCH-LIB Touch-sensing channels availability 5.2 STM32F0xx
features
5.2.1 STM32F0xx
?Proven and robust surface charge transfer acquisition principle
?Supports up to 18 capacitive sensing channels
?Up to 6 capacitive sensing channels can be acquired in parallel offering a very good response time
?Spread spectrum feature to improve system robustness in noisy environments
?Full hardware management of the charge transfer acquisition sequence
?Programmable charge transfer frequency
?Programmable sampling capacitor I/O pin
?Programmable channel I/O pin
?Programmable max count value to avoid long acquisition when a channel is faulty
?Dedicated end of acquisition and max count error flags with interrupt capability
?One sampling capacitor for up to 3 capacitive sensing channels to reduce the system components
?Compatible with proximity, touchkey, linear and rotary touch sensor implementation
DocID023933 Rev 211/40
Touch-sensing channels availability
xxxx-TOUCH-LIB
12/40DocID023933 Rev 2
5.2.2
STM32F0xx available touch-sensing channels
The table below provide an overview of the available touch sensing channels for the STM32F0xx devices.
Note:
The following tables is not restrictive in term of part numbers supported by the STMTouch driver. The STMTouch driver can be used on any new device that may become available as part of ST microcontrollers portfolio. Please contact your ST representative for support.
Table 4. Available touch-sensing channels for STM32F0xx
Packages LQFP32/UFQFPN32LQFP48LQFP64Part numbers
STM32F051K4STM32F051K6STM32F051K8
STM32F051C4STM32F051C6STM32F051C8STM32F051R4STM32F051R6STM32F051R8Analog I/O group
Gx_IOy GPIO Pin LQFP Pin UFQFPN
Number of available pins
Usage
Pin Number of available pins
Usage
Pin
Number of available pins
Usage
Group 1
G1_IO1
PA0664
3 channels with 1 sampling capacitor (1)
104
3 channels with 1 sampling capacitor (1)
144
3 channels with 1 sampling capacitor (1)
G1_IO2PA1771115G1_IO3PA2881216G1_IO4PA3991317Group 2
G2_IO1
PA410104
3 channels with 1 sampling capacitor (1)
144
3 channels with 1 sampling capacitor (1)
204 3 channels with 1 sampling capacitor (1)
G2_IO2PA511111521G2_IO3PA612121622G2_IO4PA713131723Group 3
G3_IO1
PC5--2/3
1/2 channels
with 1 sampling capacitor (2)
-3
2 channels with 1 sampling capacitor (2)
254 3 channels with 1 sampling capacitor (1)
G3_IO2PB014141826G3_IO3PB115151927G3_IO4
PB2
-16
20
28
xxxx-TOUCH-LIB
Touch-sensing channels availability
DocID023933 Rev 213/40
Group 4
G4_IO1
PA919194
3 channels with 1 sampling capacitor (1)
304
3 channels with 1 sampling capacitor (1)
424
3 channels with 1 sampling capacitor (1)
G4_IO2PA1020203143G4_IO3PA1121213244G4_IO4
PA1222223345Group 5
G5_IO1
PB326264
3 channels with 1 sampling capacitor (1)
394
3 channels with 1 sampling capacitor (1)
554 3 channels with 1 sampling capacitor (1)
G5_IO2PB427274056G5_IO3PB629294258G5_IO4PB73030
4359Group 6
G6_IO1
PB11-0
Cannot be used for Touch sensing (3)
224
3 channels with 1 sampling capacitor (1)
304 3 channels with 1 sampling capacitor (1)
G6_IO2PB12-2533G6_IO3PB13-2634G6_IO4
PB14
-27
35
Maximum number of
channels
13/14 with 5 sampling capacitors
17 with 6 sampling capacitors
18 with 6 sampling capacitors
1. 4 pins available in the analog I/O group which means 3 touch sensing channels + 1 sampling capacitor.
2.2/3 pins available in the analog I/O group which means 1/2 touch sensing channels + 1 sampling capacitor.
3.No or only 1 pin available in the analog IO group which means that it is not suitable for touch sensing.
Table 4. Available touch-sensing channels for STM32F0xx (continued)
Packages LQFP32/UFQFPN32LQFP48LQFP64Part numbers
STM32F051K4STM32F051K6STM32F051K8
STM32F051C4STM32F051C6STM32F051C8STM32F051R4STM32F051R6STM32F051R8Analog I/O group
Gx_IOy GPIO Pin LQFP Pin UFQFPN Number of available pins
Usage
Pin Number of available pins
Usage
Pin
Number of available pins
Usage
Touch-sensing channels availability xxxx-TOUCH-LIB
14/40DocID023933 Rev 2
5.3 STM32F3xx
5.3.1 STM32F3xx features
?Proven and robust surface charge transfer acquisition principle ?Supports up to 24 capacitive sensing channels
?Up to 8 capacitive sensing channels can be acquired in parallel offering a very good
response time
?Spread spectrum feature to improve system robustness in noisy environments ?Full hardware management of the charge transfer acquisition sequence ?Programmable charge transfer frequency ?Programmable sampling capacitor I/O pin ?Programmable channel I/O pin
?Programmable max count value to avoid long acquisition when a channel is faulty ?Dedicated end of acquisition and max count error flags with interrupt capability ?One sampling capacitor for up to 3 capacitive sensing channels to reduce the system components
?
Compatible with proximity, touchkey, linear and rotary touch sensor implementation
xxxx-TOUCH-LIB
Touch-sensing channels availability
DocID023933 Rev 215/40
5.3.2
STM32F3xx available touch-sensing channels
The tables below provide an overview of the available touch sensing channels for the STM32F3xx devices.
Note:
The following tables are not restrictive in term of part numbers supported by the STMTouch driver. The STMTouch driver can be used on any new device that may become available as part of ST microcontrollers portfolio. Please contact your ST representative for support.
Table 5. Available touch sensing channels for STM32F30x
Subfamilly STM32F30x
Packages
LQFP48LQFP64LQFP100Part numbers
STM32F302CB
STM32F302CC STM32F303CB STM32F303CC
STM32F302RB STM32F302RC STM32F303RB STM32F303RC
STM32F302VB STM32F302VC STM32F303VB STM32F303VC
Analog I/O group
Gx_IOy GPIO Pin
Number of
available pins Usage Pin
Number of
available pins Usage Pin
Number of
available pins Usage
Group 1
G1_IO1
PA0104(1)
3 channels with 1 sampling capacitor
14
4
3 channels with 1 sampling capacitor
234
3 channels with 1 sampling capacitor
G1_IO2PA1111524G1_IO3PA2121625G1_IO4PA3131726Group 2
G2_IO1
PA4144(1)
3 channels with 1 sampling capacitor
20
4
3 channels with 1 sampling capacitor
294
3 channels with 1 sampling capacitor
G2_IO2PA5152130G2_IO3PA6162231G2_IO4
PA7
17
23
32
Touch-sensing channels availability
xxxx-TOUCH-LIB
16/40DocID023933 Rev 2
Group 3
G3_IO1
PC5-3
(2)
2 channels with 1 sampling capacitor
25
4
3 channels with 1 sampling capacitor
344
3 channels with 1 sampling capacitor
G3_IO2PB0182635G3_IO3PB1192736G3_IO4PB2202837Group 4
G4_IO1
PA9
304(1)
3 channels with 1 sampling capacitor
424
3 channels with 1 sampling capacitor
684
3 channels with 1 sampling capacitor
G4_IO2PA10314369G4_IO3PA13344672G4_IO4PA14374976Group 5
G5_IO1
PB3394(1)
3 channels with 1 sampling capacitor
554
3 channels with 1 sampling capacitor
894
3 channels with 1 sampling capacitor
G5_IO2PB4405690G5_IO3PB6425892G5_IO4
PB7
435993
Group 6
G6_IO1PB11
224(1)
3 channels with 1 sampling capacitor
304
3 channels with 1 sampling capacitor
484
3 channels with 1 sampling capacitor
G6_IO2PB12253351G6_IO3PB13263452G6_IO4PB14
27
35
53
Table 5. Available touch sensing channels for STM32F30x (continued)
Subfamilly STM32F30x Packages
LQFP48LQFP64LQFP100Part numbers
STM32F302CB
STM32F302CC STM32F303CB STM32F303CC
STM32F302RB STM32F302RC STM32F303RB STM32F303RC
STM32F302VB STM32F302VC STM32F303VB STM32F303VC
Analog I/O group
Gx_IOy GPIO Pin
Number of
available pins Usage Pin
Number of
available pins Usage Pin
Number of
available pins Usage
xxxx-TOUCH-LIB
Touch-sensing channels availability
DocID023933 Rev 217/40
Group 7
G7_IO1
PE2-0
(3)
Cannot be used for touch sensing
-0
Cannot be used for touch sensing
14
3 channels with 1 sampling capacitor
G7_IO2PE3--2G7_IO3PE4--3G7_IO4
PE5
--4Group 8
G8_IO1PD12
-0(3)
Cannot be used for touch sensing
-0
Cannot be used for touch sensing
594
3 channels with 1 sampling capacitor
G8_IO2PD13--60G8_IO3PD14--61G8_IO4PD15--62
Maximum number of channels
17 with 6 sampling capacitors 18 with 6 sampling capacitors
24 with 8 sampling capacitors 1. 4 pins available in the analog I/O group which means 3 touch sensing channels + 1 sampling capacitor.2. 3 pins available in the analog I/O group which means 2 touch sensing channels + 1 sampling capacitor.3.No or only 1 pin available in the analog IO group which means that it is not suitable for touch sensing.
Table 5. Available touch sensing channels for STM32F30x (continued)
Subfamilly STM32F30x Packages
LQFP48LQFP64LQFP100Part numbers
STM32F302CB
STM32F302CC STM32F303CB STM32F303CC
STM32F302RB STM32F302RC STM32F303RB STM32F303RC
STM32F302VB STM32F302VC STM32F303VB STM32F303VC
Analog I/O group
Gx_IOy GPIO Pin
Number of
available pins Usage Pin
Number of
available pins Usage Pin
Number of
available pins Usage
Touch-sensing channels availability
xxxx-TOUCH-LIB
18/40
DocID023933 Rev 2
.
Table 6. Available touch sensing channels for STM32F37x
Subfamilly STM32F37x
Packages
LQFP48
LQFP64
LQFP100 / UFBGA100
Part numbers
STM32F373C8
STM32F373CB STM32F373CC
STM32F373R8STM32F373RB STM32F373RC
STM32F373V8STM32F373VB STM32F373VC
Analog
I/O group
Gx_IOy GPIO Pin
Number of
available pins Usage
Pin
Number of
available pins Usage
LQFP Pin BGA Pin Number of available pins
Usage
Group 1
G1_IO1
PA0104(1)
3 channels with 1 sampling capacitor
14
4
3 channels with 1 sampling capacitor
23
L24
3 channels with 1 sampling capacitor
G1_IO2PA1111524M2G1_IO3PA2121625K3G1_IO4PA3131826L3Group 2
G2_IO1
PA4143(2) 2 channels with 1 sampling capacitor
20
4
3 channels with 1 sampling capacitor
29
M34
3 channels with 1 sampling capacitor
G2_IO2PA5152130K4G2_IO3PA6162231L4G2_IO4PA7-2332M4Group 3
G3_IO1
PC4-2(3) 1 channel with 1 sampling capacitor
24
4
3 channels with 1 sampling capacitor
33
K54
3 channels with 1 sampling capacitor
G3_IO2PC5-2534L5G3_IO3PB0182635M5G3_IO4
PB1
19
27
36
M6
xxxx-TOUCH-LIB
Touch-sensing channels availability
DocID023933 Rev 219/40
Group 4
G4_IO1
PA9304(1)
3 channels with 1 sampling capacitor
42
4
3 channels with 1 sampling capacitor
68
D104
3 channels with 1 sampling capacitor
G4_IO2PA10314369C12G4_IO3PA13344672A11G4_IO4PA14374976A10Group 5
G5_IO1
PB3394(1) 3 channels with 1 sampling capacitor
55
4
3 channels with 1 sampling capacitor
89
A8
4
3 channels with 1 sampling capacitor
G5_IO2PB4405690A7G5_IO3PB6425892B5G5_IO4PB7435993B4Group 6
G6_IO1
PB14263(2) 2 channels with 1 sampling capacitor
34
3
2 channels with 1 sampling capacitor
53
K114
3 channels with 1 sampling capacitor
G6_IO2PB15273554K10G6_IO3PD8283655K9G6_IO4
PD9
--
56
K8
Table 6. Available touch sensing channels for STM32F37x (continued)
Subfamilly STM32F37x Packages
LQFP48
LQFP64
LQFP100 / UFBGA100
Part numbers
STM32F373C8
STM32F373CB STM32F373CC
STM32F373R8STM32F373RB STM32F373RC
STM32F373V8STM32F373VB STM32F373VC
Analog I/O group
Gx_IOy GPIO Pin
Number of
available pins Usage
Pin
Number of
available pins Usage
LQFP Pin BGA Pin Number of available pins
Usage
Touch-sensing channels availability
xxxx-TOUCH-LIB
20/40
DocID023933 Rev 2
Group 7
G7_IO1
PE2-0(4)
Cannot be used for touch sensing
-
Cannot be used for touch sensing
1
B24
3 channels with 1 sampling capacitor
G7_IO2PE3--2A1G7_IO3PE4--3B1G7_IO4
PE5
--4C2Group 8
G8_IO1PD12
-0(4)Cannot be used for touch sensing
-
Cannot be used for touch sensing
59
J104
3 channels with 1 sampling capacitor
G8_IO2PD13--60H12G8_IO3PD14--61H11G8_IO4PD15
--
62
H10
Maximum number of channels
14 with 6 sampling capacitors 17 with 6 sampling capacitors 24 with 8 sampling capacitors
1. 4 pins available in the analog I/O group which means 3 touch sensing channels + 1 sampling capacitor.
2. 3 pins available in the analog I/O group which means 2 touch sensing channels + 1 sampling capacitor.
3. 2 pins available in the analog I/O group which means 1 touch sensing channel + 1 sampling capacitor.
4.No or only 1 pin available in the analog IO group which means that it is not suitable for touch sensing.
Table 6. Available touch sensing channels for STM32F37x (continued)
Subfamilly STM32F37x Packages
LQFP48
LQFP64
LQFP100 / UFBGA100
Part numbers
STM32F373C8
STM32F373CB STM32F373CC
STM32F373R8STM32F373RB STM32F373RC
STM32F373V8STM32F373VB STM32F373VC
Analog
I/O group
Gx_IOy GPIO Pin
Number of
available pins Usage
Pin
Number of
available pins Usage
LQFP Pin BGA Pin Number of available pins
Usage