English
Language : 

SH7018 Datasheet, PDF (144/431 Pages) Renesas Technology Corp – SuperH™ RISC engine
The procedure for selecting the input capture operation (figure 8.12) is:
1. Set the TIOR to select the input capture function of the TGR, then select the input capture
source, and rising edge, falling edge, or both edges as the input edge.
2. Set the CST bit in the TSTR to 1 to start the TCNT counting.
Input selection
Select input-capture input (1)
Start counting
(2)
Input capture operation
Figure 8.12 Procedure for Selecting Input Capture Operation
Input Capture Operation: Figure 8.13 shows input capture. The falling edge of TIOCB and both
edges of TIOCA are selected as input capture input edges. In the example, TCNT is set to clear at
the input capture of the TGRB register.
TCNT value
H'0180
H'0160
H'0010
H'0005
H'0000
TIOCA
Counter cleared
by TIOCB input
(falling edge)
Time
TGRA
TIOCB
TGRB
H'0005
H'0160
H'0010
H'0180
Figure 8.13 Input Capture Operation
128