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.

peripheral drivers of msp430 ware

Other Parts Discussed in Thread: MSP430WARE

Hello Guys

I am reading the peripheral drivers of msp430ware. Version number is MSP430ware_1_40_01_19.

I notice that there ar MSP430F5xx_6xx and 5xx_6xx folders for f5xx and f6xx.

And In MSP430F5xx_6xx folder, there are different files for uart, i2c, and spi. for example, there are eusci_a_spi.c, eusci_spi.c and usci_a_spi, usci_spi for spi driver.

I am a little confused. How to select the right files for my own device?

Thanks!

  •  Device has different preipheral, a, b or both, depending on what is in the chip you select the proper driver must be matched.

     Consult datasheet and family user guide to see differences between part.

  • Hi,

    The 5xx_6xx folder is a legacy folder that is there to make any code you originally wrote with an older version of MSP430ware still be able to build (backwards compatibility) - for new projects, just ignore it and use the MSP430F5xx_6xx folder (for F5xx or F6xx parts). If you are using an FR57xx part, you should use the MSP430FR57xx folder instead.

    From looking at your device specific datasheet, you can determine which of the 5xx/6xx modules your device actually has (RTC_A or RTC_B for example) and just use #include to then include the header files for the modules you are trying to use.

    I usually use the emptyProject driverlib examples as an example of how to set up my new driverlib projects and work from there - I usually just make a copy of emptyProject that I give my own project name, and then replace the main.c file with my own one (so as to not modify the original emptyProject main.c file that it is linking to by default).

    Regards,

    Katie

**Attention** This is a public forum