fa7357 0 Posted September 17, 2018 Share Posted September 17, 2018 Hello, I'm having troubles controling FDC1004 with MSP430F5529LaunchPad. I found the sample codes on this forum and tried using it (connecting SDA to P3.0 and SCL to P3.1. via 10k pull up resistors to 3.3V). It compiles and upload, but doesn't actually work- serial monitor is just blank. could you please help to fix this?) Thank you, Alex Quote Link to post Share on other sites
mph 10 Posted September 19, 2018 Share Posted September 19, 2018 You should be able to modify the code I recently posted that connects the 5529 Launchpad to the TI HDC2010. I think you would only have to figure out the relevant registers. There is some simple code on my github to read and display the slave serial number so I suggest starting there. If you want to use Energia/Arduino code instead of a register-based approach, someone else will have to help. Quote Link to post Share on other sites
NurseBob 111 Posted September 19, 2018 Share Posted September 19, 2018 Best option is to post the code you're running, or attempting to run. Without such, it's almost impossible to diagnose what could be wrong in terms of the code. I'm sure you noted that the code you pointed to is both a different device with a different pinout. Also, do you have a logic analyzer or an oscilloscope? Very handy tools to see what's being sent. Finally, some I2C setups are very sensitive to the resistor values. Lower values (eg. 2k2) can make the signal transition cleaner, but increase power losses. And, if not an obstacle, a schematic never hurts either... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.