
Tnestp = Ci × Vp − Vm × Rs
∆ V
× M_PMIRRORL
M_PMIRRORR ×
1
t3 ×
1
Fsw
Equation 12.
• F
sw
: Configurable, the switching clock frequency in mutual-cap mode.
3.3.2 TSI scan multiple rounds in mutual-cap mode
Same with the self-cap mode, the scan round in mutual-cap mode is set by the registers (TSI_SINC[DECIMATION], [ORDER],
and [CUTOFF]), ranged from 1 to 32
2
. The scan result and the scan time can be calculated with
There is an example to calculate the scan result and scan time in mutual-cap mode.
Test cases:
1. ΔV =100 mV, Rs=10k, Vp-Vm=1 V, Ci=90 pF, M_PMIRRORL = 8, M_PMIRRORR = M_NMIRROR= 2, Tsw = 1 μs,
t3=0.25 μs.
Use
to calculate:
NSTEP = 144, TNSTEP = 144 μs.
2. Dec = 8, Order = 2, Cutoff = 1:
Use
to calculate:
TSICNT = 144 × 64 = 9216, SCANTIME = 144 us × 8 × 2 = 2304 μs.
When using the mutual-cap mode, keep M_PMIRRORR and M_NMIRROR same.
NOTE
3.3.3 Scan time test in mutual-cap mode
The scan time determines how long the TSI finishes the scan and get conversion result.
Similar to the Self-cap mode configurations, the mutual mode also supports multiple scan rounds per channel, and the scan
number is configured by TSI_SINC [DECIMATION], [ORDER], and [CUTOFF].
shows the one mutual-cap touch electrode scan time test results on X-KE17Z-TSI-EVB. The actual Scan Time is
calculated by LPTMR module. The Counter (TSICNT) is read from the register when debugging the code.
In
, give the NSTEP as 388, and Tnstep is 315 μs by the measurement result of single scan, as shown in
. The
theoretical value can be calculated by
.
There are examples for scan time configurations, as shown in
. Give the NSTEP as 388, and Tnstep is 315 μs by the
measurement of single scan.
By comparing
, you can find that when the TSI scan rounds are 16, the scan time of
4473 μs and the scan time of
Setting order = 2 saves time so that the TSI can scan more touch electrodes in the same amount of time.
Table 11. Scan time test by changing the configuration of Decimation, Order, Cutoff
Switching
clock (MHz)
NSTEP
Tnstep
(μs)
Configurations
Result
Decimation
Order
Cutoff
NSTEP
multiple
Counter
(TSICNT)
Actual
scan
round
Real
LPTMR
measured
1
1.28
388
315
1
1
1
1
388
1
315
Table continues on the next page...
NXP Semiconductors
TSI Mutual-cap mode
KE17Z Dual TSI User Guide, Rev. 0, 05 May 2022
User Guide
22 / 37