Datasheet
Section 11 16-Bit Cycle Measurement Timer (TCM)
Rev. 3.00 Sep. 28, 2009 Page 318 of 910
REJ09B0350-0300
(2) Input Capture
The value in TCMCNT is transferred to TCMICR by detecting input edge of TCMCYI pin in
timer mode. At this time, the ICPF flag in TCMCSR is set. Detection of rising or falling edges is
selectable with the setting of the IEDG bit in TCMCR. Figure 11.4 shows an example of the
timing of input capture operations and figure 11.5 shows buffer operation of input capture.
φ
TCMCYI
Input capture
signal
ICPF
TCMCNT
N + 3N + 2N + 1NN - 1
TCMICR
M
N
Figure 11.4 Input Capture Operation Timing (Sensing of Rising Edges)
φ
TCMCYI
Input capture
signal
TCMICRF
TCMCNT
0 + 10NN - 1
0NM
NML
TCMICR
Figure 11.5 Buffer Operation of Input Capture