
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
The General Purpose Timer Units
User’s Manual
14-54
V2.2, 2004-01
GPT_X1, V2.0
14.2.8
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.
Note: Please refer to the general Interrupt Control Register description for an
explanation of the control fields.
GPT12E_T5IC
Timer 5 Intr. Ctrl. Reg.
SFR (FF66
H
/B3
H
)
Reset Value: - - 00
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
-
-
-
-
-
-
GPX T5IR T5IE
ILVL
GLVL
-
-
-
-
-
-
-
rw
rwh
rw
rw
rw
GPT12E_T6IC
Timer 6 Intr. Ctrl. Reg.
SFR (FF68
H
/B4
H
)
Reset Value: - - 00
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
-
-
-
-
-
-
GPX T6IR T6IE
ILVL
GLVL
-
-
-
-
-
-
-
rw
rwh
rw
rw
rw
GPT12E_CRIC
CAPREL Intr. Ctrl. Reg.
SFR (FF6A
H
/B5
H
)
Reset Value: - - 00
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
-
-
-
-
-
-
GPX CRIR CRIE
ILVL
GLVL
-
-
-
-
-
-
-
rw
rwh
rw
rw
rw