Datasheet
78K0/Ix2 CHAPTER 6 16-BIT TIMERS X0 AND X1
R01UH0010EJ0500 Rev.5.00 213
Feb 28, 2012
(3) Capture function
If bit 7 (TXnTMC) of the 16-bit timer Xn operation control register 0 (TXnCTL0) is set to 1, the count operation is started
in synchronization with the count clock.
Then, when the rising edge of the comparator m output or the INTP0 input is detected, the count value of the 16-bit
timer counter Xn (TMXn) is captured to a 16-bit timer Xn capture/compare register 0 (TXnCCR0) .
When the value of TMXn later matches the value of TXnCRk, TMXn is cleared to 0000H.
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
Figure 6-24. Basic Timing Example of Capture Function Operation
10
N0
N
ABCDE
N
E
C
B
A
D
N
0000H
16-bit timer counter Xn
0000H
Operable bits
(TXnTMC)
Compare register
(TXnCRk)
Capture trigger
(rising edge of the comparator m
output or the INTP0 input)
Capture register
(TXnCCR0)
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