ST10R272L - GENERAL PURPOSE TIMER UNITS
202/320
functions which are present in all 3 timers of block GPT1 are controlled in the same bit
positions and in the same manner in each of the specific control registers.
T2CON (FF40h / A0h)
SFR
Reset Value: 0000h
T4CON (FF44h / A2h)
SFR
Reset Value: 0000h
Bit
Function
TxI
Timer x Input Selection
Depends on the Operating Mode.
TxM
Timer x Mode Control (Basic Operating Mode)
0 0 0:
Timer Mode
0 0 1:
Counter Mode
0 1 0:
Gated Timer with Gate active low
0 1 1:
Gated Timer with Gate active high
1 0 0:
Reload Mode
1 0 1:
Capture Mode
1 1 0:
Incremental interface mode
1 1 X:
Reserved. Do not use this combination
TxR
Timer x Run Bit
TxR = ‘0’:
Timer / Counter x stops
TxR = ‘1’:
Timer / Counter x runs
TxUD
Timer x Up / Down Control
1
5
4
3
2
1
0
11
10
9
8
7
6
15
14
13
12
rw
rw
-
-
-
rw
rw
rw
-
-
-
-
T2R
T2UD
-
-
-
-
-
T2
UDE
-
-
T2I
T2M
5
4
3
2
1
0
11
10
9
8
7
6
15
14
13
12
rw
rw
-
-
-
rw
rw
rw
-
-
-
-
T4R
T4UD
-
-
-
-
-
T4
UDE
-
-
T4I
T4M