English
Language : 

HD6473032F16 Datasheet, PDF (378/847 Pages) Renesas Technology Corp – Hardware Manual Renesas 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Series
Section 10 16-Bit Integrated Timer Unit (ITU)
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
Select input-capture input 1
port data direction bit to 0 before making these
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
Counter cleared by TIOCB
input (falling edge)
H'0005
H'0000
TIOCB
Time
TIOCA
GRA
H'0005
H'0160
GRB
H'0180
Figure 10.24 Input Capture (Example)
Rev. 3.00 Mar 21, 2006 page 348 of 814
REJ09B0302-0300