ST10R272L - GENERAL PURPOSE TIMER UNITS
225/320
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.
11.2.3 Interrupt control for GPT2 timers and CAPREL
When a timer overflows from FFFF
H
to 0000
H
(when counting up), or when it underflows
from 0000
H
to FFFF
H
(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)
SFR
Reset Value: - - 00h
T6IC (FF68h / B4h)
SFR
Reset Value: - - 00h
CRIC (FF6Ah / B5h)
SFR
Reset Value: - - 00h
Note
Refer to “Interrupt control registers” on page 86 for an explanation of the control
fields.
5
4
3
2
1
0
11
10
9
8
7
6
15
14
13
12
rw
rw
-
-
-
-
rw
rw
-
-
-
-
T5IE
T5IR
GLVL
ILVL
5
4
3
2
1
0
11
10
9
8
7
6
15
14
13
12
rw
rw
-
-
-
-
rw
rw
-
-
-
-
T6IE
T6IR
GLVL
ILVL
5
4
3
2
1
0
11
10
9
8
7
6
15
14
13
12
rw
rw
-
-
-
-
rw
rw
-
-
-
-
CRIE
CRIR
GLVL
ILVL