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.

TMS320F28335: SCI communication in between two TI devices TMS320F28335 and TMS320F28069 with RS232 converter.

Part Number: TMS320F28335
Other Parts Discussed in Thread: TMS320F28069, C2000WARE

Tool/software:

  • Hi Chaya,

    Some questions for you:

    • Have you tested these devices in internal loopback mode to verify the data is correct?
    • Have you also scoped the lines to help assess as well?
    • Are you using any of our C2000Ware examples as reference for these devices?

    Best Regards,

    Allison

  • Hi, 

    Thanks for the reply,

    1. Yes, I have tested with both internal/external loopback and it is working properly that time. I am able to receive transmitted data correctly in loopback without any repeated data or missing data. 

    2. Yes, we have seen the lines in the oscilloscope data is coming as well. 

    3. We are not using any examples of C2000Ware, but we took reference of it.

    Could you please provide list of configurations for SCI communication, that has to be taken for properly communicating with external device (which is having SCI interface/RS-232 interface)?

    Best Regards,

    Chaya 

  • Hi Chaya,

    Since you are receiving somewhat proper data, it doesn't look like there is any software configuration issue with your setup. Rather, it is most likely an error with the logic of how the application is sending the data. Are you using the SCI interrupts to transmit and receive SCI data? Or are you doing all SCI operations in the main loop?

    Another possibility would be a baud rate error causing a misinterpretation of data since the values you are sending are all very similar. Let's rule out the above first though before looking into this.

    Best Regards,

    Delaney

  • Hi, 

    Yes, I used SCI interrupts to transmit and receive data. Later I tried testing without using SCI interrupts, then also output is same some data is missing. 

    I am just calling my SCI transmitter or SCI receiver functions in main, which was defined in another source file. 

    Baud rate :  On 28335 side we gave baud rate as 

    LSPCLK (150000000) //150mhz
    // Baud rate configuration

     BAUD_RATE (2400) // Desired baud rate (min
     BRR = (LSPCLK/(BAUD_RATE*8)) -1  = 7811.5 = 79 for SCILBAUD

    On 28069 side we gave baud rate as 

    LSPCLK (90000000) //90mhz
    // Baud rate configuration

     BAUD_RATE (2400) // Desired baud rate (min
     BRR = (LSPCLK/(BAUD_RATE*8)) -1  =  4686.5 = 47 for SCILBAUD

    Actually, now I had added RXFIFORESET after receiving every byte, then I am able to receive data properly. But not sure where this is proper solution or not. 

    Thanks & Regards,

    Chaya

  • Hi Chaya,

    To clarify, the issue was with F28069 received data, correct? And you added the RXFIFORESET on the F28069 RX side and this resolved this issue?

    Can you send a snippet of your FIFO ISRs? Are you also doing a RXFIFORESET at the end of your SCI initialization like is shown in our examples? This bit just resets the FIFO pointer to zero.

    Best Regards,

    Allison