FTDI Community

General Category => Discussion - Drivers => Topic started by: mikewu99 on October 03, 2019, 01:49:42 AM

Title: Data collisions with dual channel device
Post by: mikewu99 on October 03, 2019, 01:49:42 AM
Chip: FT2232H
Configuration: Channel A is SPI interface (MPSSE); Channel B is asynchronous FIFO
Driver Version: 2.12.28.0
Software: Microsoft C# using FTD2XX_NET Managed Wrapper version 1.1.0
OS: Win10

The main thread of my program uses channel B (asynchronous FIFO). There is an asynchronous polling loop which periodically reads the GPIO of channel A (every 5 msec or so). I believe that I am getting occasional collisions between read/write operations on channel B and read/write operation on channel A, resulting in corrupted data. I was hoping that the FTDI driver would automatically sort out such overlapping requests, but that seems to not be the case. Is there some setting that I am missing? Or is there some way for me to determine if channel A is busy so I can hold off on the channel B access (or vice-versa)?