MC97F2664
128
April 11, 2014 Ver. 1.4
11.5.4 8-Bit Capture Mode
The timer 0/1/2/3 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 EIPOL1H/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
(EIFLAG1.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 : B2H/B5H/BAH/BDH
INITIAL VALUE: 0000_0000B
Clear
EINT1n
POL1n of EIPOL1L
2
Match signal
TnCC
TnIFR
To interrupt
block
TnMIE
S/W
Clear
Figure 11.10 8-Bit Capture Mode for Timer 0/1/2/3 (Where n = 0, 1, 2, and 3)
Содержание MC97F2664
Страница 20: ...MC97F2664 20 April 11 2014 Ver 1 4 4 Package Diagram Figure 4 1 64 Pin LQFP 1010 Package...
Страница 21: ...MC97F2664 April 11 2014 Ver 1 4 21 Figure 4 2 64 Pin LQFP 1414 Package...
Страница 22: ...MC97F2664 22 April 11 2014 Ver 1 4 Figure 4 3 64 Pin QFN Package...
Страница 23: ...MC97F2664 April 11 2014 Ver 1 4 23 Figure 4 4 44 Pin MQFP 1010 Package...