ADSP-BF50x Blackfin Processor Hardware Reference
17-23
CAN Module
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
.
Global CAN Status Interrupt
The global CAN status interrupt logic is implemented with three regis-
ters—the global CAN interrupt mask register (
CAN_GIM
), where each
interrupt source can be enabled or disabled separately; the global CAN
interrupt status register (
CAN_GIS
); and the global CAN interrupt flag reg-
ister (
CAN_GIF
). The interrupt mask bits only affect the content of the
global CAN interrupt flag register (
CAN_GIF
). If the mask bit is not set, the
corresponding flag bit is not set when the event occurs. The interrupt
Summary of Contents for EZ-KIT Lite ADSP-BF506F
Page 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Page 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...