Part Number: MSP430FR5969
Other Parts Discussed in Thread: ENERGIA, , HDC2010, MSP430F5528
I'm using the MSP430FR5969 Launchpad with Energia 18 (sketch imported to CCSv7), and I can't seem to get I2C to work correctly.
My setup consists of the MSP430FR5969 Launchpad, the SHARP BoosterPack (96*96 px SPI Memory LCD) and a HDC2010 I2C temperature sensor. The HDC2010 is connected to pins 9 & 10 of the LaunchPad (SCL* & SDA* - because they're software emulated). The sketch simply displays the temperature that's read from the sensor on the SHARP LCD; ignore the part about energy because it's just constant alternative data for now. The functions that read the temperature have been tested on an Arduino Uno, and worked correctly.
Coming to my problem:
The display/serial terminal shows a temperature reading of -40, which is displayed when the board isn't communicating with the HDC2010. I'm using the HDC2010 EVM which includes a MSP430F5528 (that handles USB- I2C part when the device is used on its own) and the HDC2010 section can be broken off from the main board.
The first time I tried using it, I did not break it off, and simply connected the sensor portion to the Arduino Uno via a level translator (note that the MSPF5528 was also in the circuit and probably powered on, but not communicating since I powered the +3.3V rail to power the sensor). It worked fine and I got readings. I then tried using it with the MSP430FR5969 Launchpad, and I didn't get any readings at first, and the logic analyzer revealed that one of the serial lines was remaining pulled up continuously. However, after some time, it started working correctly, but then stopped again.
After spending a lot of time troubleshooting it, I decided to break off the HDC2010 section (in case the MSP430F5528 was interfering). The sensor works fine with the Arduino Uno, but doesn't work with the MSP430FR5969.
The logic analyzer reveals this:
I accidently made a few changes to the original sketch that worked, so I can't figure out whether it's a software problem or hardware (related to pull ups?; the time it worked, no pull ups were connected)
If no external pull up is connected, I get this:
Here's a screen capture of the time it worked with the MSP430FR5969:
