191
TCG Clear Timing: TCG can be cleared at the rising edge, falling edge, or both edges of the
external input capture signal. Figure 9.12 shows the timing for clearing at both edges.
External input
capture signal
Internal input
capture signal F
Internal input
capture signal R
TCG
N
H'00
N
H'00
Figure 9.12 TCG Clear Timing
Timer G Operation States: Table 9.10 summarizes the timer G operation states.
Table 9.10
Timer G Operation States
Operation Mode
Reset
Active
Sleep
Watch
Sub-
active
Sub-
sleep
Standby
TCG
Input
capture
Reset
Functions
*
Functions
*
Halted
Functions/
Halted
*
Functions/
Halted
*
Halted
Interval
Reset
Functions
*
Functions
*
Retained
Functions/
Halted
*
Functions/
Halted
*
Halted
ICRGF
Reset
Functions
*
Functions
*
Retained
Functions/
Halted
*
Functions/
Halted
*
Retained
ICRGR
Reset
Functions
*
Functions
*
Retained
Functions/
Halted
*
Functions/
Halted
*
Retained
TMG
Reset
Functions
Retained
Retained
Functions Retained
Retained
Note:
*
In active mode and sleep mode, if ø
W
/2 is selected as the TCG internal clock, since the
system clock and internal clock are not synchronized with each other, a synchronization
circuit is used. This may result in a count cycle error of up to 1/ø (s). In subactive mode and
subsleep mode, if ø
W
/2 is selected as the TCG internal clock, regardless of the subclock
ø/SUB (ø
W
/2, ø
W
/4, ø
W
/8) TCG and the noise canceller circuit run on an internal clock of
ø
W
/2. If any other internal clock is chosen, TCG and the noise canceller circuit will not run,
and the input capture function will not operate.