Rev. 2.00, 09/03, page 320 of 690
2. External Clock Operation: Set the TPSC2 to TPSC0 bits in TCR to select the external clock
(TCLK) as the timer clock. Use the CKEG1 and CKEG0 bits in TCR to select the detection
edge. Rise, fall or both may be selected. The pulse width of the external clock must be at least
2 peripheral module clock cycles (P
φ
) for single edges or 3 peripheral module clock cycles
(P
φ
) for both edges. A shorter pulse width will result in incorrect operation. Figure 12.5 shows
the timing for both-edge detection.
P
φ
External
clock input
(TCLK)
TCNT
input clock
TCNT
N + 1
N
N
−
1
Figure 12.5 Count Timing when External Clock Is Operating (Both Edges Detected)
12.4.2
Input Capture Function
Channel 2 has an input capture function. When using the input capture function, set the timer
operation clock to internal clock with the TPSC2 to TPSC0 bits in TCR_2. Also, specifies use of
the input capture function and whether to generate interrupts on using it with the ICPE1 to ICPE0
bits in TCR_2, and specifies the use of either the rising or falling edge of the TCLK pin to set the
TCNT_2 value into TCPR_2 with the CKEG1 to CKEG0 bits in TCR_2. The input capture
function cannot be used in standby mode.
Figure 12.6 shows the timing at the rising edge of the TCLK pin input.
TCNT_2 value
TCOR_2
H'00000000
TCLK
TCPR_2
Set TCNT_2 value
TICPI2
TCOR_2 value set to
TCNT_2 during underflow
Time
Figure 12.6 Operation Timing when Using Input Capture Function
(Using TCLK Rising Edge)
Summary of Contents for SH7705
Page 2: ......
Page 70: ...Rev 2 00 09 03 page 24 of 690 ...
Page 194: ...Rev 2 00 09 03 page 148 of 690 ...
Page 284: ...Rev 2 00 09 03 page 238 of 690 ...
Page 338: ...Rev 2 00 09 03 page 292 of 690 ...
Page 354: ...Rev 2 00 09 03 page 308 of 690 ...
Page 374: ...Rev 2 00 09 03 page 328 of 690 ...
Page 420: ...Rev 2 00 09 03 page 374 of 690 ...
Page 476: ...Rev 2 00 09 03 page 430 of 690 ...
Page 482: ...Rev 2 00 09 03 page 436 of 690 ...
Page 552: ...Rev 2 00 09 03 page 506 of 690 ...
Page 630: ...Rev 2 00 09 03 page 584 of 690 ...
Page 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...