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/TM4C123GH6PM: CAN BUS CODE

Part Number: TM4C123GH6PM

Tool/software: Code Composer Studio

Hi, i have implemented the CAN bus connection using two TM4C123GXL kit and it send and receive properly,
but i really don't understand what does this hexadecimal numbers in transmitter output represent 
i'am using the simpletx and simplerx codes from TI 
regards 


  • Have you read the code? It should be fairly self-explanatory from that.

    Robert
  • From the comments in the source code:

    //! This example shows the basic setup of CAN in order to transmit messages
    //! on the CAN bus.  The CAN peripheral is configured to transmit messages
    //! with a specific CAN ID.  A message is then transmitted once per second,
    //! using a simple delay loop for timing.  The message that is sent is a 4
    //! byte message that contains an incrementing pattern.  A CAN interrupt
    //! handler is used to confirm message transmission and count the number of
    //! messages that have been sent.
    

    What might be confusing you is that the least significant byte is sent first. The first line of the first screen shot would be interpreted as 0x000001d1, or a decimal 465.

  • Indeed 0x0000,01D1 is 465 (decimal) - yet (both) of poster's screen caps tie that to, "count = 464."      Does that "count" have any significance - and should the "1 off" be cause for concern?