![Infineon Technologies XC161 User Manual Download Page 48](http://html1.mh-extra.com/html/infineon-technologies/xc161/xc161_user-manual_2055438048.webp)
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
The General Purpose Timer Units
User’s Manual
14-34
V2.2, 2004-01
GPT_X1, V2.0
Timer T6 Run Control
The core timer T6 can be started or stopped by software through bit T6R (timer T6 run
bit). This bit is relevant in all operating modes of T6. Setting bit T6R will start the timer,
clearing bit T6R stops the timer.
In gated timer mode, the timer will only run if T6R = 1 and the gate is active (high or low,
as programmed).
Note: When bit T5RC in timer control register T5CON is set, bit T6R will also control
(start and stop) the Auxiliary Timer T5.
Count Direction Control
The count direction of the GPT2 timers (core timer and auxiliary timer) can be controlled
by software. The count direction can be altered by setting or clearing bit TxUD. The count
direction can be changed regardless of whether or not the timer is running.
T6R
6
rw
Timer T6 Run Bit
0
Timer T6 stops
1
Timer T6 runs
T6M
[5:3]
rw
Timer T6 Mode Control (Basic Operating Mode)
000
Timer Mode
001
Counter Mode
010
Gated Timer Mode with gate active low
011
Gated Timer Mode with gate active high
100
Reserved. Do not use this combination.
101
Reserved. Do not use this combination.
110
Reserved. Do not use this combination.
111
Reserved. Do not use this combination.
T6I
[2:0]
rw
Timer T6 Input Parameter Selection
Depends on the operating mode, see respective
sections for encoding:
for Timer Mode and Gated Timer Mode
for Counter Mode
Field
Bits
Typ
Description