November, 2018 Rev.1.4
87
11.4.2.3 16-bit Capture Mode
Capture Mode is enabled by setting CAP2 bit in T2CR register. The clock source is the same as in
output compare mode of operation.
EC2E T2_PE
CAP2
T2CK2 T2CK1 T2CK0 T2CN
T2ST
T2CR
X
X
1
X
X
X
X
X
ADDRESS : C6
H
INITIAL VALUE : 0000_0000
B
[C7
H
]
INT2IF
INT2
Interrupt
16-bit Counter
16-bit Data Register
T2CN
Clear
[CF
H
]
T2ST
INT2
EIEDGE[5:4]
T2H(8-bit)
T2L(8-bit)
CDR2H(8-bit)
CDR2L(8-bit)
[C7
H
]
[CF
H
]
÷64
÷16
P
r
e
s
c
a
l
e
r
MUX
÷1
÷2
÷4
÷8
SCLK
T2CK[2:0]
3
÷256
EC2 (or
IRSensor)
EC2E
1
CRF
T2EDGE[1:0]
T2IF/
WTIF
T2 or WT
Interrupt
WT Out
IRCAP2
IRCAP2 = T2EDGE[1:0] != 00
B
0
1
÷64
÷16
P
r
e
s
c
a
l
e
r
MUX
÷1
÷2
÷4
÷8
SCLK
[C7
H
]
T2IF
Timer2
Interrupt
16-bit Timer2 Counter
16-bit Timer2 Data Register
T2CN
Clear
[C7
H
]
Comparator
T2ST
T2CK[2:0]
3
T2H
(8-bit)
T2L
(8-bit)
T2DRH
(8-bit)
T2DRL
(8-bit)
[CF
H
]
[CF
H
]
EC2E T2_PE CAP2 T2CK2 T2CK1 T2CK0 T2CN
T2ST
T2CR
X
X
0
X
X
X
X
X
ADDRESS : CE
H
INITIAL VALUE : 0000_0000
B
÷256
EC2 (or
IRSensor)
EC2E
1
CRF
Figure 11-16 Block Diagram of 16-bit Timer 2 in Output Compare or Event Counter Mode
Figure 11-17 Block Diagram of Timer 2 in Capture Mode
Содержание MC96FR364B
Страница 17: ...MC96FR364B November 2018 Rev 1 4 17 4 PACKAGE DIMENSION...
Страница 18: ...MC96FR364B 18 November 2018 Rev 1 4 Figure 4 1 PKG DIMENSION 28 TSSOP...
Страница 23: ...MC96FR364B November 2018 Rev 1 4 23 6 3 REMOUT Port Data PAD VDD Figure 6 3 REMOUT port...
Страница 69: ...November 2018 Rev 1 4 69 Initial value 00H BIT 7 0 BIT counter value...