Hi Team,
How is the device address configures on the 1105 for I2C? Goal is to have multiple 1105's share the same I2C bus..
-Jared
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.
Hi Team,
How is the device address configures on the 1105 for I2C? Goal is to have multiple 1105's share the same I2C bus..
-Jared
Hi Jared,
Take a look at the DL_I2C_setTargetOwnAddress, and DL_I2C_setTargetOwnAddressAlternate APIs within driverlib. As the name implies, these set the target address for the MSPM0L1105 I2C peripheral being used.
In the MSPM0L Technical Reference Manual, you can look at the SOAR and SOAR2 registers to see what they are setting.
Best Regards,
Brandon Fisher
Edited to fixed images
Thank you Brandon!
So no I/Os need to be used to hardcode the address, correct?
-Jared
Correct.
You could read the state of some I/Os on startup and set this address based on that if you wanted to, but these values can be set purely programmatically.
The only time I can think of where you might want to read I/Os like this is if you didn't know how many MPSM0Ls would be on the bus, and you wanted to use the same firmware for all of them.
Best Regards,
Brandon Fisher