MPC555
/
MPC556
CAN 2.0B CONTROLLER MODULE
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
16-19
16.6 Interrupts
The TouCAN can generate one interrupt level on the IMB. This level is programmed
into the priority level bits in the interrupt configuration register (CANICR). This value
determines which interrupt signal is driven onto the bus when an interrupt is requested.
Each one of the 16 message buffers can be an interrupt source, if its corresponding
IMASK bit is set. There is no distinction between transmit and receive interrupts for a
particular buffer. Each of the buffers is assigned a bit in the IFLAG register. An IFLAG
bit is set when the corresponding buffer completes a successful transmission/recep-
tion. An IFLAG bit is cleared when the CPU reads IFLAG while the associated bit is
set, and then writes it back as zero (and no new event of the same type occurs be-
tween the read and the write actions).
The other three interrupt sources (bus off, error and wake up) act in the same way, and
have flag bits located in the error and status register (ESTAT). The bus off and error
interrupt mask bits (BOFFMSK and ERRMSK) are located in CANCTRL0, and the
wake up interrupt mask bit (WAKEMSK) is located in the module configuration regis-
ter. Refer to
for more information on these registers.
The TouCAN module is capable of generating one of the 32 possible interrupt levels
on the IMB3. The 32 interrupt levels are time multiplexed on the IMB3 IRQ[0:7] lines.
All interrupt sources place their asserted level on a time multiplexed bus during four
different time slots, with eight levels communicated per slot. The ILBS[0:1] signals in-
dicate which group of eight are being driven on the interrupt request lines.
The level that the TouCAN will drive onto IRQ[7:0] is programmed in the three interrupt
request level (IRL) bits located in the interrupt configuration register. The two ILBS bits
in the ICR register determine on which slot the TouCAN should drive its interrupt sig-
nal. Under the control of ILBS, each interrupt request level is driven during the time
multiplexed bus during one of four different time slots, with eight levels communicated
per time slot. No hardware priority is assigned to interrupts. Furthermore, if more than
one source on a module requests an interrupt at the same level, the system software
must assign a priority to each source requesting at that level.
displays the
interrupt levels on IRQ with ILBS.
Table 16-9 Interrupt Levels
ILBS[0:1]
Levels
00
0:7
01
8:15
10
16:23
11
24:31
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..