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.

TI msp430

Other Parts Discussed in Thread: MSP430F5529

Hello 
I just started using TImsp430g2553 and Code composer studio. i would like to know how to perform UART using CCS. FTDI cable , is it necessary to perform UART at all or can it be done using the same USB that powers the launchpad from the laptop. Also, I would like to know a sample code for "hello world" . I have gone through the codes available on the web and none of them seem to work in CCS. 

  • You can use LP integrated UART. On MSP430G2 LP it is limited to 9600 bps. On MSP430F5529 LP it is limited (per datasheet spec) to 1 Mbps. UART 9600 bps examples are here...

    slac485c MSP430G2x53, MSP430G2x33, MSP430G2x13, MSP430G2x03 Code Examples (Rev. C)

    http://www.ti.com/lit/zip/slac485

  • zrno soli said:
    You can use LP integrated UART. On MSP430G2 LP it is limited to 9600 bps. On MSP430F5529 LP it is limited (per datasheet spec) to 1 Mbps.


    To further clarify this: The MSP itself can use up to 1Mbps. Even the G2553. Actually every MSPs hardware UART can go up to 1Mnps (IIRC, some even higher).

    However, on Boards with integrated FET, the included 'Application UART' channel is limited to 9600Bd because the high-speed serial connection of the TUSB USB/serial chip is used for the programming interface.

    Note that on the LaunchPad, the two jumpers for RX and TX between MSP and FET part need to be in horizontal position (other than the others) when using the hardware UART of the 2553. The vertical position is to be used for the software UART, as used on the 'smaller' MSPs for the LaunchPad.

  • Jens-Michael Gross said:

    To further clarify this: The MSP itself can use up to 1Mbps. Even the G2553. Actually every MSPs hardware UART can go up to 1Mnps (IIRC, some even higher).

    My post with 9600 bps and 1 Mbps rates is related to MSP430G2xx LP / MSP430F5529 LP USB-UART bridge (Application UART), not to target device MSP430 (hardware) UART limitation in general.

    As per datasheet MSP430G2xx LP USB-UART bridge is limited to 9600, and MSP430F5529 LP USB-UART bridge is limited to 1 Mbps.

    MSP430 devices hardware UART (not related to LP) can go much higher than 1 Mbps spec by datasheet. I done some benchmarks for MSP430x2xx and MSP3430F5xx family ...

    http://forum.43oh.com/topic/3413-msp430-uart-benchmark

  • zrno soli said:
    My post with 9600 bps and 1 Mbps rates is related to MSP430G2xx LP / MSP430F5529 LP USB-UART bridge (Application UART), not to target device MSP430 (hardware) UART limitation in general.

    That's why I wrote 'to further clarify'. I didn't contradict you but thought that your post could be misunderstood if one doesn't already know this.

    However, the original question was 'how to do UART with CCS'. Since UART is one thing and CCS is another, the answer actually is 'not at all'.
    One can do UART to a PC COM port (and read wit with HyperTerm, PUTTY or any other serial port application), or one can use the CCS internal console feature which doesn't use UART and doesn't require any code but (ab)uses the JTAG debug connection to fetch or inject data and show int on the console. And it will require CCS as well as a JTAG connection to work (so useless for production systems unless customers shall buy CCS and a FET too).

    Advantage is that since no code is generated, it can be used for debug output transparently: if there is no debug connection, then the output just goes into the void without any code or 8except for a function call) execution overhead.
    Drawback is that fetching the console data through JTAG will temporarily stop the CPU and therefore may cause jitter effects in the code flow (like any breakpoint will do, just shorter)

  • Thank you everybody , I was able to configue the UART using Tera Term ,terminal.
  • Hello Prajval,

    Can you share with me how you were able to connect  with the terminal using the MSP4305529.

    Regards,

    Jonathan Velez

**Attention** This is a public forum