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.

TMS570LS20216 - implement a echo-mode

Other Parts Discussed in Thread: TMS570LS20216

I'm programming a own CAN-Driver on a TMS570LS20216 microcontroller and would like to implement a echo-mode on it. The Device should return a whole message if it is transmitted by the CAN-module and the TxRqst-Bit is reset. But I have to know the time when this happens so I can get the order between received messages and echoed messares right. Is there a possibility to put a timestamp on the message-objects in the message-RAM or get a timestamp from somewhere else to build up a software-RAM where it is possible to store the timestamps for the messages? Or is there a possibility to do such an echo-mode by the CAN-Core or the message-handler itself? Then it should put the transmitted messages simply into a receive-object in the message-RAM.

  • Hello Julius,

    there is no possibility to add a timestamp by HW to the received messages. Eventually you can implement this in SW by using the RTI module. The CPU could get a timestamp for each received CAN msg from the RTI and store it in the RAM of the device. You would need to configure the CAN module to issue an interrupt for every received msg and log the timestamp in during ISR.

    Best regards

    Andreas

     

    If a post answers your question, please mark it with the "verify answer" button.