English
Language : 

GMS81C5108 Datasheet, PDF (49/102 Pages) Hynix Semiconductor – HYNIX SEMICONDUCTOR INC. 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C5108
TM0 (Timer0 Mode Register)
Bit :
7
-
R/W
6
5
-
CAP0
R/W
4
T0CK2
R/W
3
T0CK1
R/W
2
T0CK0
R/W
1
T0CN
R/W
0
T0ST
ADDRESS: 0E0H
INITIAL VALUE:--000000B
Reserved
CAP0 (Capture Mode Selection Bit)
0: Capture Disable
1: Capture Enable
T0CN (Timer 0 Continue Start)
0: Stop Counting
1: Start Counting
T0ST (Timer 0 Start Control)
0: stop counting
1: clear the counter and start count again
T0CK[2:0] (Timer 0 Input Clock Selection)
000: fMAIN÷2 or fSUB÷2
001: fMAIN÷22 or fSUB÷22
010: fMAIN÷23 or fSUB÷23
011: fMAIN÷25 or fSUB÷25
100: fMAIN÷27 or fSUB÷27
101: fMAIN÷29 or fSUB÷29
110: fMAIN÷210 or fSUB÷210
fMAIN: main-clock frequency
fSUB: sub-clock frequency
111: External Event clock (EC0)
TM1 (Timer1 Mode Register)
R/W R/W R/W R/W R/W R/W R/W R/W
Bit :
7
6
5
4
3
2
1
0
POL
16BIT PWME CAP1 T1CK1 T1CK0 T1CN
T1ST
ADDRESS: 0E2H
INITIAL VALUE:00000000B
POL (PWM Output Polarity Selection)
0: Duty Active Low
1: Duty Active High
16BIT (16 Bit Mode Selection)
0: 8-Bit Mode
1: 16-Bit Mode
PWME (PWM Enable Bit)
0: PWM Disable
1: PWM Enable
CAP1 (Capture Mode Selection Bit)
0: Capture Disable
1: Capture Enable
T1CK[1:0] (Timer 1 Input Clock Selection)
00: fMAIN
or fSUB
01: fMAIN÷2 or fSUB÷2
10: fMAIN÷23 or fSUB÷23
11: Timer 0 Clock
T1CN (Timer 1 Continue Start)
0: Stop Counting
1: Start Counting
T1ST (Timer 1 Start Control)
0: stop counting
1: clear the counter and start count again
**The counter will be cleared and restarted only when the TxST bit cleared and set again.
If TxST bit set again when TxST bit is set, the counter can’t be cleared but only start again.
Figure 12-1 Timer0,1 Registers
46
JUNE 2001 Ver 1.0