12-12-2017 04:17 PM
Hi,
I am using FT2232HL and MPSSE I2C Labview Driver to communicate with my Slave device.
I have successful read and write operation.
But I am having delays in the I2C Read ( I2C Write Cycle[slave add + reg add] + Repeat start on I2C Read Cycle [slave add+ '1']).
The I2C Write Cycle and I2C Read Cycle are separate library calls. every time these libraries are called, there is ~400 - 800 - 1ms delay.
Attached plots for reference. Any help highly appreciated.
Thanks
Ashwin
12-13-2017 07:05 AM
Any good API I have seen for I2C have a Write-Read command that you can use for this situation. Does the FT2232HL library have this in it?
12-13-2017 12:49 PM
Yes, It does have it. But they are separate library calls and are not packed into one.
since they are separate, this delay is being introduced.
The included .rar file is the set of API LabVIEW files for MPSSE-I2C for FTDI.
12-14-2017
06:57 AM
- last edited on
12-17-2024
02:05 PM
by
Content Cleaner
@Ash.Bad wrote:
Yes, It does have it.
No, it actually does not have the Write-Read in the library. It is not even an option in the DLL. If you only use this chip for I2C, it is garbage since the Write-Read is essential for a lot of parts out there that use registers.
If you want to keep at the chip level, I have had a little success just messing around with the NXP SC18IM700IPW. You talk to it using a TTL UART. The commands were simple to make and will support what you need here.
Another option would be to use NI's USB-8452 or USB-8451 I2C/SPI interface modules. The API is simple to use. Again, it also has a Write-Read method to support what you need here. Or I have also used the DIO lines on a VirtualBench to perform I2C communications. Again, NI provided a nice API.