English
Language : 

C165_96 Datasheet, PDF (183/283 Pages) Siemens Semiconductor Group – 16-Bit CMOS Single-Chip Microcontrollers
The General Purpose Timer Units / C165/C163
to perform a reload on underflow. This means, the value in register CAPREL represents the time
between two underflows of timer T6, now measured in timer T6 increments. Since timer T6 runs 8
times faster than timer T5, it will underflow 8 times within the time between two external events.
Thus, the underflow signal of timer T6 generates 8 ’ticks’. Upon each underflow, the interrupt
request flag T6IR will be set and bit T6OTL will be toggled. The state of T6OTL may be output on
pin T6OUT. This signal has 8 times more transitions than the signal which is applied to pin CAPIN.
The underflow signal of timer T6 can furthermore be used to clock one or more of the timers of the
CAPCOM units, which gives the user the possibility to set compare events based on a finer
resolution than that of the external events.
Interrupt Control for GPT2 Timers and CAPREL
When a timer overflows from FFFFH to 0000H (when counting up), or when it underflows from 0000H
to FFFFH (when counting down), its interrupt request flag (T5IR or T6IR) in register TxIC will be set.
Whenever a transition according to the selection in bit field CI is detected at pin CAPIN, interrupt
request flag CRIR in register CRIC is set. Setting any request flag will cause an interrupt to the
respective timer or CAPREL interrupt vector (T5INT, T6INT or CRINT) or trigger a PEC service, if
the respective interrupt enable bit (T5IE or T6IE in register TxIC, CRIE in register CRIC) is set.
There is an interrupt control register for each of the two timers and for the CAPREL register.
T5IC (FF66H / B3H)
15 14 13 12 11 10 9
-
-
-
-
-
-
-
SFR
8765
T5IR T5IE
- rw rw
Reset Value: - - 00H
43210
ILVL
GLVL
rw
rw
T6IC (FF68H / B4H)
15 14 13 12 11 10 9
-
-
-
-
-
-
-
SFR
8765
T6IR T6IE
- rw rw
Reset Value: - - 00H
43210
ILVL
GLVL
rw
rw
CRIC (FF6AH / B5H)
15 14 13 12 11 10 9
-
-
-
-
-
-
-
SFR
8765
CRIR CRIE
- rw rw
Reset Value: - - 00H
43210
ILVL
GLVL
rw
rw
Note: Please refer to the general Interrupt Control Register description for an explanation of the
control fields.
Semiconductor Group
9-30