14.6.3
Operation of 16-bit Input Capture
The input capture unit is used to detect a specified valid edge. If a valid edge is
detected, the interrupt flag is set and the value of 16-bit free-run timer is loaded into the
capture register.
■ 16-bit Input Capture Operation
Counter value
FFFF
H
BFFF
H
7FFF
H
3FFF
H
0000
H
Reset
IN0
IN1
IN example
Capture register 0
Capture register 1
Capture register
example
Capture 0 interrupt
Capture 1 interrupt
Capture example
interrupt
(Note) Capture 0: Rising edge
Capture 1: Falling edge
Capture example: Both edges
Figure 14.6-20 Sample Input Capture Timing
Undefined
3FFF
Undefined
Undefined
CHAPTER 14 MULTI-FUNCTIONAL TIMER
H
BFFF
H
Time
7FFF
H
3FFF
H
Interrupt is generated
with another valid edge
Interrupt is cleared
by software
337