Delared, Energia is programming for the novice hobbyist, certainly not a tool for the professional programmer. I brought it up because a lot of times you can't tell which bin the original poster belongs to - hobby or professional. (Though there are a good number of "do my homework for me" types of posts). You mentioned a launchpad plus LSM dev board, so I kind of assumed student/hobbyist. My bad. Another couple starting point might be: 1) Use SMBusLib that is available for MSP430. While out of the box it doesn't support F5529 device, you can easily port it to F5529 (I'm using it) and look at just the smbus_phy.c portion, strip out smbus specific stuff and use the master functions as an I2C driver 2) Look at the DriverLib software drivers available from TI for free. There is an I2C mode driver in there for USCI_Bx ports that you could use as a a starting point as well.
↧