Datasheet
78K0/Ix2 CHAPTER 6 16-BIT TIMERS X0 AND X1
R01UH0010EJ0500 Rev.5.00 215
Feb 28, 2012
Figure 6-26. Example of Software Processing for Capture Function Operation
100
A
ABC
N0
B
N
C
N
0000H
16-bit timer counter Xn
0000H
Operable bit
(TXnTMC)
Compare register
(TXnCRk)
Capture trigger
(rising edge of the comparator m
output or the INTP0 input)
Capture register
(TXnCCR0)
<1>
<2>
START
<1> Count operation start flow
Initial setting of these registers is performed before
setting the TXnTMC bit to 1.
Register initial setting
TXnCTL2 register,
TXnCTL1 register,
TXnCRk register
Starts count operation
TXnTMC bit = 1
<2> Count operation stop flow
TXnTMC bit = 0
The counter is initialized and counting is stopped
by clearing the TXnTMC bit to 0.
STOP
Remarks 1. m = 1, 2
n = 0, 1
k = 1, 3
2. Capture trigger of 16-bit timer X0 : Rising edge of the comparator 2 output or the INTP0 input
Capture trigger of 16-bit timer X1 : Rising edge of the comparator 1 output