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.

MSP430F5528: SPI communication with an XBEE

Part Number: MSP430F5528
Other Parts Discussed in Thread: MSP430WARE

Hi everyone,
In my project, I want to read the flow data using the TDC1000-TDC7200EVM and send these data to an Digi's XBEE PRO S2C, exactly the same as the following thread:
https://e2e.ti.com/support/sensor/ultrasonic/f/991/t/660329?TDC1000-TDC7200EVM-Send-output-from-TDC1000-TDC7200EVM-using-RF-Modules-without-the-use-of-GUI-and-connection-between-the-board-and-a-PC

I know that it's possible using the SPI bus coming out from the MSP430, but I have some questions about it:

1) The XBEE module is powered with 3.3V, so the SPI also requires 3.3V signals. The SPI bus from MSP430F5528 would be directly compatible with the XBEE's SPI? Or it would be necessary to convert the signals levels (using a voltage regulator for example)?
2) Is there any code for MSP430F5528's SPI communication avaible? I'm new to the MSP430 and I don't know where to start.
3) To write and compile the code should I use the Code Composer Studio? And to program it in the MSP430F5528 should I use the BSL loader? Is there anything else needed to accomplish what I want?
4) In the thread I mentioned above, it says that I can use any of the unused GPIO on the MSP430 as CS, but how do I configure any of these GPIOs to work as a CS?

I'm a begginer in this area, so I would be very grateful if someone helped me in these initial steps.

Best Regards,
Lucas

  • 1- It should be compatible as long as it is powered with a 3.3V source.
    2- There should be an example for it. A google search about it should give you enough links to start.
    3- CCS it an excellent IDE (it even provides you example code). You could use the BSL or JTAG to program it. If you need to debug, JTAG is the way to go.
    4-CCS should have an example to toggle an LED. This should be enough to show you how to use GPIOs.
  • Hello Lucas,

    To add to Mike's post, SPI examples for your MSP430 can be found within MSP430Ware, along with examples for using GPIOs. MSP430Ware can be found within TI Resource Explorer within CCS or on our Cloud version linked below.

    Please see the SPI Standard examples for full fledged comms or other SPI examples for partial solutions.
    dev.ti.com/.../

    Please also see the following app note for some debug tips when using SPI.

    http://www.ti.com/lit/slaa734

**Attention** This is a public forum