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.

MSP 430 Launchpad UART.

Other Parts Discussed in Thread: MAX3232

Hello Everyone,

I am new MSP430 Launchpad. I am looking for the UART communication of launchpad to Hyperterminal.

I have MSP430 1.5. I am looking for the UART communication without Emulator USB( basically from Port Pin).. I have found some of the people suggest new jumper setting on J3. so before doing any changes.. please suggest if any discussion or some link are available or jumper setting is changes required or not..

Thanks a lot. :)

  • Hey! :)

    Today I've just discovered this:

    https://github.com/energia/Energia/wiki/Getting-Started

    In one of the "examples" contained, you have a plenty easy way to add serial features for your launchpad! :) I've done it this morning in less than 2 minutes.

    I cannot use it for other MSP430 platforms I have but for a quick test, it is fairly useful :)

    Good luck!

  • Thanks Kazola for your response..

    I have also checked this, might be I am wrong but it make Launchpad same as "arduino uno".... and give us just direct command to test :).... please add more details if I am going wrong.

    I am looking for some solution on CCS.. so I can dig deep..

    I have got this one but in details he just some jumper changes.. that actually confusing me..

    http://www.cashdollar.org/2012/06/09/uart-debugging-example-for-the-msp430-launchpad-using-usci/

    Thanks once again

  • On all G series devices except the G2x53, the UART is done in software, using the TA.0 and TA.1 pins. These pins were connected as RX and TX to the FET par tof the LaunchPad through two jumpers. The G2553, however, has a hardware UART on the same pins (in addition to the tiemr pins). Unfortunately, RX and TX are twisted. If you use the software UART, all is the same, but when using ht ehardware UART, the two signals need to be crossed when being connected to the TUSB chip. The 1.5 LaunchPad PCB has a change drouting that allows 'tuerning' the two jumpers by 90° to cross the signals. If using software UART, the two jumper s need to be vertically, jus tlike th eother jumpers, when usign hardwar eUART they have to be horizontally.
    If you want to use an external connection and do not use the Applicaiton UART on the TUSB chip (which is limited to 9600Bd), the jumpers must be removed and an external connection needs to be made directly to the two MSP pins.
    (Note that you'll need a level shifter like the MAX3232, if you want to connect the MSP with a PCs COM port)

  • Thanks  Jens Michael,

    I got my answer regarding HW UART, The confusion is because of the test code given for the G2x53 doesn't provide any details of the jumper setting,....... or these jumper setting are  not required for the sample code  especially when we connect two launchpad with serial port?

    Also just to get confirmation, Even does our emulation works even if we remove Serial connection in J3. Please share the If any doc available on Spy-Bi Wire.

    Thanks a lot

    -

  • The jumpers are only for connecting TX and RX with the TUSB chip on the LaunchPad for the virtual connection.
    If the MSPs UART (software or hardware) is connected with another MSP (or other UART device), or if teh pins (which are also timer pins) are used for something else, the jumpers must be removed.

    The two jumpers for RX and TX do not affect the ability to program or debug the trarget MSP. (that's done through the other jumpers :) )

  • Jens-Michael Gross said:
    If the MSPs UART (software or hardware) is connected with another MSP (or other UART device), or if teh pins (which are also timer pins) are used for something else, the jumpers must be removed.

    So in my case, I am using the UART as a mean of communication between the MSP430 and BNO055. I am using pin 1.1. & 1.2 of the launchpad as UART TX and RX.

    Then I am doing some power consumption measurements, so in this case which jumpers should be disconnected given that I am feeding the circuit from a battery (not from the USB), just for measuring the power. Should disconnect all jumpers?

    Thank you

  • The LaunchPad is separate din two independent parts, the FET part with the USB connector, and the target part with the MSP socket. By removing all of the jumpers between the two parts, you separate them from each other. You can then use the FET part to program an MSP (if compatible) on a different PCB or run the target MSP with a battery power source. without USB power, JTAG support or 'application UART' connection. YOu can even use the pins where the jumpers have been, to connect the target MSP with a battery or with another MCU's TTL-level UART (but not a PC COM port!!!)

    So removing all the jumpers will also prevent the FET part drawing power from your battery.

    However, I don't think, the LaunchPad board is the best device for absolute power measurements.(comparing different setups is okay) as it still contains some parts that may draw excess power. For example, it is advised to set all unused I/O pins to low output fo rminimum power consumption. However, one of the pins is connected to a pull-up resistor which will draw a lot of power then. So be careful when interpreting the results.

  • Thank you for the details,
    How can I turn off the USART while it is working in the UART mode?


    IS it by setting UCSWRST to 1?

  • Murtadha A said:
    How can I turn off the USART while it is working in the UART mode?

    USCI, not USART :)  USART is a different module (some 2x family MSPs implement both) with different features.

    Murtadha A said:
    IS it by setting UCSWRST to 1?

    Yes. Setting UCSWRST will stop the internal state machine. then the USCI will remain static, and static CMOS circuitry does not draw significant current.

**Attention** This is a public forum