English
Language : 

XC164-16 Datasheet, PDF (28/417 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller with C166SV2 Core Volume 2 (of 2): Peripheral Units
XC164-16 Derivatives
Peripheral Units (Vol. 2 of 2)
The General Purpose Timer Units
14.1.3 GPT1 Auxiliary Timers T2/T4 Control
Auxiliary timers T2 and T4 have exactly the same functionality. They can be configured
for timer mode, gated timer mode, counter mode, or incremental interface mode with the
same options for the timer frequencies and the count signal as the core timer T3. In
addition to these 4 counting modes, the auxiliary timers can be concatenated with the
core timer, or they may be used as reload or capture registers in conjunction with the
core timer. The start/stop function of the auxiliary timers can be remotely controlled by
the T3 run control bit. Several timers may thus be controlled synchronously.
The current contents of an auxiliary timer are reflected by its count register T2 or T4,
respectively. These registers can also be written to by the CPU, for example, to set the
initial start value.
The individual configurations for timers T2 and T4 are determined by their bitaddressable
control registers T2CON and T4CON, which are organized identically. Note that
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.
Note: The auxiliary timers have no output toggle latch and no alternate output function.
GPT12E_T2CON
Timer 2 Control Register
SFR (FF40H/A0H)
Reset Value: 0000H
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
T2 T2 T2 T2
R CH ED IR -
DIR DIR GE DIS
-
T2
RC
T2
UDE
T2
UD
T2R
T2M
T2I
rh rwh rwh rw - - rw rw rw rw
rw
rw
GPT12E_T4CON
Timer 4 Control Register
SFR (FF44H/A2H)
Reset Value: 0000H
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
T4 T4 T4 T4
R CH ED IR -
DIR DIR GE DIS
-
T4
RC
T4
UDE
T4
UD
T4R
T4M
T4I
rh rwh rwh rw - - rw rw rw rw
rw
rw
Field
TxRDIR
Bits Type Description
15
rh
Timer Tx Rotation Direction
0 Timer x counts up
1 Timer x counts down
User’s Manual
GPT_X41, V2.0
14-15
V2.1, 2004-03