FTDI Community

General Category => Discussion - Software => Topic started by: kiran on July 24, 2023, 01:43:47 PM

Title: FT2232H
Post by: kiran on July 24, 2023, 01:43:47 PM
Iam using FT2232 module ,how to use BCBUS and BDBUS pins used as GPIO pins and which mode is used to perform as gpio pins
Title: Re: FT2232H
Post by: FTDI Community on July 25, 2023, 04:34:45 PM
Hello,

You can use the MPSSE Engine to control those pins as GPIO.

See AN_108 Command Processor For MPSSE and MCU Host Bus Emulation Modes (https://ftdichip.com/wp-content/uploads/2020/08/AN_108_Command_Processor_for_MPSSE_and_MCU_Host_Bus_Emulation_Modes.pdf) for more details.

Alternatively you can use bit bang mode but you will be limited to 8 pins on the D bus and 4 pins on the ACBUS (9, 8, 6 and 5).
See the following documents for more information about bit bang mode:

AN232R-01 Bit Bang Modes for the FT232R and FT245R (https://ftdichip.com/wp-content/uploads/2020/08/AN_232R-01_Bit_Bang_Mode_Available_For_FT232R_and_Ft245R.pdf)
AN_373 Bit-Bang Modes for the FT-X Series (https://ftdichip.com/wp-content/uploads/2020/08/AN_373-Bit-Bang-Modes-for-the-FT-X-Series.pdf)

These are for a different products but same principles apply.

Best Regards,
FTDI Community