GMS81C5108
16BIT
CAP0
CAP1
PWME T0CK[2:0] T1CK[1:0] PWMO
Timer 0
8 Bit Timer
8 Bit Event Counter 8 Bit Capture
Timer 1
0
0
0
0
1
1
1
1
0
0
1
0
0
0
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
XXX
111
XX
XX
XX
XX
11
11
0
0
1
1
0
0
0
1
8 Bit Timer
XXX
XXX
XXX
111
8 Bit Capture
8 Bit Compare Output
8 Bit Timer/Counter 10 Bit PWM
16 Bit Timer
16 Bit Event Counter
16 Bit Capture
X1
0
XXX
XXX
11
11
16 Bit Compare Output
1. X: The value “0” or “1” corresponding your operation.
Table 12-1 Operating Modes of Timer 0 and Timer 1
12.1 8-Bit Timer/Counter Mode
The GMS81C5108 has two 8-bit Timer/Counters, Timer 0,
Timer 1, as shown in Figure 12-3.
as an 8-bit timer/counter mode, bit CAP0 of TM0 is
cleared to “0” and bits 16BIT of TM1 should be cleared to
“0” (Table 12-1 ).
The “timer” or “counter” function is selected by mode reg-
isters TMx as shown in Figure 12-1 and Table 12-1. To use
ADDRESS : 0E0
RESET VALUE : --000000
H
-
-
CAP0
0
T0CK2
X
T0CK1
X
T0CK0
X
T0CN
X
T0ST
X
TM0
TM1
B
ADDRESS : 0E2
H
POL
X
16BIT
0
PWME
0
CAP1
0
T1CK1
X
T1CK0
X
T1CN
X
T1ST
X
RESET VALUE : 00000000
B
X : The value “0” or “1” corresponding your operation.
T0CK[2:0]
T0ST
Edge Detector
0 : Stop
1 : Clear and Start
EC0
1
CLEAR
T0 (8-bit)
MUX
÷ 2
÷ 4
TIMER 0
INTERRUPT
T0IF
÷ 8
X
0X
1X
IN
IN
T0CN
COMPARATOR
÷ 32
÷ 128
÷ 512
SX
TDR0 (8-bit)
2
[PMR.6]
PWMO
T1CK[1:0]
÷ 1024
T1ST
SCMR[1:0]
0 : Stop
1 : Clear and Start
1
÷ 1
÷ 2
÷ 8
CLEAR
F/F
MUX
T1 (8-bit)
COMPO PIN (R31)
TIMER 1
INTERRUPT
T1IF
T1CN
COMPARATOR
TDR1 (8-bit)
Figure 12-3 Block Diagram of Timer/Event Counter
48
JUNE 2001 Ver 1.0