
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
The General Purpose Timer Units
User’s Manual
14-33
V2.2, 2004-01
GPT_X1, V2.0
14.2.1
GPT2 Core Timer T6 Control
The current contents of the core timer T6 are reflected by its count register T6. This
register can also be written to by the CPU, for example, to set the initial start value.
The core timer T6 is configured and controlled via its bitaddressable control register
T6CON.
GPT12E_T6CON
Timer 6 Control Register
SFR (FF48
H
/A4
H
)
Reset Value: 0000
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
T6
SR
T6
CLR
-
BPS2
T6
OTL
T6
OE
-
T6
UD
T6R
T6M
T6I
rw
rw
-
rw
rwh
rw
-
rw
rw
rw
rw
Field
Bits
Typ
Description
T6SR
15
rw
Timer 6 Reload Mode Enable
0
Reload from register CAPREL Disabled
1
Reload from register CAPREL Enabled
T6CLR
14
rw
Timer T6 Clear Enable Bit
0
Timer T6 is not cleared on a capture event
1
Timer T6 is cleared on a capture event
BPS2
[12:11] rw
GPT2 Block Prescaler Control
Selects the basic clock for block GPT2
(see also
00
f
GPT
/4
01
f
GPT
/2
10
f
GPT
/16
11
f
GPT
/8
T6OTL
10
rwh
Timer T6 Overflow Toggle Latch
Toggles on each overflow/underflow of T6. Can be
set or reset by software (see separate description)
T6OE
9
rw
Overflow/Underflow Output Enable
0
Alternate Output Function Disabled
1
State of T6 toggle latch is output on pin T6OUT
T6UD
7
rw
Timer T6 Up/Down Control
0
Timer T6 counts up
1
Timer T6 counts down