R01UH0241EJ0010 Rev.0.10
Page 624 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.
25.5.5
Restrictions on CHxB-CHxC Short Circuit Control
When the BCSHORT bit in the TSCUCR1 register is set to 1 (short circuit) to short-circuit between CHxB and
CHxC, there are the following restrictions:
Skipping of period 4 is disabled (setting of the TCS4C bit in the TSCUCR2 register to 1 (the number of cycles
for period 4 is 0) is disabled)
When PRE measurement is turned ON and f1 is selected as the count source, the setting of period 4 is two or
more cycles (2 to 32 cycles by setting bits TCS40 to TCS44 in the TSCUCR2 register.)
BCSHORT: Bit in TSCUCR1 register
TCS4C: Bit in TSCUCR2 register
PREMSR: Bit in TSCUMR register
25.5.6
Touch Sensor Control Unit Module Standby
The clock supply to the touch sensor control unit module can be stopped by setting to touch sensor control unit
module standby mode.
Since the clock supply to the registers in the touch sensor control unit is also stopped, cancel standby mode and
allow at least two cycles to elapse before changing the settings of these registers.
Perform the same processing when stopping all clocks (when setting the CM10 bit in the CM register to 1).
25.5.7
Touch Sensor Control Unit Initialization (TSCUINIT)
To initialize the touch sensor control unit by setting the TSCUINIT bit in the TSCUCR0 register to 1, perform
the following processing:
Stop measurement (set the TSCUSTRT bit in the TSCUCR0 register to 0)
No TSCU interrupt request is output (read the SIF bit in the TSCUFR register as 0) or clear the TSCU
interrupt request (read the SIF bit as 1 and then write 0 to the same bit).
The DTC is not initialized by performing initialization using the TSCUINIT bit.
When initializing the touch sensor control unit, also make the DTC settings.
25.5.8
Restrictions on Clock Settings
Do not change clock settings while measurement is performed using the touch sensor control unit.
Set the CM36 bit to 0 and the CM37 bit to 0 in the CM3 register and do not switch the clock used when exiting
wait mode by an interrupt request signal.
25.5.9
Restrictions on Wait Mode
When the touch sensor control unit is used in wait mode, there are the following restrictions:
Execute the WAIT instruction or set the CM30 bit in the CM3 register to 1 immediately after the TSCUSTRT
bit is set to 1.
Set the FMR11 bit in the FMR1 register to 1 and the FMSTP bit in the FMR0 register to 0 not to stop the flash
memory even during wait mode.
Do not use the touch sensor control unit in low-power-consumption wait mode. Set the SVC0 bit in the SVDC
register to 0.
Table 25.19
Restrictions on Period 4 Settings during CHxB-CHxC Short Circuit Control
BCSHORT
TCS4C
PREMSR
Restrictions on Period 4 Settings
0
—
No restriction
1
0
No restriction
10
1
When f2 or f4 is selected as the count source: No restriction
When f1 is selected as the count source: Set to 2 to 32 cycles
1
—
Do not set to this bit combination.