167
MC97F60128
ABOV Semiconductor Co., Ltd.
11.6.3 16-Bit Capture Mode
The 16-bit Timer 3/4/5/6 capture mode is set by TnMS[1:0]
as ‘01’. The clock source can use the internal/external
clock. Basically, it has the same function as the 16-bit timer/counter mode and the interrupt occurs when
TnCNTH/TnCNTL is equal to TnADRH/TnADRL. The TnCNTH, TnCNTL values are automatically cleared by match
signal. 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 TnBDRH/TnBDRL.
According to EIPOL2L/H registers setting, the external interrupt EINT1n function is chosen. Of course, the EINT1n pin
must be set as an input port.
TnEN
TnCRH
1
ADDRESS:
E3H/4079H/4081H/4089H
INITIAL VALUE : 0000_0000B
–
TnMS1
TnMS0
–
–
–
TnCC
–
0
1
–
–
–
X
TnCK1
TnCRL
X
ADDRESS:E2H/4078H/4080H/4088H
INITIAL VALUE : 0000_0000B
TnCK1
TnCK0
TnIFR
–
TnPOL
TnECE TnCNTR
X
X
X
–
X
X
X
FLAG1n
(EIFLAG2.n)
A Match
TnCC
TnEN
P
r
e
s
c
a
l
e
r
fx
M
U
X
fx/2
fx/4
fx/32
fx/128
fx/512
fx/8
fx/1
16-bit Counter
TnCNTH/TnCNTL
16-bit B Data Register
TnBDRH/TnBDRL
Clear
Edge
Detector
TnECE
ECn
Comparator
16-bit A Data Register
TnADRH/TnADRL
TnIFR
S/W
Clear
A Match
Buffer Register A
A Match
TnCC
Reload
R
EINT1n
TnCNTR
TnEN
Clear
POL1n of EIPOL2H/L
S/W
Clear
To interrupt
block
2
TnMS[1:0]
2
TnEN
3
TnCK[2:0]
To interrupt
block
TnMIE
To other block
NOTE)
1. Do not set to
“110b” in the TnCK[2:0], when fx is over 10MHz.
Figure 11.17
16-Bit Capture Mode for Timer 3/4/5/6 (where n = 3,4,5 and 6)
Содержание 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...