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.

MSP430FR2676: Example Code using DriverLib to implement I2C slave

Part Number: MSP430FR2676
Other Parts Discussed in Thread: MSP430FR4133

I have seen snippets of code for doing this at the register level - but would like for my code to be more readable for future engineers.

QUESTIONS:

  • Are there any examples of implementing a I2C controller of the MSP430 with the DriverLib?
  • Seems like nobody likes using the DriverLib - is this frowned upon?

Any help would be greatly appreciated!!

Thank you so much,

Willie

  • Hi Bill

    For I2C driverlib example code you can refer to this http://dev.ti.com/tirex/explore/node?node=AOBSMp.prJeWibsPSUV0YQ__IOGqZri__LATEST

    For the driverlib not often use in MSP430, I think two reason here

    1. Driverlib will cost more memory, you know the MSP430 have small memory inside.

    2. MSP430 have less registers that is easy to use and to understand.

     

  • Hi Gary,

    Thank you so much for your help!

    • I agree with you after looking at the code - just as easy to do the I2C with Registers and not worth the memory required by DriverLib :)
    • I will mark this resolved.

    At first though was like where did Gary find that code??

    • I knew I looked thru the TI Resource Explorer - None of the code examples used the DriverLib (but that was for my small part MSP430FR2676)
    • But then realized your link pointed to the MSP430FR4133 and DOES have DriverLib code examples (since probably more memory)
    • So all makes sense - thank you so much for pointing me in the right direction!!!

    Thank you Gary,

    Willie

    -----------------

    Pictures attached showing:

    • MSP430FR2676 doesn't have DriverLib Code Examples (very little memory)
    • MSP430FR4133 DOES have DriverLib Code Examples (more memory - so maybe worth it!)

    MSP430FR4133 - DOES have DriverLib Examples:

**Attention** This is a public forum