Arj Posted March 18, 2023 Report Posted March 18, 2023 I am using the MPSSE I2C drivers over an FT232H device, communicating with BMP280. When I read the BMP280 device ID, it is supposed to return 0x58 but the DeviceRead vi returns 0xFF. I have used a logic analyser and can confirm that the device is actually sending 0x58, but the output from the read vi is 0xFF. Has anyone had this same problem, or can anyone suggest what might be the issue. I have already spent two days trying to debug this. Thanks Arj Quote
gammaray Posted 1 hour ago Report Posted 1 hour ago (edited) On 3/16/2022 at 8:37 PM, QWERT said: We use the MPSSE.dll LABview driver from Benoit. We are trying the i2c read 1 byte and multi bytes. We expect ack for all bytes except the last byte with nak. During read, we understand that the I2C master drives the ack/nak. However, ack and nak happens randomly. Any body have any suggestions Thank you Dan There is an updated LibMPSSE library on FTDI's website. LibMPSSE-I2C Examples https://www.ftdichip.com/old2020/Support/SoftwareExamples/MPSSE/libMPSSE.zip If you replace the libMPSSE.dll in the project folder with the one from the following location it should work. It's possible that when you open the VI the run arrow will be broken. In this case you need to set the Library Name for the Call Library Function Node in each subVI. I've just tried it, and it works. Edited 1 hour ago by gammaray Quote
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.