FTDI Community

General Category => Discussion - Hardware => Topic started by: Arumugam on August 28, 2020, 03:59:08 PM

Title: FT4232H_I2C connection
Post by: Arumugam on August 28, 2020, 03:59:08 PM
Hi,
I could not find I2C application (schematics) with FT4232H datasheet.
Could you please review attached snapshot and let me know your comments.

1. I2C1 and I2C2 connection are OK ?
2. Can we use CD and DD bank pins general GPIO's ?

Thanks and Regards,
Arumugam.P
Title: Re: FT4232H_I2C connection
Post by: FTDI Community on September 01, 2020, 04:31:27 PM
Hello,

Please refer to AN_135 MPSSE Basics (https://www.ftdichip.com/Support/Documents/AppNotes/AN_135_MPSSE_Basics.pdf) which contains example circuits for I2C.
Please note that the I2C is a master only.

We also have Development Modules (https://www.ftdichip.com/Products/Modules/DevelopmentModules.htm) for test, evaluation and reference:

FT4232H Mini-Module (https://www.ftdichip.com/Products/Modules/DevelopmentModules.htm#FT4232H_Mini)
FT4232H-56 Mini-Module (https://www.ftdichip.com/Products/Modules/DevelopmentModules.htm#FT4232H-56_Mini)

Yes Port C and Port D could also be used for GPIO.
See the following application notes:

Bit Bang Modes for the FT232R and FT245R (https://www.ftdichip.com/Support/Documents/AppNotes/AN_232R-01_Bit_Bang_Mode_Available_For_FT232R_and_Ft245R.pdf)
AN_373 Bit-Bang Modes for the FT-X Series (https://www.ftdichip.com/Support/Documents/AppNotes/AN_373 Bit-Bang Modes for the FT-X Series.pdf)

Note that the bit bang/GPIO documents are not specifically for FT4232H but the same principles apply.

Best Regards,
FTDI Community
Title: Re: FT4232H_I2C connection
Post by: Arumugam on September 01, 2020, 04:41:27 PM
Hi,
Thanks for your support.
I have a query on the FT4232H bit bang mode.
I understand ports C and D can be configured as either UART or bit bang.
But if I want to use the bit band port as regular GPIO port,  what is required from software perspective? Can you share an example code?



Thanks and Regards,
Arumugam.P
Title: Re: FT4232H_I2C connection
Post by: cioma on September 03, 2020, 05:27:04 PM
Pinouts for FT232H, FT2232H, FT4232H MPSSE

Pin        JTAG  SPI   I2C
D0, output TCK   SCK   SCL
D1, output TDI   MOSI  SDAO
D2, input  TDO   MISO  SDAI
D3, output TMS   SS#   no connection
Title: Re: FT4232H_I2C connection
Post by: FTDI Community on September 04, 2020, 04:21:05 PM
Hello,

Example code of bit bang/GPIO is shown in the documents linked in the previous post.

Best Regards,
FTDI Community