
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
Capture/Compare Units
User’s Manual
17-5
V2.2, 2004-01
CC12_X1, V2.1
The timer run flags TxR allow the starting and stopping of the timers. The following
description of the timer modes and operation always applies to the enabled state of the
timers, i.e. the respective run flag is assumed to be set.
CC1_T01CON
Timer 0/1 Control Register
SFR (FF50
H
/A8
H
)
Reset Value: 0000
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
T1R
-
T1M
T1I
-
T0R
-
T0M
T0I
-
rw
-
rw
rw
-
rw
-
rw
rw
CC2_T78CON
Timer 7/8 Control Register
SFR (FF20
H
/90
H
)
Reset Value: 0000
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
T8R
-
T8M
T8I
-
T7R
-
T7M
T7I
-
rw
-
rw
rw
-
rw
-
rw
rw
Field
Bits
Type
Description
TxR
14, 6
rw
Timer/Counter Tx Run Control
0
Timer/Counter Tx is disabled
1
Timer/Counter Tx is enabled
TxM
11, 3
rw
Timer/Counter Tx Mode Selection
0
Timer Mode
1
Counter Mode
TxI
[10:8],
[2:0]
rw
Timer/Counter Tx Input Selection
Timer Mode (TxM = 0):
Input frequency
f
Tx
=
f
CC
/2
(<TxI>+3)
or
f
CC
/2
(<TxI>)
,
depending on (non-)staggered mode, see
Counter Mode (TxM = 1):
000
Overflow/Underflow of GPT Timer T6
001
Positive (rising) edge on pin TxIN
010
Negative (falling) edge on pin TxIN
011
Any edge (rising and falling) on pin TxIN
1XX Reserved. Do not use this combination!
Note: For timers T1 and T8 the only option in counter
mode is 000
B
. T1 and T8 stop in other cases.