| Target Support Package™ TC2 | ![]() |
c280xdspchiplib and c2833xdspchiplib in Target Support Package™ TC2 software
The C280x/C2833x enhanced Control Area Network (eCAN) Transmit block generates source code for transmitting eCAN messages through an eCAN mailbox. The eCAN modules on the DSP chip provide serial communication capability and have 32 mailboxes configurable for receive or transmit. The C280x/C2833x supports eCAN data frames in standard or extended format.
Note Fixed-point inputs are not supported for this block. |
The length of the vector for each transmitted mailbox message is 8 bytes. Input data are always right-aligned in the message data buffer. Only uint16 (vector length = 4 elements) or uint32 (vector length = 8 elements) data are accepted. The following examples show how the different types of input data are aligned in the data buffer:
For input of type uint32,
inputdata [0] = 0x12345678
the data buffer is:
data buffer[0] = 0x78 data buffer[1] = 0x56 data buffer[2] = 0x34 data buffer[3] = 0x12 data buffer[4] = 0x00 data buffer[5] = 0x00 data buffer[6] = 0x00 data buffer[7] = 0x00
For input of type uint16,
inputdata [0] = 0x1234
the data buffer is:
data buffer[0] = 0x34 data buffer[1] = 0x12 data buffer[2] = 0x00 data buffer[3] = 0x00 data buffer[4] = 0x00 data buffer[5] = 0x00 data buffer[6] = 0x00 data buffer[7] = 0x00
For input of type uint16[2], which is a two-element vector,
inputdata [0] = 0x1234 inputdata [1] = 0x5678
the data buffer is:
data buffer[0] = 0x34 data buffer[1] = 0x12 data buffer[2] = 0x78 data buffer[3] = 0x56 data buffer[4] = 0x00 data buffer[5] = 0x00 data buffer[6] = 0x00 data buffer[7] = 0x00

Determines which of the two eCAN modules is being configured by this instance of the C280x/C2833x eCAN Transmit block. Options are eCAN_A and eCAN_B.
Unique number from 0 to 15 for standard or from 0 to 31 for enhanced CAN mode. It refers to a mailbox area in RAM. In standard mode, the mailbox number determines priority.
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 coded into a message that is sent to the CAN bus.
Select Standard (11-bit identifier) or Extended (29-bit identifier).
If selected, the CAN block code waits indefinitely for a transmit (XMT) acknowledge. If not selected, the CAN block code does not wait for a transmit (XMT) acknowledge, which is useful when the hardware might fail to acknowledge transmissions.
If selected, an asynchronous interrupt will be posted when data is transmitted.
Note For information about setting the timing parameters of the CAN module, see Configuring Timing Parameters for CAN Blocks. |
For detailed information on the eCAN module, see TMS320x281x, 280x Enhanced Controller Area Network (eCAN) Reference Guide (Rev. D), Literature Number SPRU074D, available at the Texas Instruments™ website.
![]() | C280x/C2833x eCAN Receive | C280x/C2833x eCAP | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |