
Controller Area Network
LH75400/01/10/11 (Preliminary) User’s Guide
22-12
6/17/03
22.3.2.4 Interrupt Register
IR is the Interrupt Register. The IR Register allows the source of an interrupt to be identi-
fied. When one or more bits of this register are set, the CAN Controller sends an interrupt
to the CPU.
The IR Register appears to the CPU as Read Only memory. After the register has been
read by the CPU, all bits except Receive Interrupt are reset.
Table 22-8. IR Register
BIT
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
FIELD
///
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
FIELD
///
BEI
ALI
EPI
WUI
DOI
EI
TI
RI
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
RW
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
ADDR
0xFF 0x0C
Table 22-9. IR Register Definitions
BITS
NAME
DESCRIPTION
31:8
///
Reserved
Writing to these bits has no effect. Reading returns 0.
7
BEI
Bus Interrupt Error
1 = CAN Controller detects an error on the CAN bus, provided bit [7] of the Interrupt Enable
Register is set (see Section 22.3.2.5).
6
ALI
Arbitration Lost Interrupt
1 = CAN Controller loses arbitration and becomes a receiver, provided bit [6] of the Interrupt
Enable Register is set (see Section 22.3.2.5).
5
EPI
Error Passive Interrupt
1 = CAN Controller re-enters Error Active state after being in Error Passive state or when at
least one error counter exceeds the protocol-defined level of 127, provided bit [5] of the
Interrupt Enable Register is set (see Section 22.3.2.5).
4
WUI
Wake-Up Interrupt
1 = Bus activity is detected, provided bit [4] of the Interrupt Enable Register is set (see
A wake-up interrupt is also generated if the CPU tries to set bit [4] of the MOD Register while
the CAN Controller is involved in bus activities or a CAN interrupt is pending.
3
DOI
Data Overrun Interrupt
Set on a 0-to-1 transition of bit [1] of the CAN Status Register,
provided bit [3] of the Interrupt Enable Register is set (see Section 22.3.2.5).
2
EI
Error Warning Interrupt
Set on every change (set or clear) of either bit [7] or bit [6] of the
Status Register, provided bit [2] of the Interrupt Enable Register is set (see
Section 22.3.2.5).
1
TI
Transmit Interrupt
Set when bit [2] of the Status Register changes from 0 to 1 (released), pro-
vided bit [1] of the Interrupt Enable Register is set (see Section 22.3.2.3 and Section 22.3.2.5).
0
RI
Receive Interrupt
Set when the receive buffer contains one or more messages, provided
bit [0] of the Interrupt Enable Register is set (see Section 22.3.2.5). Cleared when the Release
Receive Buffer command (bit [2] of the Command Register, described in Section 22.3.2.2) is
issued, provided there is no further data to read in the receive buffer. The RI bit, when enabled,
mirrors bit [0] of the Status Register (described in Section 22.3.2.3). Consequently, it is not
cleared automatically when the Interrupt Register is read.