FT232 USB to Serial Converter chip development using D2XX library
In this article we will learn to use the D2XX library from FTDI to extend the functionalities of FT232 USB to Serial Converter chip.Most of the people in the embedded field are familiar about the easy to use USB to Serial converter chip FT232 which can easly add a USB Serial port to any microcontroller with an UART.With a little bit of code and a library (D2XX) from FTDI (makers of FT232) you can easily convert the humble chip into a USB to Parallel converter (8 and 4 bit),USB to RS485 Converter and off course USB to Serial Converter.
Even though this article is written as a companion guide to the USB2SERIAL Converter sold at this website, you can use any FT232 based USB to serial converter board to test the examples present in this article. The only requirement for your hardware module is that you should be able to identify the required pins of FT232 from your board and use it.
The user is expected to know C language as all the programs are written in it. It is also possible to use D2XX library from other languages like JAVA, Visual Basic, C# etc, their use is not covered in this tutorial. The FTDI website has the relevant information regarding the use of other programming languages.
Application Note AN_232R-01 for the FT232R and FT245R Bit Bang Modes from FTDI has excellent information about the various bit bang modes available in FT232.