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.

LAUNCHXL-F28379D: LAUNCHXL-F28379D

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE, TMS320F28379D

Good afternoon, I am designing a control system for a power electronic converter, I am sensing the voltage axis values through an ADC, I want to send the reading values of the ADC with a sampling frequency of 40 KHz through some port to my computer for later graphing. How could I communicate for data transfer between the launchpad and my computer that would allow me to send data at the required speed?

Thank you.

Regards.

  • Hi,

    You can look into using SCI / serial communications to your PC (virtual COM port). The XDS100 on the LaunchPad works as a serial to USB converter.

    Best,

    Kevin

  • Thank you for the response, it was very useful to me, I am currently looking to send the ADC data via USB 2.0, is this possible?
    If so, is there a lab that allows me to learn how to communicate my launchpad with my computer via USB?

    Regards.
  • Hi Jesus,

    Not sure what you mean by USB 2.0 here as the F28379D LaunchPad uses a Mini USB-B Cable 0.5m cable to connect to your computer. Do you mean to ask if you can sample data using the ADC of F28379D and then send that data via the SCI module of F28379D?

    To answer the second part of your question, we do have several examples of sending data via SCI.

    • There is a foundational SCI lab exercise in C2000 Academy that walks through an introductory setup of using SCI to communicate with your PC comport (you can find it under the 'Labs' tab).
    • There are also general SCI software examples in C2000Ware located at {C2000Ware}\driverlib\f2837xd\examples\cpu1\sci

    Best Regards,

    Allison

  • Good afternoon, thank you, I am looking to use the USB 1.0 or 2.0 protocol directly because I require transmission speeds greater than those achieved by the UART emulation (greater than the baudarate of 921600) over USB.

  • Hi Jesus,

    The SCI module on this device is capable of baudrates up to 12500000, but is your concern specifically regarding how the XDS emulator and conversion from SCI/UART to USB affects speed?

    Best Regards,

    Allison

  • Hello,

    If so, is there a lab that allows me to learn how to communicate my launchpad with my computer via USB?

    There are USB examples provided for the F2837xD device here: C2000Ware_5_01_00_00\driverlib\f2837xd\examples\cpu1\usb. The USB on C2000 devices use the USB 2.0 protocol. For more information on the USB peripheral, please refer to the device reference manual. Let me know if you have specific questions.

  • Thank you all for your answers, based on the requirements of my application, where it is necessary to send data from the ADC configured at a frequency of 40 KHz, I want to use the RS-485 port to communicate the TMS320F28379D launchpad with my computer. How could I achieve this? Is there any material that helps me learn to perform this task?

  • Hello,

    For learning to use the USB on the F2837xD device you can refer to the USB chapter of the device manual, the registers at the end of the chapter, and the examples which I mentioned previously. I will see if another expert can help with the specific questions on using RS-485.

  • Hello,
    I am currently testing the C2000Ware_5_01_00_00\driverlib\f2837xd\examples\cpu1\usb examples, specifically the usb_ex4_dev_bulk because I am looking to apply the so-called bulk transfer type of the USB 2.0 protocol.

    From the information provided in the example I understand that the code for the lauchpad f2837xd sends a string of characters to the PC. I compiled and ran this code without problem on the launchpad.

    I also understand that in the directory ~/C2000Ware/utilities/tools/{Device}/usb_bulk_example/Release an example code is provided for this type of transfer and its .exe file which must be executed on the PC allowing it to receive the string of characters sent by the launchpad.

    At the same time, it is required to have WinUSB installed, which in my opinion is already preinstalled in Windows.

    My computer has Windows 10 Pro, and I installed Visual Studio 2022.

    I generated a new project in Visual Studio (Visual c++) where I added the example code usb_example.c and tried to compile it using the "release" option, this gave me an error.

    How can I solve it?

    Regards.

  • Hi, 

    This lib is located at C:\ti\c2000\C2000Ware_5_01_00_00\utilities\tools\usb\tiusbdll\Release

    You will have to add this to your Visual Studio project. 

    Best Regards

    Siddharth

  • Hello,

    I already have that library added, in fact, by zooming in on the previous image in the "Solution Explorer" section you can see this library. However, the code still shows the same error.

    Regards.

  • Hi,

    Pls check if the include path is correctly configured in the Project settings. The include directory should have a path added for the tiusbdll.lib

    Best Regards

    Siddharth

  • Hello

    How can I check if the inclusion path is configured correctly in the project configuration? That is, how can I access the tab you show in the image through the toolbar in Visual Studio?

    The tab I accessed through the toolbar is the following one, however it does not seem to be the same. Does it have something to do with the version of Visual Studio I am using or am I simply accessing the wrong tab? In my case the version of Visual Studio is 2022.

    I also add the error that is shown when using the .exe file from the "Release" folder.

    In the following link

    https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/365829/usb_bulk_example-exe-with-tm4c123g-dev-bd

    The user mentions the following:


    "I change the USB port to USB-OTG is OK",

    Is this completely necessary to make this example work?

    Regards

  • Hi, 

    For the include path, I navigated from Project->usb_bulk_example_throughput properties-> C/C++. 

    You will have to load and run the example code (usb_ex9_dev_bulk_throughput) from CCS and then run this utility

    Best Regards

    Siddharth

  • Hi,

    I already checked that the path is correctly configured. The configuration is the same as the one you present in your image, however the same error continues to appear, I leave evidence below:

    Thank you,

    Regards.

  • Hi, 

    Looking at the snapshot , the Additional Include directories needs to be updated as below

    • Instead of "lmusbdll" , update the setting to specify "tiusbdll"  (../lmusbdll to ../tiusbdll)

    Best Regards

    Siddharth