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.

TMS320F280039C: NEED TO ESTABLISH CAN PROTOCOL IN TMS320F280039C MICROCONTROLLER

Part Number: TMS320F280039C

Tool/software:

I have used  example 5 to establish can communication but its not working can anyone please help me out(im not geting any signal)

  • Varun,

    Can you describe what you have done so far on example 5?  Just wanted to understand which part does not work for you.  What kind of hardware are you using?

    Joseph

  • i just used example 5 in f280039c lanchpad and configured pin as per the given data(gpio 5 as rx,gpio 4 as tx)but im not getting any signal in DSO

  • CAN will not transmit if it detects that there is a dominant bit that is holding the bus low.  Best way to observe the CAN transactions is to hook up a CAN analyzer (PeakCAN...etc) or another launchpad.  Are you able to connect to any one of these?

    Thanks,

    Joseph

  • I HAVE AN WORKING ANOTHER BRAND CONTROLLER ITS HAS PROVEN CODE IN IT AND WE ARE USING IT IN OUR PRODUCTS CAN I USE THAT CAN NETWORK  TO GET OUTPUT

    THAKS 

    VARUN 

  • Varun,

    Please describe exactly what you are doing in the test case.  Example 5 can be used either as transmit or receive.  How did you configure it?  If used as transmit, you may not see any activity on the CANTX pin since node might be seeing the CANBUS to be low.  If used as receive,  you will only see activities in CANRX pin if a node is transmitting valid frames in the CANBUS after the transceiver.  This is the reason that I was asking if there you have the option for connecting CAN analyzer or any other CAN node to the CAN bus.

    Regards,

    Joseph 

  • I'm using tms320280039c launch pad as transmitter and im reciving that with another brand microcontroller which have proven code in it

  • Ok,ex5 by default is in transmit mode.  You have already confirmed that you set the CAN pin GPIOs accordingly to match the launchpad transceiver.  Take note of the following too:

    - On launchpad, ensure that GPIO4 and GPIO5 are in the CAN position through switch S4.  Also ensure that the CANH and CANL from J14 connect to the CAN bus of the working micro through its CANH and CANL terminals.

    - Ex5 has the baudrate set to 500kbps.  Check that the other receiving micro with a proven code is also set to 500kbps, otherwise communication will not happen.

  • Thank you for your valuable time i problem got rectified, the problem was switch S4 was in opposite direction