
C165H
Interrupt and Trap Functions
Data Sheet
100
2001-04-19
PRELMNARY
-EXCERPT-
Note:
All interrupt request sources that are enabled and programmed to the same
priority level must always be programmed to different group priorities. Otherwise
an incorrect interrupt vector will be generated.
Upon entry into the interrupt service routine, the priority level of the source that won the
arbitration and who’s priority level is higher than the current CPU level, is copied into bit
The interrupt system of the C165H allows nesting of up to 15 interrupt service routines
of different priority levels (level 0 cannot be arbitrated).
Interrupt requests that are programmed to priority levels 15 or 14 (ie, ILVL=111X
B
) will
be serviced by the PEC, unless the COUNT field of the associated PECC register
contains zero. In this case the request will instead be serviced by normal interrupt
processing. Interrupt requests that are programmed to priority levels 13 through 1 will
always be serviced by normal interrupt processing.
Note:
Priority level 0000
B
is the default level of the CPU. Therefore a request on level 0
will never be serviced, because it can never interrupt the CPU. However, an
enabled interrupt request on level 0000
B
will terminate the C165H’s Idle mode and
reactivate the CPU.
For interrupt requests which are to be serviced by the PEC, the associated PEC channel
number is derived from the respective ILVL (LSB) and GLVL (see figure below). So
programming a source to priority level 15 (ILVL=1111
B
) selects the PEC channel group
7...4, programming a source to priority level 14 (ILVL=1110
B
) selects the PEC channel
group 3...0. The actual PEC channel number is then determined by the group priority
field GLVL.
Figure 20
Priority Levels and PEC Channels
Simultaneous requests for PEC channels are prioritized according to the PEC channel
number, where channel 0 has lowest and channel 7 has highest priority.
Note:
All sources that request PEC service must be programmed to different PEC
channels. Otherwise an incorrect PEC channel may be activated.
MCD02006
ILVL
GLVL
PEC Channel
Interrupt
Control Register