HYUNDAI MicroElectronics
GMS90 Series
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
T2MO
T2CON
T2CON
Input Clock
D
P1.1/
T2EX
Mode
Remarks
RCLKor
TCLK
external
CP/RL2
TR2
DCEN EXEN2
internal
(P1.0/T2)
16-bit Auto-
Reload
0
0
0
1
0
0
0
1
X
reload upon over-
flow
reload trigger (fall-
ing edge)
Max.
OSC ÷24
0
1
↓
f
OSC ÷ 12
f
0
0
0
0
1
1
1
1
X
X
0
1
Down counting
Up counting
16-bit
Capture
0
1
1
X
0
X
16 bit Timer/ Coun-
ter (only up-count-
ing)
Max.
OSC ÷ 24
f
f
OSC ÷ 12
f
0
1
1
1
1
X
X
1
0
↓
capture TH2,TL2
→ RC2H,RC2L
Baud Rate
Generator
X
X
no overflow
interrupt request
(TF2)
Max.
OSC ÷ 24
OSC ÷ 12
f
1
X
X
1
0
X
X
1
↓
extra external inter-
rupt ("Timer 2")
Off
X
X
X
Timer 2 stops
-
-
Note: ↓ =
falling edge
20
Oct. 2000 Ver 3.1a