English
Language : 

SH7785 Datasheet, PDF (842/1692 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
18. Timer Unit (TMU)
(3) TCNT Count Timing
• Operating on internal clock
Any of five internal count clocks (Pck/4, Pck/16, Pck/64, Pck/256, or Pck/1024) scaled from
the peripheral clock can be selected as the count clock by means of the TPSC2 to TPSC0 bits
in TCR.
Figure 18.4 shows the timing in this case.
Pck
Internal clock
TCNT
N+1
N
N–1
Figure 18.4 Count Timing when Operating on Internal Clock
• Operating on external clock
In channels 0, 1, and 2, the external clock input pin (TCLK) input can be selected as the timer
clock by means of the TPSC2 to TPSC0 bits in TCR. The detected edge (rising, falling, or both
edges) can be selected with the CKEG1 and CKEG0 bits in TCR.
Figure 18.5 shows the timing for both-edge detection.
Pck
External clock
input pin (TCLK)
TCNT
N+1
N
N–1
Figure 18.5 Count Timing when Operating on External Clock Input
Rev.1.00 Jan. 10, 2008 Page 812 of 1658
REJ09B0261-0100