ADSP-BF537 Blackfin Processor Hardware Reference
9-23
CAN Module
CAN Interrupts
The CAN module provides three independent interrupts: two mailbox
interrupts (mailbox receive interrupt
MBRIRQ
and mailbox transmit inter-
rupt
MBTIRQ
) and the global interrupt
GIRQ
. The values of these three
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
MBIMn
bit in
CAN_MBIMx
.
If a mailbox is configured as a receive mailbox, the corresponding receive
interrupt flag is set (
MBRIFn
=
1
in
CAN_MBRIFx
) after a received message is
stored in mailbox n (
RMPn
=
1
in
CAN_RMPx
). If the automatic remote frame
handling feature is used, the receive interrupt flag is set after the requested
data frame is stored in the mailbox. If any
MBRIFn
bits are set in
CAN_MBRIFx
, the
MBRIRQ
interrupt output is raised in
CAN_INTR
. In order to
clear the
MBRIRQ
interrupt request, all of the set
MBRIFn
bits must be
cleared by software by writing a 1 to those set bit locations in
CAN_MBRIFx
.
If a mailbox is configured as a transmit mailbox, the corresponding trans-
mit interrupt flag is set (
MBTIFn
=
1
in
CAN_MBTIFx
) after the message in
mailbox n is sent correctly (
TAn
=
1
in
CAN_TAx
). The
TAn
bits maintain
state even after the corresponding mailbox n is disabled (
MCn
= 0). If the
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
MBTIFn
bits are set in
CAN_MBTIFx
, the
MBTIRQ
interrupt output is raised in
CAN_INTR
. In order to clear the
MBTIRQ
interrupt request, all of the set
MBTIFn
bits must be cleared by software by writing a 1 to those set bit loca-
tions in
CAN_MBTIFx
.
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...