General Category > Discussion - Software
FT2232H
(1/1)
kiran:
Hi,
Iam using FT2232h module in MPSSE mode for I2c and how the remaining 4 pins(ADBUS4-ADBUS7) works,iam using libmpsse library
FTDI Community:
Hello,
When using LibMPSSE, GPIOL[0:3] can only be used as SPI chip selects.
When using LibMPSSE, there is no way to control GPIOL[0:3] as GPIO.
LibMPSSE demonstrates controlling the higher line bytes (GPIOH) while using SPI on the lower line bytes using the following functions:
FT_WriteGPIO
FT_ReadGPIO
If you want to control some of the unused lower line bytes on the same ADBUS as SPI then see AN_411 FTx232H MPSSE I2C Master Example in C which demonstrates GPIO usage with MPSSE using D2xx direct (not using LibMPSSE).
This could be used as a base to understand using both I2C/GPIO in the same code.
Best Regards,
FTDI Community
Navigation
[0] Message Index
Go to full version