English
Language : 

SH7020 Datasheet, PDF (269/509 Pages) Renesas Technology Corp – SuperH™ RISC engine
Input Capture Mode: In the 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. Pulse width and cycle can
be measured by using the input capture function.
• Procedure for selecting the input capture mode (figure 10.23)
1. Set the TIOR to select the input capture function of the 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 using the pin function controller before setting the
TIOR.
2. Set the STR bit in the TSTR to 1 to start the TCNT counting.
Input selection
Select input-capture input
Start counting
Capture
Figure 10.23 Procedure for Selecting Input Capture Mode
RENESAS 253