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.

TMS320F28379D: proper methodology for the "Same" CAN bus to send and recieve data

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hello Experts,

In the C2000ware examples  (can_ex3_external_transmit, can_ex4_simple_transmit, can_ex5_simple_receive), the same can bus either sends data or recieves data. It does not do both!!

Do you have any such example that does this?, I mean the same CAN bus sends some data and recieves some data..

I ask this because CAN_setupMessageObject() is used to either send data(CAN_MSG_OBJ_TYPE_TX) or recieve data(CAN_MSG_OBJ_TYPE_RX) in the examples stated above and it is done only 'once' for the program life cycle.

I am planning on building a CAN driver based out of can_ex3_external_transmit), where in the IRS i check for both transmision and reception interrupt event.

I am confused as to where do i set up the CAN_setupMessageObject() if i want to send and recieve data from the same CAN bus.

I don't know if this is the right method: but can we just setup the message objects based on a time, for example the first 100 ms , setup the objects for transmission, the next 100ms set it the message objects for reception..and toggle them every 100 ms (or any appropriate fixed time)?

Many Thanks,

AK