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.

MSP430F5529: Sending data over serial port

Part Number: MSP430F5529


Hi All,

As a quick background, I am working on a project which involves an ADXL345 (three axis accelerometer). I have currently got the accelerometer communicating to an arduino (via I2C), and the arduino is printing the XYZ data to the serial port, which I am reading into matlab. This process of sending serial data via an arduino is very simple, using the Serial.print(data).

I am now looking to replace the arduino with my MSP430F5529 Launchpad. Could anyone advise me on the steps involved in sending serial data over the serial port ? Im using IAR if that makes a difference.

Thanks in advance,

  • Hi Richard!

    First have a look at the code examples for the processor - there are a few examples for the UART as well:

    • MSP430F55xx_uscia0_uart_01.c      USCI_A0, 115200 UART Echo ISR, DCO SMCLK
    • MSP430F55xx_uscia0_uart_02.c      USCI_A0, Ultra-Low Pwr UART 2400 Echo ISR, 32kHz ACLK
    • MSP430F55xx_uscia0_uart_03.c      USCI_A0, Ultra-Low Pwr UART 9600 Echo ISR, 32kHz ACLK
    • MSP430F55xx_uscia0_uart_04.c      USCI_A0, 9600 UART, SMCLK, LPM0, Echo with over-sampling

    Dennis

  • Hi Dennis,

    I have watched a few TI tutorials and read some more TI docs. I have now successfully got the 5529 sending a string over the UART, which I am reading back using a virtual terminal. However, I still can't get the echo examples working. Just to confirm, they are compiling successfully. I am then opening a connection via virtual terminal (setting the baud rate appropriately), and sending a character. I would expect to see the same character 'echoed' back?

    Is my understanding of this program correct ?

    Thanks again,
  • Well, what are the differences between your send-string program and the echo program? Are you using USCI_A0 or USCI_A1?

**Attention** This is a public forum