TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS570LS1114: CAN 多字节数据如何发送

Part Number:TMS570LS1114

For example, I have 100 bytes of data to send,

1、If several transmit messages should be assigned to one message object, the whole message object has
to be configured before the transmission of this message is requested.

#define D_COUNT  8 

uint8 tx_data[D_COUNT][8] = {0};

for(cnt=0;cnt<D_COUNT;cnt++)
{ canTransmit(canREG1, canMESSAGE_BOX1, tx_ptr); 
tx_ptr +=8;
}

2、The transmission of multiple message objects may be requested at the same time. They are subsequently
transmitted, according to their internal priority.

#define D_COUNT  8 

uint8 tx_data[D_COUNT][8] = {0};

for(canMESSAGE_BOX=1;canMESSAGE_BOX<D_COUNT;canMESSAGE_BOX++)
{
canTransmit(canREG1, canMESSAGE_BOX, tx_ptr); 
tx_ptr +=8;
}

The above are two examples I gave,,I don't understand how to send multi-byte data,Is there any other way?Is it possible to use FIFO to send

Cherry Zhou:

Hi, we have received your question and feedback to engineer, please expect the response. Thanks.

,

Cherry Zhou:

Hi, you can use either way. But I like to use the #1: use one mailbox to send the data.

,

haikang wang:

If I want to use multiple messageboxes to send data, what should I do?use the #2?

赞(0)
未经允许不得转载:TI中文支持网 » TMS570LS1114: CAN 多字节数据如何发送
分享到: 更多 (0)