English
Language : 

HD6417751RBP240V Datasheet, PDF (430/1226 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
12. Timer Unit (TMU)
• Operating on external clock
In channels 0 to 2, external clock pin (TCLK) input can be selected as the timer clock by
means of the TPSC2–TPSC0 bits in TCR. The detected edge (rising, falling, or both edges) can
be selected with the CKEG1 and CKEG0 bits in TCR.
Figure 12.5 shows the timing for both-edge detection.
Pck
External clock
input pin
TCNT
N+1
N
N–1
Figure 12.5 Count Timing when Operating on External Clock
• Operating on on-chip RTC output clock
In channels 0 to 2, the on-chip RTC output clock can be selected as the timer clock by means
of the TPSC2–TPSC0 bits in TCR. Figure 12.6 shows the timing in this case.
RTC output clock
TCNT N + 1
N
N–1
Figure 12.6 Count Timing when Operating on On-Chip RTC Output Clock
12.3.2 Input Capture Function
Channel 2 has an input capture function.
The procedure for using the input capture function is as follows:
1. Use the TCOE bit in the timer output control register (TOCR) to set the TCLK pin to input
mode.
2. Use bits TPSC2–TPSC0 in the timer control register (TCR) to set an internal clock or the on-
chip RTC output clock as the timer operating clock.
3. Use bits IPCE1 and IPCE0 in TCR to specify use of the input capture function, and whether
interrupts are to generated when this function is used.
Rev.4.00 Oct. 10, 2008 Page 330 of 1122
REJ09B0370-0400