78
MC95FG308 / MC95FG208
ABOV Semiconductor Co., Ltd.
11.5.1.2
8-bit Timer/Counter Mode
The 8-bit Timer/Counter Mode is selected by control registers as shown in Figure 11.6.
Figure 11.6
8-bit Timer/Event Counter 0, 1 Block Diagram
The two 8-bit timers have each counter and data register. The counter register is increased by internal or external
clock input. The timer 0 can use the input clock with one of 2, 4, 8, 32, 128, 512, 2048 prescaler division rates
(T0CK[2:0]). The timer 1 can use the input clock with one of 1, 2, 8 ~ 16384 and timer 0 overflow clock (T1CK[3:0]).
When the value of T0,1 value and the value of T0DR, T1DR are respectively identical in Timer 0, 1, the interrupt of
Timer 0, 1 occurs. The external clock (EC0) counts up the timer at the rising edge. If EC0 is selected from T0CK[2:0],
EC0 port becomes input port. The timer 1 can’t use the external EC0 clock.
÷
2048
÷
512
÷
128
P
r
e
s
c
a
l
e
r
MUX
÷
2
÷
4
÷
8
÷
32
EC0
fx
MUX
÷
2
÷
4
÷
16384
[B3
H
]
T0IF
Timer0
Interrupt
8-bit Timer0 Counter
T0(8-bit)
8-bit Timer0 Data Register
T0DR(8-bit)
F/F
P06/T0
PIN
T0CN
Clear
[B3
H
]
Comparator
T0ST
[B5
H
]
T1IF
Timer1
Interrupt
8-bit Timer1 Counter
T1(8-bit)
8-bit Timer1 Data Register
T1DR(8-bit)
F/F
P10/T1
PIN
T1CN
Clear
[B6
H
]
Comparator
T1ST
16BIT
CAP1
T1CN
T1ST T1CK3 T1CK2 T1CK1 T1CK0
T0EN
T0PE
CAP0 T0CK2 T0CK1 T0CK0 T0CN
T0ST
T1CR
T0CR
1
X
0
X
X
X
X
X
0
0
X
X
X
X
X
X
ADDRESS : B2
H
INITIAL VALUE : 0000_0000
B
ADDRESS : B4
H
INITIAL VALUE : 0000_0000
B
T0CK[2:0]
3
T1CK[3:0]
4
T0PE
T1PE
OVRMSK
Содержание MC95FG208 Series
Страница 14: ...14 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd 4 Package Diagram Figure 4 1 32 Pin SOP Package...
Страница 15: ...15 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 2 32 Pin QFN Package...
Страница 16: ...16 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 3 32 Pin LQFP Package...
Страница 17: ...17 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 4 28 Pin SOP Package...
Страница 18: ...18 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 5 28 Pin SOP Package continue...
Страница 19: ...19 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 6 28 Pin SOP Package...
Страница 20: ...20 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 7 28 Pin TSSOP Package...
Страница 21: ...21 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 8 20 Pin SOP Package...
Страница 22: ...22 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 9 20 Pin TSSOP Package...
Страница 23: ...23 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 10 16 Pin SOP Package...
Страница 24: ...24 MC95FG308 MC95FG208 ABOV Semiconductor Co Ltd Figure 4 11 16 Pin TSSOP Package...