Timer 2
Timer 2 is a 16-bit timer/Counter with an up/down count feature. It can operate either as timer or as an
event counter which is selected by bit C/T2 (T2CON.1). It has three operating modes as shown in
table 5.
Table 5
Timer/Counter 2 Operating Modes
Mode
T2CON
T2MOD
DCEN
T2CON
EXEN
P1.1/
T2EX
Remarks
Input Clock
RxCLK
or
TxCLK
CP/
RL2
TR2
internal
external
(P1.0/T2)
16-bit
Auto-
reload
0
0
0
0
0
0
0
0
1
1
1
1
0
0
1
1
0
1
X
X
X
é
0
1
reload upon
overflow
reload trigger
(falling edge)
Down counting
Up counting
f
OSC
/ 12
max
f
OSC
/ 24
16-bit
Cap-
ture
0
0
1
1
1
1
X
X
0
1
X
é
16 bit Timer/
Counter (only
up-counting)
capture TH2,
TL2
RC2H,
RC2L
f
OSC
/ 12
max
f
OSC
/ 24
B a u d
R a t e
Gene-
rator
1
1
X
X
1
1
X
X
0
1
X
é
no overflow
interrupt
request (TF2)
extra external
interrupt
("Timer 2")
f
OSC
/ 2
max
f
OSC
/ 24
off
X
X
0
X
X
X
Timer 2 stops
-
-
GMS90 Series
8-Bit CMOS Microcontroller
LG Semicon MCU
20
MAY. 1998