Deepak Kapoor
Deepak Kapoor

Reputation: 35

Setting CBUS Bit Bang Mode in FT231x to use parallel pins as GPIO

I am using the FTDI chip FT231x for serial UART communication from my linux laptop to a micro-controller.

Besides that I want to use CBUS Bit Bang Mode to use the pin as GPIO pin.

I have tried the pylibftdi python library, but I am unable to get the listed devices. Even if I set the rules in udev and run with sudo too.

Can anyone help me how to interface the FT231x pin in CBUS Bit Bang Mode?
Or does there exist a library which I can use if that'd be easier?

Upvotes: 1

Views: 1468

Answers (1)

Deepak Kapoor
Deepak Kapoor

Reputation: 35

For cbus to work you need to set the ftdi to d2xx mode from the virtual mode. I used the software to convert it to d2xx mode as cbus only works in d2xx mode.

As python pylibftdi was not working I used ftd2xx library from the offical FTDI site to make it work. http://www.ftdichip.com/Drivers/D2XX.htm Here is the link to download the library based on your processor.

Upvotes: 0

Related Questions