English
Language : 

C161V_96 Datasheet, PDF (147/260 Pages) Siemens Semiconductor Group – 16-Bit CMOS Single-Chip Microcontrollers
10Jul97@15:19h
The General Purpose Timer Units / C161
GPT1 Core Timer T3
The core timer T3 is configured and controlled via its bitaddressable control register T3CON.
T3CON (FF42H / A1H)
SFR
Reset Value: 0000H
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
T3
T3
-
-
-
-
- OTL T3OE UDE T3UD T3R
T3M
T3I
-
-
-
-
- rw rw rw rw rw
rw
rw
Bit
T3I
T3M
T3R
T3UD
T3UDE
T3OE
T3OTL
Function
Timer 3 Input Selection
Depends on the operating mode, see respective sections.
Timer 3 Mode Control (Basic Operating Mode)
000:
001:
010:
011:
Timer Mode
Counter Mode 1)
Gated Timer with Gate active low 1)
Gated Timer with Gate active high 1)
1XX:
Reserved. Do not use this combination.
Timer 3 Run Bit
T3R = ‘0’: Timer / Counter 3 stops
T3R = ‘1’: Timer / Counter 3 runs
Timer 3 Up / Down Control 2)
Timer 3 External Up/Down Enable 2)
Alternate Output Function Enable 1)
T3OE = ‘0’: Alternate Output Function Disabled
T3OE = ‘1’: Alternate Output Function Enabled
Timer 3 Output Toggle Latch
Toggles on each overflow / underflow of T3. Can be set or reset by software.
1) This function cannot be selected on the C161V.
2) For the effects of bits T3UD and T3UDE refer to the direction table below.
Timer 3 Run Bit
The timer can be started or stopped by software through bit T3R (Timer T3 Run Bit). If T3R=‘0’, the
timer stops. Setting T3R to ‘1’ will start the timer.
In gated timer mode, the timer will only run if T3R=‘1’ and the gate is active (high or low, as
programmed).
Semiconductor Group
9-3