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.

CCS/TMS320F28335: using CAN communication may i able to send multiple single values

Part Number: TMS320F28335

Tool/software: Code Composer Studio

HI, using Can communication , I want send multiple signal values like input current , input voltage etc in real time .which command should i use? 

  • Hello,
    it depends on how many bytes are needed to send one of the signals. One CAN frame contains 8 data bytes.
    A CAN frame is identified by its CAN ID. The 8 data bytes can be used freely:
    This may be some bitwise information (such as flags which indicate something...), or 8 different values which need one byte each,
    or two float values which need 4 bytes per value etc. etc. ... ...
    So, you have to determine which ID should be used; and how to distribute the information over the 8 bytes.
    If you use just one CAN channel, any information that takes more than 8 bytes must be split **over several successive** CAN frames...

    Hope it helps...
    Goetz
  • There is no “command”. As Goetz indicates, you need to package the data that you want to transmit into the data-bytes portion of the CAN frame.