Datasheet

Section 12 Timer Z
Rev. 2.00 Sep. 23, 2005 Page 178 of 444
REJ09B0068-0200
B. External clock operation
An external clock input pin (TCLK) can be selected by bits TPSC2 to TPSC0 in TCR, and
a detection edge can be selected by bits CKEG1 and CKEG0. To detect an external clock,
the rising edge, falling edge, or both edges can be selected. The pulse width of the external
clock needs two or more system clocks. Note that an external clock does not operate
correctly with the lower pulse width.
Figure 12.11 illustrates the detection timing of the rising and falling edges.
TCNT
External clock input pin
TCNT input
N-1 N N + 1
φ
Figure 12.11 Count Timing at External Clock Operation (Both Edges Detected)