Datasheet

Table Of Contents
Section 14 16-Bit Timer Pulse Unit (TPU)
Rev. 2.00 Jul. 04, 2007 Page 295 of 692
REJ09B0309-0200
(b) Example of Input Capture Operation
Figure 14.12 shows an example of input capture operation.
In this example, both rising and falling edges have been selected as the input capture input edge of
the TIOCA pin, the falling edge has been selected as the input capture input edge of the TIOCB
pin, and counter clearing by TGRB input capture has been designated for TCNT.
TCNT value
H'0180
H'0000
TIOCA
TGRA
H'0010
H'0005
Counter cleared by TIOCB
input (falling edge)
H'0160
H'0005 H'0160 H'0010
TGRB
H'0180
TIOCB
Time
Figure 14.12 Example of Input Capture Operation