Datasheet
Section 12 16-Bit Duty Period Measurement Timer (TDP)
Rev. 3.00 Sep. 28, 2009 Page 345 of 910
REJ09B0350-0300
(2) Input Capture
The value in TDPCNT is transferred to TDPICR by detecting the input edge of the TDPCYI pin in
timer mode. At the same time, the ICPF flag in TDPCSR is set. Detection of rising or falling edges
is selectable by setting the IEDG bit in TDPCR1. Figure 12.4 shows an example of the timing of
input capture operations, and figure 12.5 shows an example of buffer operation for input capture.
φ
TDPCYI
Input capture
signal
ICPF
TDPCNT
N + 3N + 2N + 1NN - 1
TDPICR
M
N
Figure 12.4 Example of Input Capture Operation Timing (Selection of Rising Edges)
φ
TDPCYI
Input capture
signal
TDPICRF
TDPCNT
0 + 10NN - 1
0NM
NML
TDPICR
Figure 12.5 Example of Buffer Operation for Input Capture