English
Language : 

SH7032 Datasheet, PDF (289/687 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
Section 10 16-Bit Integrated Timer Pulse Unit (ITU)
Input Capture Mode: In input capture mode, the counter value is captured into a general register
when the input edge is detected at an input capture/output compare pin (TIOCA, TIOCB).
Detection can take place on the rising edge, falling edge, or both edges. The pulse width and cycle
can be measured by using the input capture function.
• Procedure for selecting input capture mode (figure 10.23)
1. Set TIOR to select the input capture function of GR and select the rising edge, falling edge,
or both edges as the input edge of the input capture signal. Put the corresponding port into
input-capture mode using the pin function controller before setting TIOR.
2. Set the STR bit in TSTR to 1 to start the TCNT count.
Input selection
Select input-capture input (1)
Start counting
(2)
Capture
Figure 10.23 Procedure for Selecting Input Capture Mode
Rev. 7.00 Jan 31, 2006 page 263 of 658
REJ09B0272-0700