FTDI Community

General Category => Discussion - Software => Topic started by: itco00 on October 22, 2020, 03:38:30 PM

Title: How do I configure FT232H device for I2C interface using FT_PROG
Post by: itco00 on October 22, 2020, 03:38:30 PM
Hi,

I'm trying to program FT232H device to work above I2C bus. I connected Logic to the orange wire (SCL) and the yellow wire (SDA data out, currently the green wire is disconnected), but the clock signal is wrong.
I guess that my problem relate to the configuration of FT232H device.
Could someone advise me how to configure the Template to perform correct I2C transaction.

Thanks,
Itamar
Title: Re: How do I configure FT232H device for I2C interface using FT_PROG
Post by: FTDI Community on October 23, 2020, 04:43:57 PM
Hello,

To use I2C/SPI master with FT232H, see AN_135 FTDI MPSSE Basics (https://www.ftdichip.com/Support/Documents/AppNotes/AN_135_MPSSE_Basics.pdf) and our existing MPSSE Example projects:

http://www.ftdichip.com/Support/SoftwareExamples/MPSSE.htm (http://www.ftdichip.com/Support/SoftwareExamples/MPSSE.htm)

There are two options to use I2C/SPI modes with the MPSSE engine:

a.            Use LibMPSSE libraries. Example code is provided with the download.
b.            Use D2XX drivers direct. Example code is shown at I2C (https://www.ftdichip.com/Support/SoftwareExamples/MPSSE.htm#I2C) / SPI (https://www.ftdichip.com/Support/SoftwareExamples/MPSSE.htm#SPI). AN_108 Command Processor For MPSSE and MCU Host Bus Emulation Modes (http://www.ftdichip.com/Support/Documents/AppNotes/AN_108_Command_Processor_for_MPSSE_and_MCU_Host_Bus_Emulation_Modes.pdf) provides the necessary information.

Option b is the best option to use the D2XX drivers direct (no dependency on libMPSSE library).

Best Regards,
FTDI Community
Title: Re: How do I configure FT232H device for I2C interface using FT_PROG
Post by: itco00 on October 25, 2020, 08:01:27 AM
Hi,

Thanks for the quick reply.

I've downloaded the libMPSSE from the link below. I've run the executable (static and dynamic library) and it work fine now (I saw correct signals on the Logic).

But, I prefer using existing serial communication tool (such as Tera-Term or Docklight) over building software using Example/libraries.

Could you recommend me other FTDI USB COM Port - I2C cable which could be used with existing Serial communication tool?

Thanks,
Itamar
Title: Re: How do I configure FT232H device for I2C interface using FT_PROG
Post by: FTDI Community on October 27, 2020, 04:36:37 PM
Hello,

There are no serial communication tools available for this functionality that we are aware of.

The I2C interface must be controlled using software as mentioned in my previous post.

Best Regards,
FTDI Community