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/TM4C1294NCPDT: how to use two CAN modules on TM4C1294NCPDT

Part Number: TM4C1294NCPDT

Tool/software: Code Composer Studio

Respected Sir,

I am using TM4C1294XL LAUNCHPAD for two CAN module communication. I want to use both CAN0 and CAN1 module at a time for transmit , receive and both. I am not getting how to do this. 

How I will get to know that which message object is allocated to which CAN module and how to reallocate them.

Thanks!

  • Hi,
    Each CAN module has its own message objects. For example, you can allocate message object 1 to CAN0 for transmit while allocating message object 1 of CAN1 for receive.

    Why don't you start with the TivaWare CAN module example first? Please note that the LaunchPad does not have the CAN transceiver. You must have the transceiver on each CAN node and have proper termination resistor on the CAN bus in order for the CAN communication to work.
  • Thanks you sir.


    Can I use message object 1 for CAN0 module as receiver and message object 1 for CAN1 module as receiver. I have doubt that, are those message object are shared in CAN0 and CAN1 or they are separately allocated to CAN0 and CAN1.

    I want to use CAN0 and CAN1 of TM4C1294XL launchpad at a time as receiver.

    Also want to know how many message objects are available for CAN0 and CAN1 separatly.

    with regards
    Ashwinee
  • This is all documented in the datasheet. There are 32 message objects for each CAN module. If you want to use message object 1 of the CAN0 for receive and the message object 1 of the CAN1 for receive that is your choice. The two message object 1 are independent from each other. Since both CAN modules are configured as receive then you must have another node(s) on the bus that is acting as the transmit.