User`s guide

Table Of Contents
C28x eCAN Receive
3-24
3C28x eCAN Receive
Purpose Configure an eCAN mailbox to receive messages from the eCAN pins and
output received messages at specified sample intervals
Library c2800dspchiplib in Embedded Target for TI C2000 DSP
Description The C28x enhanced Control Area Network (eCAN) Receive block generates
source code for receiving eCAN messages through an eCAN mailbox. The eCAN
module on the DSP chip provides serial communication capability and has 32
mailboxes configurable for receive or transmit.The C28x supports eCAN data
frames in standard or extended format.
The C28x eCAN Receive block has up to two and, optionally, three output ports.
First output port is the function call port, and a function call subsystem
should be connected to this port. When a new message is received, this
subsystem is executed.
Second output port is the message data port. The received data is output in
the form of a vector of elements of the selected data type. The length of the
vector is always 8 bytes.
Third output port is optional and appears only if
Output message length is
selected.
Detailed information on the eCAN module is in the TMS320F28x DSP
Enhanced Control Area Network (eCAN) Reference Guide, Literature Number
SPRU074A, available at the Texas Instruments Web site.
Mailbox number — Unique number between 0 and 15 for standard or between
0 and 31 for enhanced CAN mode. It refers to a mailbox area in RAM. In
standard mode, the mailbox number determines priority.
Message identifier — Identifier of length 11 bits for standard frame size or
length 29 bits for extended frame size in decimal, binary, or hex. If in binary or
hex, use
bin2dec(' ') or hex2dec(' '), respectively, to convert the entry. The
message identifier is associated with a receive mailbox. Only messages that
match the mailbox message identifier are accepted into it.
Message typeSelect Standard (11-bit identifier) or Extended (29-bit
identifier).
Mailbox: 0
C28x eCAN
Receive
f(
)
Ms
g
Ms
g
Ms
g
C28x eCAN Receive