English
Language : 

HD64F3039F18 Datasheet, PDF (264/710 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer H8 Family / H8/300H Series
Section 8 16-Bit Integrated Timer Unit (ITU)
Input Capture Function
The TCNT value can be captured into a general register when a transition occurs at an input
capture/output compare pin (TIOCA or TIOCB). Capture can take place on the rising edge, falling
edge, or both edges. The input capture function can be used to measure pulse width or period.
Sample setup procedure for input capture: Figure 8.23 shows a sample procedure for setting up
input capture.
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 8.23 Setup Procedure for Input Capture (Example)
Rev.3.00 Mar. 26, 2007 Page 240 of 682
REJ09B0353-0300