158
MC97F60128
ABOV Semiconductor Co., Ltd.
11.5.4 8-Bit Capture Mode
The timer 0/1/2 capture mode is set by TnMS[1:0]
as ‘1x’. The clock source can use the internal/external clock.
Basically, it has the same function as the 8-bit timer/counter mode and the interrupt occurs when TnCNT is equal to
TnDR. TnCNT value is automatically cleared by match signal and it can be also cleared by software (TnCC).
This timer interrupt in capture mode is very useful when the pulse width of captured
signal is wider than the maximum
period of timer.
The capture result is loaded into TnCDR. In the timer n capture mode, timer n output (TnO) waveform is not available.
According to EIPOL2H/L registers setting, the external interrupt EINT1n function is chosen. Of course, the EINT1n pin
must be set to an input port.
TnCDR and TnDR are in the same address. In the capture mode, reading operation reads TnCDR, not TnDR and
writing operation will update TnDR.
P
r
e
s
c
a
l
e
r
fx
M
U
X
fx/2
TnCNT(8Bit)
ECn
fx/4
fx/8
fx/32
fx/128
fx/512
fx/2048
3
TnCK[2:0]
TnEN
8-bit Timer n Counter
TnDR(8Bit)
Comparator
8-bit Timer n Data Register
Match
MUX
TnCDR(8Bit)
Clear
FLAG1n
(EIFLAG2.n)
2
TnMS[1:0]
2
TnMS[1:0]
S/W
Clear
To interrupt
block
TnEN
-
TnMS1
TnMS0
TnCK2
TnCK1
TnCK0
TnCC
TnCR
1
-
1
x
x
x
x
x
ADDRESS : D2H/DAH/DDH
INITIAL VALUE: 0000_0000B
Clear
EINT1n
POL1n of EIPOL2L
2
Match signal
TnCC
TnIFR
To interrupt
block
TnMIE
S/W
Clear
Figure 11.11
8-Bit Capture Mode for Timer 0/1/2 (Where n = 0, 1 and 2)
Содержание MC97F60128
Страница 17: ...17 MC97F60128 ABOV Semiconductor Co Ltd 4 Package Diagram Figure 4 1 100 pin LQFP 1414 Package...
Страница 18: ...18 MC97F60128 ABOV Semiconductor Co Ltd Figure 4 2 80 Pin LQFP 1212 Package...
Страница 19: ...19 MC97F60128 ABOV Semiconductor Co Ltd Figure 4 3 80 Pin LQFP 1414 Package...
Страница 20: ...20 MC97F60128 ABOV Semiconductor Co Ltd Figure 4 4 64 Pin LQFP 1414 Package...