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.

RTOS/MSP430F5528: SPI Bus example for USCIB

Part Number: MSP430F5528

Tool/software: TI-RTOS

Hi,

I have an RTOS project under development that requires the addition of a driver for the SPI bus.

I have gone through all of the example code in MSP_EXP430F5529LP.c that came with my rtos kit.

All of the implementations seem to be focused on an SD card, DMA or wifi. 

Does an example exist for a more generic approach ?

I will only be transmitting data to an external DAC.  No data is being read from my external device.

Thank you

Roy Nordstrom

 

  • Hi Roy,

    Please see the documentation included on the TI-RTOS product page. Specifically, please see the TI-RTOS 2.20 for MSP43x Getting Started Guide (www.ti.com/.../spruhu4). Section 3 will discuss how to find and use the example projects in Code Composer Studio. If you do not see one for your device, you should be able to find one for a similar device to help you with what you are trying to do.

    Regards,
    Nathan
  • Hi Nathan,

    Per your directions, I went into resource explorer, and located a User's Guide: MSP430 DriverLib for MSP430F5xx_6xx Devices. The USCI_B_SPI section seems to have what I am looking for. Is this a correct choice to implement my SPI driver in the RTOS environment ?

    Thank you

    Roy
  • Hi Roy,

    Those are examples that you can use with DriverLib, which you can import into your project. If you want to use the built-in TI-RTOS drivers, then you will need to use those project specifically. Directions on how to find those in resource explorer should be in the Getting Started Guide. The DriverLib examples should work though with TI-RTOS. You will just need to make sure you include DriverLib in your CCS project.

    Regards,
    Nathan

**Attention** This is a public forum