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.

How to transmit data to F28335?

Other Parts Discussed in Thread: CONTROLSUITE, MAX232

Hi,

I'm working on a communication project with F28335. I need to transmit data continuously from my PC to the Microcontroller. How can I do it? Should I use the SCI or the USB port? Is there any related example I can refer to?

Thank you.

Qiaozi

  • Hi Qiazi,

    How can I do it? Should I use the SCI or the USB port? Is there any related example I can refer to?

    Using SCI peripheral would be the easiest way to achieve this task. Yes, example code is present in controlSuite (If you've not downloaded controlSuite, do it now)

    For this refer sci_echoback example that can be found here:

    C:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_examples_ccsv4\sci_echoback

    Regards,

    Gautam

  • Gautam Iyer said:

    Hi Qiazi,

    How can I do it? Should I use the SCI or the USB port? Is there any related example I can refer to?

    Using SCI peripheral would be the easiest way to achieve this task. Yes, example code is present in controlSuite (If you've not downloaded controlSuite, do it now)

    For this refer sci_echoback example that can be found here:

    C:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_examples_ccsv4\sci_echoback

    Regards,

    Gautam

    [/quote]Hi Gautam,

    Thanks very much for your help.

    I got the controlSUITE and the echoback example already. But I don't have a cable for SCI right now. Does a USB/RS-232 cable work for that? 

    And I've notice the application "hyperterminal" is needed, What version should I need? 

    Your help is greatly appreciated.

    Qiaozi

  • Does a USB/RS-232 cable work for that?

    USB-RS232 converter is also fine. But at the board side you've to make some arrangement as you've male berg sticks on the board.

    And I've notice the application "hyperterminal" is needed, What version should I need?

    I'm attaching the hyperterminal software. 6644.hyperterminal.rar

    Regards,

    Gautam

  • Gautam Iyer said:
    But at the board side you've to make some arrangement as you've male berg sticks on the board.

     Thanks for the software. But I don't get you about the arrangement you've mentioned. What should I do with the board? Because the board is sealed in a safe box to prevent the high voltage hurting people.

    Best, 

    Qiaozi

  • Because the board is sealed in a safe box to prevent the high voltage hurting people.

    So, what board are you using? You've not mentioned any details about this! Also, what are the provisions present for accessing the SCI pins on the board?

    Regards,

    Gautam

  • Gautam Iyer said:
    So, what board are you using?

    I'm using TMDSPLCKIT-V2. F28335. 

    The PCB board is sealed in a box, it's like a mainframe box. I can just do the connections of SCI, DC power source, High voltage power line and the USB JTAG Emulator. 

    You mean I can't just connect the RS-232 to SCI-A (put the cable onto the pins)? 

    Best,

    Qiaozi

  • You mean I can't just connect the RS-232 to SCI-A (put the cable onto the pins)?

    This you would've to check in the schematics whether you need a level converter circuitry with MAX232 or not. If that is already available in your board then directly you can connect it else an external circuitry has to be added.

    Regards,

    Gautam

  • Gautam Iyer said:
    This you would've to check in the schematics whether you need a level converter circuitry with MAX232 or not. If that is already available in your board then directly you can connect it else an external circuitry has to be added

    I couldn't see a MAX232 circuit on the PCB board.. 

    I'm not sure whether I clarified the situation. The SCI-A port is already made as a 9-pin RS-232 port and I'm gonna get a RS-232/USB cable to connect them.(RS-232 to the board and USB to the PC) You mean the SCI still can't work?

    By the way, the hyperterminal software is encrypted, I can't open it without a password.

    Thanks.

    Qiaozi

  • The SCI-A port is already made as a 9-pin RS-232 port and I'm gonna get a RS-232/USB cable to connect them.(RS-232 to the board and USB to the PC) You mean the SCI still can't work?

    You should've given this info before. No need of any level shifters as board already has a DB9 connector :)

    You can directly connect it to the PC. Here's the copy of hyperterminal:

    8154.hypertrm.rar

    Regards,

    Gautam

  • Sorry to bother you again, but I still can not open the software. 

    It says hypertrm.dll is missing in the packet.

    Thank you.

    Qiaozi 

  • Qiazi, you've to paste the dll file present in the zip file into your system32 folder:

    C:\Windows\System32

    Only then will it function.

    Regards,

    Gautam

  • Hi Gautam,

    Thanks very much for your help. I've implemented this example successfully. 

     

    My project is to build a power line communication system, the data is sent from one PC to one board, then goes to the other board via the power line, at last it will be transmitted to the other PC.  I've used the PHY_test example before. How can I combine these two examples together to send the data continuously? Do you have any suggestions for my project? 

    Thank you.

    Qiaozi

  • Hi Qiaozi,

    Thanks very much for your help. I've implemented this example successfully.

    Great to hear that!

    My project is to build a power line communication system, the data is sent from one PC to one board, then goes to the other board via the power line, at last it will be transmitted to the other PC.  I've used the PHY_test example before. How can I combine these two examples together to send the data continuously? Do you have any suggestions for my project?

    Please start a new query in a new post and close this post by verifying the answer. This would be helpful for other community members. Anyways...

    For your next question, which example is Phy_test example?

    Regards,

    Gautam

  • Sure, I will start a new post. Thank you.

  • Hi Gautam, 

    I found some problems with the sci_echoback example. When I loaded the codes to the board, checked the com port, I can't get the correct information in Hyperterminal.  

    It's like this:

    All these just showed up when I opened SCI_96.ht. 

    Do you know what happened here?

    Thank you

    Qiaozi

  • Qiaozi Liu said:
    Do you know what happened here?

    You mean to say that you didn't type anything and all the above data just showed up?

    Regards,

    Gautam

  • Yes, and the com port and baud rate are correct.

  • Qiaozi Liu said:
    Yes, and the com port and baud rate are correct.

    Check your code mate, that's the only thing I can say. Because this should not happen until triggered.

  • Qiaozi Liu said:
    I found some problems with the sci_echoback example.

    I think this is not the original sci_echoback example, right?
    What is your modification for this example?

    If you go back to the original one, does it work well?

    Best regards,

    Maria