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.

TMDSCNCD28388D: duplex communication

Part Number: TMDSCNCD28388D
Other Parts Discussed in Thread: C2000WARE

Hi team,

I got a question from customer.

I am working on TMDSCNCD28388D board for a project. I have just completed half of my project, now I need to perform duplex communication, communicating these results between two boards. I went through the basic example of loopback and it is working fine in my case. How shall I proceed for my current task of duplex communication?

Thank you very much for your help.

Best regards,

  • Hi,

    Thanks for your question! The full-duplex operation capabilities can be most easily seen through the "Serial Communications Interface (SCI) Module Block Diagram" located in the "Serial Communications Interface (SCI)" chapter of the Technical Reference Manual.

    The diagram shows how the TX FIFO can be used to push several words to be queued into the transmit, all the while the RX FIFO can be receiving words at the same time.

    All you need is two devices transmitting to one another at the same time to test the full duplex. The important part to remember is to not overflow the FIFO buffer on either device. Basically, do not send data while the TX FIFO is full, and don't receive data while the RX FIFO is full.

    Regards,

    Vince

  • I want to do it with ethernet, I want to send and receive data between two MCUs using ethernet. I have gone through examples from C2000ware, how should I proceed now?

  • Hi Krishna,

    Thank you for the clarification. I have reached out to our etherNET expert for assistance with this question.

    Regards,

    Vince

  • Hi,

    You can use the same ex1 basic tx rx loopback example and modify it a bit to work for duplex communication. Make sure to use same code on both devices.

    First you would have to disable the loopback mode by changing the below line in code

    pInitCfg->loopbackMode = ETHERNET_MAC_CONFIGURATION_LM_LOOPBACK_DISABLED;

    After disabling it when you use the API Ethernet_sendPacket(emac_handle,&pktDesc);

    On the other node you should be seeing some data on Ethernet_rxBuffer variable.

    Regards,

    Yashwant

  • Thanks for the suggestion, but I want to send the data continuously using the example 1 of ethernet, what should I do now?