English
Language : 

HD6413003RF Datasheet, PDF (348/715 Pages) Renesas Technology Corp – Microcontroller (MCU)
Input selection
1. Set TIOR to select the input capture function of a
general register and the rising edge, falling edge,
or both edges of the input capture signal. Clear the
port data direction bit to 0 before making these
Select input-capture input 1
TIOR settings.
Start counter
2 2. Set the STR bit to 1 in TSTR to start the timer
counter.
Input capture
Figure 10-23 Setup Procedure for Input Capture (Example)
• Examples of input capture
Figure 10-24 illustrates input capture when the falling edge of TIOCB and both edges of
TIOCA are selected as capture edges. TCNT is cleared by input capture into GRB.
TCNT value
H'0180
H'0160
H'0005
H'0000
TIOCB
TIOCA
GRA
GRB
H'0005
Counter cleared by TIOCB
input (falling edge)
Time
H'0160
H'0180
Figure 10-24 Input Capture (Example)
330