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.

TMS320F280049C: SCI cannot send and receive data

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE, TSU6111


Hi expert:
When I was doing the SCI experiment of F280049C, I found that the example code of TI(Its path is:D:\ti\c2000\C2000Ware_MotorControl_SDK_3_01_00_00\c2000ware\driverlib\f28004x\examples\sci) could send and receive data on F280049C-Launchpad, but the control board I developed by myself could not send and receive data (based on F280049C chip). After study, I find may need to add the driver of Uart and I realized the function also includes USB convert to Uart function.How to write this code?In addition, I need this Uart to be able to debug code on CCS.Hope this question can be answered, thank you!

Best Regards

Johnson Alanl

  • Hi Johnson,

    Thanks for your question! I actually have a detailed guide that should be able to at least narrow down the issue you are seeing to hardware/software/config/system, that way we can dig into what the root cause is for this. Just to let you know my initial gut feeling on this, I believe this is likely a GPIO Mux configuration issue (where the GPIO mux needs to be changed to SCI for the given pins, as it is GPIO by default). The page I link may even be able to solve it for you immediately, but we'll debug anything you find after stepping through it.

    But you can see the full list of problem scenarios in this page: https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1031947/faq-my-c2000-sci-is-not-transmitting-and-or-receiving-data-correctly-how-do-i-fix-this

    Please let me know (1) if you can provide scope captures during the failure scenario, and (2) which of the issues in the above link most similarly mirrors what you are seeing.

    Regards,

    Vince

  • Hi Vince,

    I am very glad to receive your patient reply. In the guidance document you sent, the following description is most suitable for my question:

    Now I want to realize the function of USB conversion to Uart, as shown in the following circuit diagram, but I don't know how to write the code.

    In addition, I have the following questions that need your help and can be solved:
    1. The circuit diagram shown below (conversion between USB and Uart), please check whether the hardware design is reasonable (this part of the design is based on f280049C-Launchpad);
    2. TSU6111ARSVR chip is used in the conversion circuit between USB and Uart (this is the chip of TI). I have checked relevant chip documents and discover that the document has the description "Switches Controlled by Automatic Detection or Manual Control" (www.ti.com/.../tsu6111a.pdf, so how is it implemented?How do I get the Uart and USB on my control pad to connect to my computer?
    3. Whether "Switches Controlled by Automatic Detection or Manual Control" mentioned in Question 2 must use the I2C function?If I2C must be used, then my circuit may not be suitable, and I may consider the chip that can replace TSU6111ARSVR. Can you recommend a chip that is suitable and easy to use?

    Looking forward to your reply, thank you!

    Best Regards

    Johnson Alanl

  • Hi Johnson,

    Thanks for the follow-up! I understand what you are looking to do now. First, I'll mention this will be better answered by posting your follow-up response above in E2E with the device selected as TSU6111. But I will take my best attempts at answering your questions where I can.

    1. Please verify this question with the TSU6111 team by re-posting this question with "TSU6111" as the part number. I believe it looks correct, but do see the RXD is connected to TXD of the TSU6111. If "TXD" is from the perspective of the transceiver, then that should be okay. But please check with the TSU6111 team to be certain.

    2. Again, this is more of a question regarding how the TSU6111 works, but I will take my guess here. In most circumstances, as long as you open a COM port using a terminal such as PUTTY (or the one built into CCS), you should be able to communicate without an issue. But a few things need to be set up first in PUTTY (or whatever terminal software you use) as mentioned in my FAQ thread:

    The other device must match all of the following items from this C2000 device:

    • (1) baud rate
    • (2) number of data bits
    • (3) parity bit existence
    • (4) number of stop bits
    • (5) “Hardware” or “Flow” control = None (or XON/XOFF in some systems)

    3. This one unfortunately I cannot answer as this depends on the TSU6111 support capabilities.

    Please re-post the question with the device chosen to be TSU6111, and we will be able to support these questions in more detail, with the added benefit that others who search for that device will find your solutions helpful!

    Regards,

    Vince