R01UH0240EJ0010 Rev.0.10
Page 604 of 728
Aug 05, 2011
R8C/36T-A Group
25. Touch Sensor Control Unit
Under development Preliminary document
Specifications in this document are tentative and subject to change.
BCSHORT: Bit in TSCUCR1 register
TCS10 to TCS19: Bits in TSCUTCR0A register
TCSB10 to TCSB19: Bits in TSCUTCR0B register
TCS20 to TCS25, TCS2C, TCS30 to TCS35: Bits in TSCUTCR1 register
TCS40 to TCS44, TCS4C, TCS50 to TCS55, TCS5C: Bits in TSCUTCR2 register
MJNUM0 to MJNUM2, PREMSR, RANDOM, RANDOM6: Bits in TSCUMR register
TCS60 to TCS65: Bits in TSCUTCR3 register
DISCHRG: Bit in TSCUMR register
Notes:
1. The CHxB-CHxC short circuit switch can be turned ON by the BCSHORT bit in the TSCUCR1 register.
2. The CHxB-CHxC short circuit switch can be turned OFF by the BCSHORT bit in the TSCUCR1 register.
Either the CHxA0 or CHxA1 pin state is indicated for CHxA.
These states are controlled by bits CHXAS00 to CHXAS08, CHXAS10, CHXAS11, CHXAS16 to CHXAS25,
CHXAS27, CHXAS28, and CHXAS31 to CHXAS35 in registers TSCHSEL0 to TCSHSEL2 as follows:
When CHxA0 is selected by the detection pin, CHxA0 is set to low or Hi-Z output by status control and CHxA1
is always set to Hi-Z output.
When CHxA1 is selected by the detection pin, CHxA1 is set to low or Hi-Z output by status control and CHxA0
is always set to Hi-Z output.
25.3.1.2
Adjustment of Status Periods
The timing of status periods can be adjusted as shown in
Figure 25.4.Figure 25.4
Adjustment of Status Periods
25.3.1.3
PRE Measurement Specifications
Turning ON/OFF of PRE measurement can be controlled by the PREMSR bit in the TSCUMR register.
When the PREMSR bit is set to 1 (PRE measurement), the measurement result of PRE measurement is reflected
in the primary counter. When the PREMSR bit is set to 0 (no PRE measurement), the measurement result is not
reflected in the primary counter.
The random measurement function and the majority measurement function are not used in PRE measurement.
Main
measurement
PRE
measurement
Random setting for period 6 (the RANDOM6 bit in the TSCUMR register is 1)
Period 6
(1 to 16 cycles)
The number of cycles is selected by registers TSCURVR0 to TSCURVR2.
The selected number of cycles depends on the same bit as used for random measurement (1 to 16 cycles).
The number of cycles is selected sequentially by registers TSCURVR0 to TSCURVR2 even when no random
measurement is in progress.
Hi-Z period
(before measurement starts)
CHxA0 or CHxA1
CHxB
CHxC
Period 3
(1 to 64 cycles)
Hi-Z period (at measurement)
Period 1
(1 to 1024 cycles)
Period 2
(1 to 64 cycles)
(1)
Period 4
(1 to 32 cycles)
(1)
Period 5
(1 to 64 cycles)
(1)
Period 6
(1 to 64 cycles)
Period 2
(1 to 64 cycles)
(1)
Period 3
(1 to 64 cycles)
Main
measurement
PRE
measurement
Main
measurement
PRE
measurement
Main
measurement
PRE
measurement
Main
measurement
PRE
measurement
CHxA0 or CHxA1
Note:
1. For periods 2, 4, and 5, the number of cycles can be set to 0 (skipped) by the following registers.
Skipping period 2: TCS2C bit in TSCUTCR1 register
Skipping period 4: TCS4C bit in TSCUTCR2 register
Skipping period 5: TCS5C bit in TSCUTCR2 register