English
Language : 

SH7763 Datasheet, PDF (769/2026 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC Engine Family SH-4A Series
Section 19 Timer Unit (TMU)
19.4.2 Input Capture Function
Channel 2 has an input capture function.
The procedure for using the input capture function is as follows:
1. Use bits TPSC2 to TPSC0 in TCR to set an internal clock as the timer operating clock.
2. Use bits IPCE1 and IPCE0 in TCR to specify use of the input capture function, and whether
interrupts are to be generated when this function is used.
3. Use bits CKEG1 and CKEG0 in TCR to specify whether the rising or falling edge of the
TCLK pin is to be used to set the TCNT value in TCPR2.
When input capture occurs, the TCNT2 value is set in TCPR2 only when the ICPF bit in TCR2 is
0. A new DMAC transfer request is not generated until processing of the previous request is
finished.
Figure 19.7 shows the operation timing when the input capture function is used (with TCLK rising
edge detection).
TCNT value
TCOR
TCOR value set in TCNT
on underflow
H'0000 0000
TCLK
Time
TCPR2
TICPI2
TCNT value set
Figure 19.7 Operation Timing when Using Input Capture Function
Rev. 1.00 Oct. 01, 2007 Page 703 of 1956
REJ09B0256-0100