![](http://datasheet.mmic.net.cn/120000/R5F21388SDFP_datasheet_3573603/R5F21388SDFP_640.png)
R01UH0241EJ0010 Rev.0.10
Page 609 of 730
Aug 05, 2011
R8C/38T-A Group
25. Touch Sensor Control Unit
Under development Preliminary document
Specifications in this document are tentative and subject to change.
(2) Majority measurement
The number of majority measurements is controlled by bits MJNUM0 to MJNUM2 in the TSCUMR
register.
When bits MJNUM0 to MJNUM2 are set to all 0, no majority measurement is performed.
MJNUM0 to MJNUM2: Bits in TSCUMR register
Figure 25.6
Operation Example of Majority Measurement (Number of Majorities: Three Times)
(3) Combinations of random measurement and majority measurement
Random measurement and majority measurement can be combined to perform measurement.
During random measurement, the measurement period depends on the random value, but it can be fixed by
the CONST bit in the TSCUMR register.
RANDOM: Bit in TSCUMR register
MJNUM0 to MJNUM2: Bits in TSCUMR register
CONST: Bit in TSCUMR register
Table 25.9
Number of Majorities during Majority Measurement
MJNUM2
MJNUM1
MJNUM0
Number of Majorities
0
No majority measurement (measured once)
0
1
Measured 3 times
0
1
0
Measured 5 times
0
1
Measured 7 times
1
0
Measured 9 times
1
0
1
Measured 11 times
1
0
Measured 13 times
1
Measured 15 times
Table 25.10
Measurement Combinations during Main Measurement
RANDOM
MJNUM2 to MJNUM0
CONST
Main Measurement Specifications
0
000b
—
No random measurement, no majority measurement
Other than 000b
—
Majority measurement
1
000b
0
Random measurement
(the measurement period depends on the random value)
1
Random measurement
(the measurement period is fixed to 16 cycles)
Other than 000b
0
Random measurement (the measurement period depends
on the random value), majority measurement
1
Random measurement (the measurement period is set to 16
cycles + the number of majorities), majority measurement
Operation example of majority measurement (number of majorities: 3 times)
CHxA0 or CHxA1
High is determined
depending on the
majority result
H H H
High is determined
depending on the
majority result
H H
L
Low is determined
depending on the
majority result
H
L
Low is determined
depending on the
majority result
LLL