Datasheet

Section 16 Timer RD
REJ09B0465-0300 Rev. 3.00 Page 551 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
16.3.3 Input Capture Function
The TRDCNT value can be transferred to GR on detection of the input edge of the input
capture/output compare pin (FTIOA, FTIOB, FTIOC, or FTIOD). Rising edge, falling edge, or
both edges can be selected as the detected edge. When the input capture function is used, the pulse
width or period can be measured.
Figure 16.16 shows an example of the input capture operation setting procedure.
[1] Designate GR as an input capture register
by means of TRDIOR, and select rising
edge, falling edge, or both edges as the
input edge of the input capture signal.
[2] Set the STR bit in TRDSTR to 1 to start the
TRDCNT counter operation.
[1]
Input selection
Select input edge of
input capture
[2]
Start counter operation
<Input capture operation>
Figure 16.16 Example of Input Capture Operation Setting Procedure