CAN Interrupts
The CAN module provides three independent interrupts: two mailbox
interrupts (mailbox receive interrupt
rupt
) and the global interrupt
MBTIRQ
interrupts can also be read back in the interrupt status registers.
Mailbox Interrupts
Each of the 32 mailboxes in the CAN module may generate a receive or
transmit interrupt, depending on the mailbox configuration. To enable a
mailbox to generate an interrupt, set the corresponding
.
CAN_MBIMx
If a mailbox is configured as a receive mailbox, the corresponding receive
interrupt flag is set (
stored in mailbox n (
handling feature is used, the receive interrupt flag is set after the requested
data frame is stored in the mailbox. If any
, the
CAN_MBRIFx
clear the
MBRIRQ
cleared by software by writing a 1 to those set bit locations in
If a mailbox is configured as a transmit mailbox, the corresponding trans-
mit interrupt flag is set (
mailbox n is sent correctly (
state even after the corresponding mailbox n is disabled (
automatic remote frame handling feature is used, the transmit interrupt
flag is set after the requested data frame is sent from the mailbox. If any
bits are set in
MBTIFn
. In order to clear the
CAN_INTR
bits must be cleared by software by writing a 1 to those set bit loca-
MBTIFn
tions in
CAN_MBTIFx
ADSP-BF537 Blackfin Processor Hardware Reference
=
in
MBRIFn
1
CAN_MBRIFx
=
in
RMPn
1
CAN_RMPx
interrupt output is raised in
MBRIRQ
interrupt request, all of the set
=
MBTIFn
1
=
TAn
1
, the
CAN_MBTIFx
MBTIRQ
.
and mailbox transmit inter-
MBRIRQ
. The values of these three
GIRQ
) after a received message is
). If the automatic remote frame
bits are set in
MBRIFn
CAN_INTR
MBRIFn
in
) after the message in
CAN_MBTIFx
in
). The
CAN_TAx
TAn
interrupt output is raised in
MBTIRQ
interrupt request, all of the set
CAN Module
bit in
MBIMn
. In order to
bits must be
CAN_MBRIFx
bits maintain
= 0). If the
MCn
9-23
.
Need help?
Do you have a question about the Blackfin ADSP-BF537 and is the answer not in the manual?