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.

SCI usage in F28069

Other Parts Discussed in Thread: CONTROLSUITE, CCSTUDIO

Hi,

I am very new to using DSP kits
I am using F28069 Control Card along with USB Docking kit.(i.e F28069 Experimental kit). I what to send information from DSP to PC using SCI.

Can you suggest what all different ways I can perform this operation.

Does this need any additional circuit.

How I can send information from SCITXDA/SCITXDB Pins to PC

Please suggest different methods

--- Madan

  • Hi Madan,

    There are several ways of doing what you want hardware-wise:
    1) The simplest way is to make use of the second channel (pin 40 and 39) of the FT2232D on the Docking Station.  (the first channel is used to for JTAG).  To do this you will first need to make short the terminals of J9 on the Docking Station together, likely by soldering.  The last step is to see if your computer recognizes a new "USB Serial Port" when the Docking Station's USB is connected.  If it doesn't, you may need to reprogram the FTDI chip as described in the following thread:
    http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/21086.aspx

    Schematic for the Docking Station:
    \controlSUITE\development_kits\~ExperimentersKits\DIM100ExperimentersKit-HWdevPkg_v2_0\R3\


    2) The second method is to connect GPIO28 and GPIO29 (or whatever SCI-RX and SCI-TX you desire) up to a RS232 transceiver, something like a MAX3221ECP.


    Software-wise you could use the sci_echoback example from controlSUITE to test.


    Thank you,
    Brett

  • Hi Brett,


    Thank you for your quick reply.

    If I use the 1st method, As you mentioned I need to short J9 pin and

    Computer has to recognize a new "USB Serial port" when Docking station USB is connected.

    Does it mean it needs additional USB port on the docking station.If so how to do such hardware configuration on the Docking station.

    My PC has additional ports for USB.

    Thanks in advance,

    Viswa Madan P

  • Hi Madan,

    No, both connections (JTAG and SCI/Serial port) go through the USB connector JP2 on the Docking Station.  The FTDI chip U1 does both translations and can share the bandwidth of the USB connection relatively well.

    When you plug a USB cable into your computer and JP2, Windows should find a driver which enables both connections.  Ideally once you plug the USB cable in, you should see a "USB Serial Port" pop up in Device Manager.

    If you don't see it pop up in Device Manager you may need to follow the procedure outlined in the forum thread I linked above.


    Thank you,
    Brett

  • Hi Brett,

    Thank you for your response.

    In the Device manager, when I connect the USB it shows as below

    XDS100 - ChannelA - 1CA2 (Port address i guess)

    XDS100 - ChannelB - 1C23

    As you explained this represents JTAG and SCI.

    Once again thank you.

    Next step I am thinking to access ChannelB using Excel VBA.

    Can you suggest any good method to do this job. Is there any GUI facility in CCS studio to do this operation

    Once again thank you for the suggestion.

    --- Madan

  • Hi Madan,

    Before you move on to resolving the computer host side, I just want to make sure that you've gotten everything right as far as windows.  When you plug in the Docking Station you should see something like the below.  Note COM16.  This is what you'd use to interact with hyperterminal or similar application on your computer.


    The next step would be to get both sides talking to prove things out.  The Code Composer Studio project sci_echoback in controlSUITE would be what I'd use:
    \controlSUITE\device_support\f2806x\v136\F2806x_examples_ccsv5\sci_echoback\


    Thank you,
    Brett

  • Hi Brett,

    In my PC's Device manager also it is showing in a similar manner.

    Ports --> USB Serial Port (COM6)

    Universal Serial Bus controllers --> TI XDS100 ChannelA

                                                               --> TI XDS100 ChannelB

    If I want to use sci_echoback program, what is the user interface by which we can send data to DSP (i mean CCStudio or some other thing)

    In my PC I dont have hyperterminal software. Is it possible to communicate to USB/ serial port using Excel VBA

    --- Madan.

  • Madan,

    Great! Then hardware-wise/Windows-driver-wise you should be in good shape.  On your PC you'll use COM6 to communicate to the C2000 device.

    The sci_echoback CCS project, once loaded and run in the 'F28069, will retransmit whatever data it receives.  This will allow you to prove that the physical interface is working as you expect.  Once you get that working, you can then develop a more advanced protocol based on the needs of your project.  If you want to use Excel VBA you'd need to configure the SCI port via registers in the 'F28069 and the Excel VBA settings accordingly.

    There are several good hyperterminal programs (including free ones) that should be able to provide the functionality of hyperterminal.  I happen to know that there is a hyperterminal program named 'Terminal' within CCS.  View->Other...->Terminal.  I must admit that I haven't used it though.


    Thank you,
    Brett

  • Hi Brett,

    Your suggestion worked. I ran scia_echoback program and observed the result in "Terminal" in CCS.

    Thanks a ton.

    My actual requirement is to send Hexadecimal data (varies from 000 - FFF) from DSP to PC via SCI and decode it to value (0 - 3).

    Is it possible to do this using Terminal. Displaying the Hex data is also OK.

    Further Hex data calculated is performed in ISR.

    Please suggest possible methods

    --- Madan

     

  • Hi Brett,

    Thanks for your suggestions. I am able to run sci_echoback example. Further I am able to use Terminal with in CCS.

    Currently I am developing protocol for my requirement...

    Thanks you for your suggestions.

    --- Madan