Datasheet

Table Of Contents
Section 14 16-Bit Timer Pulse Unit (TPU)
Rev. 2.00 Jul. 04, 2007 Page 294 of 692
REJ09B0309-0200
(3) Input Capture Function
The TCNT value can be transferred to TGR on detection of the TIOC pin input edge.
Rising edge, falling edge, or both edges can be selected as the detected edge.
(a) Example of Input Capture Operation Setting Procedure
Figure 14.11 shows an example of the setting procedure for input capture operation.
Input selection
Select input capture input
Start count
<Input capture operation>
Designate TGR as an input capture register by
means of TIOR, and select the input capture source
and, rising edge, falling edge, or both edges as the
input signal edge.
Set the CST bit in TSTR to 1 to start the count
operation.
[1]
[2]
[1]
[2]
Figure 14.11 Example of Setting Procedure for Input Capture Operation