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.

MSPM0L1105: I2C Abstraction Functions

Part Number: MSPM0L1105

Tool/software:

Hello,

I need to implement an I2C bus in my design, using the MSPM0L1105 as the master/controller.

Based on the MPSM 'code academy' examples, implementing an I2C bus using this MCU requires working with lower level I2C commands:

https://dev.ti.com/tirex/explore/node?node=A__Adk.xJzQkkC7nuidYK5bXg__MSPM0-ACADEMY__2f1Egw1__LATEST

The commands in this example are working down at the polling/FIFO level. I don't need this level of control. Commands at the i2c_read/i2c_write level would save me a lot of time, and are the standard across multiple platforms.

Am I simply missing these higher level functions, or is there a reason why these functions have not been implemented in the API? I can write them myself, just seems like something that would already exist. 

Thanks

Jesse

  • Hi Jesse,

    It is a driverlib level example and API function, which means it is low level for user reference.

    If you want to implement high level functions, you could base on the driverlib example code to combine the reference steps.This gives users more flexibility.

    B.R.

    Sal

  • Thanks Sal.

    Secondly, looks like I messed up my pinout, and I have this I2C line on standard I/O pins.

    Is there a way I can still port the I2C to these IO pins, or do I need to do a rework?

    Thanks

    Jesse

  • Hi Jesse,

    I suppose you should do a rework to assign a correct pinmap for the application.

    If the IO pin does NOT support IIC interface, which means you can not port IIC to these IO, except you do a IIC IO simulation for further development.

    B.R.

    Sal