Touch sensing controller (TSC)
RM0365
447/1080
DocID025202 Rev 7
Bit 16
SSE
: Spread spectrum enable
This bit is set and cleared by software to enable/disable the spread spectrum feature.
0: Spread spectrum disabled
1: Spread spectrum enabled
Note: This bit must not be modified when an acquisition is ongoing.
Bit 15
SSPSC
: Spread spectrum prescaler
This bit is set and cleared by software. It selects the AHB clock divider used to generate the
spread spectrum clock (SSCLK).
0: f
HCLK
1: f
HCLK
/2
Note: This bit must not be modified when an acquisition is ongoing.
Bits 14:12
PGPSC[2:0]
: Pulse generator prescaler
These bits are set and cleared by software.They select the AHB clock divider used to generate
the pulse generator clock (PGCLK).
000: f
HCLK
001: f
HCLK
/2
010: f
HCLK
/4
011: f
HCLK
/8
100: f
HCLK
/16
101: f
HCLK
/32
110: f
HCLK
/64
111: f
HCLK
/128
Note: These bits must not be modified when an acquisition is ongoing.
Note: Some configurations are forbidden. Please refer to the
Section 19.3.4: Charge transfer
for details.
Bits 11:8 Reserved, must be kept at reset value.
Bits 7:5
MCV[2:0]
: Max count value
These bits are set and cleared by software. They define the maximum number of charge
transfer pulses that can be generated before a max count error is generated.
000: 255
001: 511
010: 1023
011: 2047
100: 4095
101: 8191
110: 16383
111: reserved
Note: These bits must not be modified when an acquisition is ongoing.
Bit 4
IODEF
: I/O Default mode
This bit is set and cleared by software. It defines the configuration of all the TSC I/Os when
there is no ongoing acquisition. When there is an ongoing acquisition, it defines the
configuration of all unused I/Os (not defined as sampling capacitor I/O or as channel I/O).
0: I/Os are forced to output push-pull low
1: I/Os are in input floating
Note: This bit must not be modified when an acquisition is ongoing.
Bit 3
SYNCPOL
: Synchronization pin polarity
This bit is set and cleared by software to select the polarity of the synchronization input pin.
0: Falling edge only
1: Rising edge and high level