Datasheet
Section 18 Timer RG
Page 648 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
(2) Input Capture Function
The TRGCNT value can be transferred to GR on detection of the input-capture/output-compare
pin (TGIOA, TGIOB) input edge. Rising edge, falling edge, or both edges can be selected as the
detection edge. The pulse width and cycle period can be measured using the input capture
function.
(a) Example of setting procedure for input capture operation
Figure 18.6 shows an example of the setting procedure for input capture operation.
Select input-capture input
Input selection
Start counting
<Input capture operation>
[1]
[2]
[1] Designate GR as an input capture register by
means of TRGIOR, and select the input capture
signal input edge (rising edge, falling edge, or
both edges).
[2] Set the STR bit in TRGMDR to 1 to start the
TRGCNT count operation.
Figure 18.6 Example of Setting Procedure for Input Capture Operation