
C165UTAH
Interrupt and Trap Functions
Data Sheet
106
2001-02-23
Note:
1. The X-Bus interrupts xb(0), xb(1) and xb(2), known from other C16x device’s, are
connected to the main interrupt node of the respective X-Bus peripheral: UTXRINT
(xb(0) and irq(22)), EPECINT (xb(1) and irq(40)) and IOMIOINT (xb(2) and irq(42)).
2. Each entry of the interrupt vector table provides space for two word instructions or one
doubleword instruction. The respective vector location results from multiplying the trap
number by 4 (4 bytes per entry).
3. One interrupt control register is provided for each interrupt node. All IC registers of the
C165UTAH can be found in the SFR list.
Table 24
lists the vector locations for hardware traps and the corresponding status flags
in register TFR. It also lists the priorities of trap service for cases, where more than one
trap condition might be detected within the same instruction. After any reset (hardware
reset, software reset instruction SRST, or reset by watchdog timer overflow) program
execution starts at the reset vector at location 00’0000
H
. Reset conditions have priority
over every other system activity and therefore have the highest priority (trap priority III).
Software traps may be initiated to any vector location between 00’0000
H
and 00’01FC
H
.
A service routine entered via a software TRAP instruction is always executed on the
current CPU priority level which is indicated in bit field ILVL in register PSW. This means
that routines entered via the software TRAP instruction can be interrupted by all
hardware traps or higher level interrupt requests.
firq(6)
Fast ext. Interrupt
EX6INT
EX6IE
00’0078
H
00’007C
H
1F
H
/ 31
D
00’0100
H
00’0104
H
00’0108
H
00’010C
H
43
H
/ 67
D
1E
H
/ 30
D
FF94
firq(7)
Fast ext. Interrupt
EX7INT
EX7IE
FF96
xb(0)
UDC TXWR
UTXRINT
UTXRIE
40
H
/ 64
D
41
H
/ 65
D
42
H
/ 66
D
F186
xb(1)
EPEC
EPECINT
EPECIE
F18E
xb(2)
IOM-2 IO
IOMIOINT
IOMIOIE
F196
xb(3)
Internal PLL Lock /
RTC
XP3INT
XP3IE
F19E
CLISN Interrupt
CLISNINT
CLISNIE
00’0130
H
4C
H
/ 76
D
FFA8
Nr.
Source of
Interrupt or PEC
Service Request
Interrupt
Name
Enable
Flag
Vector
Location
Trap
Number
SFR
hex
Addr