MB90420/5 (A) SERIES F
11.4.1 16-bit Input Capture
When the set effective edge is detected, the 16-bit input capture can write the value of the 16-bit free-run
timer into the capture register to generate an interrupt.
n Operation of 16-bit input capture
Counter value
FFFF
BFFF
7FFF
3FFF
0000
Reset
IN0
IN1
Example of IN
Data register 0
Data register 1
Example of data
register
Capture 0 interrupt
Capture 1 interrupt
Example of capture
interrupt
Capture 0 = rising edge
Capture 1 = falling edge
Capture example = both edges (example)
n Input timing of 16-bit input capture
φ
Counter value
Input capture input
Capture signal
Capture register value
Interrupt
2
MC-16LX FAMILY 16-BIT MICROCONTROLLERS HARDWARE MANUAL
H
H
H
H
H
Undefined
3FFF
Undefined
Fig. 11.2 Capture Timing Example for Input Capture
N
Fig. 11.3 Capture Timing for Input Signal
H
Undefined
BFFF
H
Interrupt again by effective edge
Interrupt by software
11-14
BFFF
7FFF
H
N –1
Effective edge
N –1
Time
H