DEAR TI,
I am using TMS570LS3137 HDK board,code composer 6,Halcogen 4.02.I did not understand why CAN has 64 message .What is the use of 64 differnet message with ID and Mask.pls guide
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
DEAR TI,
I am using TMS570LS3137 HDK board,code composer 6,Halcogen 4.02.I did not understand why CAN has 64 message .What is the use of 64 differnet message with ID and Mask.pls guide
Hi,
In simple terms, the CAN implements a mailbox system. You can write a message into the mailbox to transmit(and set the appropriate flags), and the CAN controller will read it and send the message over the bus. There are 64 mailboxes(aka. message objects) available on the TMS570LS3137 with unique IDs(and priorities). One of the advantages of having 64 mailboxes is that it reduces the waiting time. If only one mailbox was available, different tasks would be competing to get it. Receiving CAN messages is also done via mailboxes. The CAN controller loads the Rx messages into the assigned mailbox which can then be read by the application. Also, note that the mailboxes cannot be accessed directly; they can be accessed only via the CAN IF(interface) registers. You can find more information about this in the TRM.
It is fine to use just one mailbox. This will probably be simpler and won’t affect performance too much(unless you’re sending CAN messages too frequently). You can try out some of the examples given in HALCoGen.
Regards,
Vineeth