English
Language : 

SH7706 Datasheet, PDF (384/749 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family/SH7700 Series
Section 12 Timer Unit (TMU)
12.4.2 Input Capture Function
Channel 2 has an input capture function (figure 12.7). When using the input capture function, set
the TCLK pin to input mode with the TCOE bit in the timer output control register (TOCR) and
set the timer operation clock to internal clock or on-chip RTC clock with the TPCS2 to TPCS0
bits in the timer control register (TCR_2). Also, designate use of the input capture function and
whether to generate interrupts on using it with the IPCE1 and IPCE0 bits in TCR_2, and designate
the use of either the rising or falling edge of the TCLK pin to set the timer counter (TCNT_2)
value into the input capture register (TCPR_2) with the CKEG1 and CKEG0 bits in TCR_2.
The input capture function cannot be used in standby mode.
TCNT_2 value
TCOR_2
TCOR_2 value set to
TCNT_2 during underflow
H'00000000
TCLK
TCPR_2
Set TCNT_2 value
Time
ICPI
Figure 12.7 Operation Timing when Using the Input Capture Function
(Using TCLK Rising Edge)
Rev. 5.00 May 29, 2006 page 336 of 698
REJ09B0146-0500