C161U
Interrupt and Trap Functions
Preliminary Data Sheet
110
02.2000
PRELIMINARY
PRE
LI
M
INAR
Y
- E
XC
ER
PT
-
Note: The X-Bus interrupts xb(0) and xb(1), known from C16x device’s, are connected
to the main interrupt node of the respective X-Bus peripheral: UTXRINT (xb(0) and
irq(22)) and EPECINT (xb(1) and irq(40).
Note: 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).
Note: One interrupt control register is provided for each interrupt node. All IC registers
of the C161U can be found in the SFR list.
Table 22 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’0000H. Reset conditions have priority
over every other system activity and therefore have the highest priority (trap priority III).
irq(28) UDC TX Done3
UTD3INT
UTD3IE
00’00C0
H
30
H / 48D
F160
irq(29) UDC TX Done2
UTD2INT
UTD2IE
00’005C
H
17
H / 23D
FF86
irq(30) UDC TX Done1
UTD1INT
UTD1IE
00’0058
H
16
H / 22D
FF84
irq(31) UDC TX Done0
UTD0INT
UTD0IE
00’0054
H
15
H / 21D
FF82
irq(32) UDC RX Done7
URD7INT
URD7IE
00’0050
H
14
H / 20D
FF80
irq(33) UDC RX Done6
URD6INT
URD6IE
00’004C
H
13
H / 19D
FF7E
irq(34) UDC RX Done5
URD5INT
URD5IE
00’0048
H
12
H / 18D
FF7C
irq(35) UDC RX Done4
URD4INT
URD4IE
00’0044
H
11
H / 17D
FF7A
irq(36) UDC RX Done3
URD3INT
URD3IE
00’0040
H
10
H / 16D
FF78
irq(37) UDC RX Done2
URD2INT
URD2IE
00’0080
H
20
H / 32D
FF9C
irq(38) UDC RX Done1
URD1INT
URD1IE
00’0084
H
21
H / 33D
FF9E
irq(39) UDC RX Done0
URD0INT
URD0IE
00’00F4
H
3D
H / 61D
F17A
irq(40) EPEC
EPECINT
EPECIE
00’00F8
H
3E
H / 62D
F17C
irq(41) reserved
00’00A0
H
28
H / 40D
FF98
firq(0) Fast ext. Interrupt
EX0INT
EX0IE
00’0060
H
18
H / 24D
FF88
firq(1) Fast ext. Interrupt
EX1INT
EX1IE
00’0064
H
19
H / 25D
FF8A
xb(0) UDC TXWR
UTXRINT
UTXRIE
00’0100
H
40
H / 64D
F186
xb(1) EPEC
EPECINT
EPECIE
00’0104
H
41
H / 65D
F18E
xb(3) internal PLL Lock / RTC XP3INT
XP3IE
00’010C
H
43
H / 67D
F19E
Nr.
Source of Interrupt or
PEC Service Request
Interrupt
Name
Enable
Flag
Vector
Location
Trap
Number
SFR hex
Address