1
Discussion - Software / Issues using FT260 to communicate over I2C
« on: April 27, 2022, 03:13:40 PM »
Hi everyone,
I'm currently trying to use an FT260S as a USB-I2C master to communicate with a couple of slaves. I'm trying to write the program in C# using the LibFT260 library and I'm using the AN438 code as an example but when the code tries to init and get the status I get errors.
Initialising the master gives an INCORRECT_CHIP_MODE
Getting the status gives an IO_ERROR - It returns 0 which I believe is busy?
Opening the device by VID is fine and when I call GetChipVersion(), I get "39846400" which looks like a valid version number.
Question 1 - Are these error codes documented anywhere?
Question 2 - What am I doing wrong? Is the chip wired up incorrectly? I have pull up resistors on the pins required for I2C comms is there anything else?
Thanks in advance
I'm currently trying to use an FT260S as a USB-I2C master to communicate with a couple of slaves. I'm trying to write the program in C# using the LibFT260 library and I'm using the AN438 code as an example but when the code tries to init and get the status I get errors.
Initialising the master gives an INCORRECT_CHIP_MODE
Getting the status gives an IO_ERROR - It returns 0 which I believe is busy?
Opening the device by VID is fine and when I call GetChipVersion(), I get "39846400" which looks like a valid version number.
Question 1 - Are these error codes documented anywhere?
Question 2 - What am I doing wrong? Is the chip wired up incorrectly? I have pull up resistors on the pins required for I2C comms is there anything else?
Thanks in advance