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.

tranfer data from 4c123 high speed

Other Parts Discussed in Thread: MAX3232

hi

I need tranfer data from MCU to pC in high speed about 2->3 Mbps/s 

Could you please tell me some exam code and program in PC 

thank you so much

  • Hello Vu,

    The usb_bulk_example can be used to achieve this rate of transfer. However you would need to modify the same to perform the action. Another alternative would be to use UART. On the TM4C123 the UART's maximum baud rate could be upto 10Mbps as well.

    The PC side application would need to be made in either case. Only the usb_bulk_example has a framework of PC side example. Also there is an application note on serial boot loaders which has a Visual Studio project which uses a modified version of the example for a custom implementation of data transfer that you may want to refer to.

    Regards
    Amit
  • I tried to openusb_bulk_example with Vs 2010 and I can not open its
    could you help me please ?
    thankyou
  • Hello Vu,

    It was created in Visual Studio 2008 and I have used Visual Studio 7 as well. You may have to check Microsoft site to see how to get it to work.

    Regards
    Amit
  • I installed VS 2008 but I can not run program
    please show me step to run its
    thank you
  • Hello Vu

    What error does it give?

    Regards
    Amit
  • I tried to use UART in TM4c123
    can I setup tranfer data with baudrate 1 MBs ? I know baudrate = 152000 it worked great but I don't know how to setup tranfer in high speed with tivaware
    thankyou
  • vu thang said:
    I installed VS 2008 but I can not run program

    Earlier you made this statement - Amit asked for clarity - and now you move to, "speed limitation w/in Tiva."   Is that consistent - or properly responsive?   No one here can tell if you've gotten VS 2008 (now) to run!

    By reading/reviewing the MCU's Peripheral Driver User's Guide you'll find great detail w/in the UART Section.   A key function enables you to "quickly/easily" set the baud rate - and importantly - it is highly detailed...   Read/review - right there - should prove most useful...

  • Hello Vu,,

    The maximum baud rate that can be set on TM4C123 is 10 Mbits per second, which would translate as 1.25 MB per second. However due to the asynchronous nature of the protocol, the clock has to be a steady and stable clock. I would suggest using the System clock sourced from the MOSC+PLL.

    Regards
    Amit
  • Can I program on C# to receive data from MCu?
    how is the max speed when I configure in C# ?
    thankyou
  • Hello Vu,

    I am not a user of C# and have never attempted to code in it.

    Regards
    Amit
  • And ... w/in some parallel universe ... a C# forum receives a Tiva question... (at least it should!)
  • so what program should I use to receive data in PC
    thank you
  • Hi,

     While you need to use a highest speed serial interface, this is problematic these days, since most if not all desktop computers/laptops do not have anymore a dedicated serial interface, being replaced by USB, even USB3/USB-TypeC interface.

    To use a serial interface with a computer, you need to add a level translator to your micro board. This one limits the maximum available speed. Many such circuits (TI's MAX3232) usually have declared max speed as 1MB, but others are even lover, such as 120KB or, some models 230KB. 

    A second limitation comes from the need to add a USB to RS232 adapter to your PC. While such adapter could be found with lower prices (~$5), also limits the maximum speed (same problem/solution as above). The lower prices ones even do not specify maximum speed - so be careful what you choose. The available such converters are for USB1 or USB2, so if your computer has only USB-TypeC, this is also another problem.

    Even for highest speed as Amit told you there are problems - you may connect directly two boards, short lengths, with special cable. The reason is cable capacity, which limits the highest speed (low capacity cable may exist, but to find them out and the price is another big problem).

    So the only possibility is USB interface as suggested by Amit. 

    For C# there is not speed problem, the hardware is the main limiting source.

  • Bravo Petrei - very well done.

    Poster's declared (need) - minus a full & proper investigation - proves unlikely.

    And - as always - (never) is this "need" justified or (even) explained.

    KISS dictates that users start "small/controlled" - succed there - and only (later) try for "speed/other" performance records...
  • Hello Petrei,

    Simple explanation and elegant.

    Regards
    Amit
  • And I'm just told there's a "Like" on the C+ forum...