Dangerous Prototypes

Other projects => Past projects => Breakout boards => Topic started by: johna on July 11, 2012, 01:46:22 am

Title: Basic Usage Questions: FT2232 breakout board
Post by: johna on July 11, 2012, 01:46:22 am
Hello,

In my case I was thinking of embeding the FT2232 breakout board into my project once I verified the basics.  This project will be a one off device.  I have two serial devices I want to interface to USB.

I am thinking that with the one USB connector on the breakout board that the two serial interfaces are joined and the USB connector provides them multiplexed.  Not sure if this is done like a usb hub or through some other mechanism.  Any insight would be appreciated.

Also, any reason the USB pins can't also be exposed on a header?  This would aide in my case but I understand that what I want to do might be "abusing" the intended use.

Alternately I can just incorporate FTDI chip(s) directly as I think I don't need all the support circuitry this breakout provides.

Thanks,

John
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: arhi on July 11, 2012, 05:36:39 pm
the 2 serial ports are what ftdi chip exposes. The 2232h is a high speed usb2.0 device so there's 60MHz communication between chip and your computer, more then enough for 2 serial ports :D. 2232H has 2 cores so it will be seen on your PC as 2 devices. You can configure it for maximum high speed 245 mode where it utilizes only one channel to send 60MHz data stream.

Any USB device can publish as many "targets" as it wants and each "target" can be a separate usb entity (CDC, MASS STORAGE, Printer, video, audio ...)
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: arakis on July 11, 2012, 07:38:50 pm
what arhi said :)..
USB pins weren't broken out to keep the d+ and d- line clean, as this is a 480mhz device...they probably could have been since, motherboard use simple cabling and even simpler PCBs for the front panel ports...But I guess we just wanted to be safe, that the device works 100%...

as a work around you could cut-open a usb cable and have access to d+/d- lines, or even better, use our design files to simply add breakouts...and get pcbs manufactured cheaply trough seeed, or ittead
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: arhi on July 11, 2012, 08:26:12 pm
cases use shielded cables with precise impedance to avoid ringing .. it's not 2 wire flying around the case :D (it is in some el cheapo hung low cases but those broken out connectors don't run at high speed). If you look at brackets with usb that come with mid/hi end motherboards you will notice they have thick cable that's not that easy to bend .. I would not call that "simple"

If you break out pins for the usb and not follow strict rules it wont work at high speed (did that, had issues, it's enough to have ground cut one of the data lines for speed to be cut back)
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: johna on July 12, 2012, 01:01:15 am
Thanks all for the quick and detailed responses!
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: arakis on July 12, 2012, 08:32:00 am
[quote author="arhi"]cases use shielded cables with precise impedance to avoid ringing .. it's not 2 wire flying around the case :D (it is in some el cheapo hung low cases but those broken out connectors don't run at high speed). If you look at brackets with usb that come with mid/hi end motherboards you will notice they have thick cable that's not that easy to bend .. I would not call that "simple"

If you break out pins for the usb and not follow strict rules it wont work at high speed (did that, had issues, it's enough to have ground cut one of the data lines for speed to be cut back)[/quote]

I was talking about the el cheapo hung low cases :D
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: ejp62 on March 23, 2013, 01:56:03 pm
Hi Ahri,

Please excuse me if this is slightly off-topic,
but I have been searching around on the web to find any information
on how to set up an FTDI FT2232C so that it appears as an audio device to the PC
(or whatever is talking to it via usb.

Could you give me a pointer to how that can be done, or where I can find more info on this?

Many thanks!
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: arhi on March 23, 2013, 02:24:41 pm
[quote author="ejp62"]
on how to set up an FTDI FT2232C so that it appears as an audio device to the PC
(or whatever is talking to it via usb.
[/quote]

you don't. FTDI chips can use 2 types of drivers as explained on the ftdi site.
You can use VCP drivers and that will give you Virtual Com Port and you can use D2XX drivers that won't give you "anything" but will allow you to talk to chip directly. When you see your ftdi chip directly (so you can put it in any mode chip allows, single channel, dual channel, serial, parallel, ft245, i2c, spi... turn pins on/off..) then you can implement on the software side whatever driver you want that will use this D2XX driver. You can either create a system audio driver that will connect to your device or you can create some stand alone app that will directly talk to your device, in any way you have to do it trough D2XX. There is no "usb audio" protocol that FTDI understands.

so for example to have a 30MHz 16bit DAC, you send 30MHz 16 bit data directly to ft2232h via D2XX driver and on the 16 output pins + sync pin of the ft2232h you connect your r2r ladder and your amp.
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: arhi on March 23, 2013, 02:27:18 pm
i don't do winblows so don't ask me how to write a sound driver for winblows, especially with all the bs that came with vista, 7 and 8
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: ejp62 on March 23, 2013, 02:47:02 pm
Hi Arhi,

Many thanks for your quick reply! I avoid using Win#@$ also, so that´s fully undrstood.
I had hoped that an FTDI device could be setup to show up as a generic audio device,
such that it would be recognized by all kinds of devices (media streamers and such)
as something that accepts an audio stream using a standard driver on the streamer side.
I guess that will not be possible!

EJ
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: arhi on March 24, 2013, 08:56:53 am
I'm not sure that generic audio device exist at all .. it's all about drivers, ftdi will present vid/pid that you configure in it, your os will call up the usb driver for that vid/pid and whatever that driver say it's the device - that's what it will be .. so if your driver decide to talk to user space trough /dev/dsp# or /dev/audio# it will be a sound device, if it talk trough /dev/hid# or /dev/tty* or ... you get the idea. the "generic" is just a compatible device with pre-existing driver in the os
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: neslekkim on January 28, 2014, 12:18:44 pm
Hijacking this thread a bit.

The ft2232 board is suppoesedly useful for jtag, but how to connect it to do jtag thingy ?, say for urJtag?
which pins are for jtag use on this board?
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: arhi on January 28, 2014, 07:27:13 pm
[quote author="neslekkim"]Hijacking this thread a bit.

The ft2232 board is suppoesedly useful for jtag, but how to connect it to do jtag thingy ?, say for urJtag?
which pins are for jtag use on this board?[/quote]

for e.g.: http://www.ethernut.de/pdf/turtelizer20c-schematic.pdf (http://www.ethernut.de/pdf/turtelizer20c-schematic.pdf)
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: neslekkim on January 28, 2014, 09:15:20 pm
damn, that was lot of parts involved, so I cannot just connect the ft2232 to an jtag port then?
Ok, lets hope that usb blaster/altera clone come fast.. (riglol memory dumping.. )
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: arhi on January 28, 2014, 09:22:38 pm
http://dangerousprototypes.com/docs/Bus_Blaster (http://dangerousprototypes.com/docs/Bus_Blaster) works with urjtag without problems :)
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: tayken on January 29, 2014, 12:31:31 am
Well, you can get rid of some parts:
- DN1 is used for USB protection. USB port is already on the board so no need.
- BDBUS and BCBUS are used for RS232, no need to connect them.
- Rest of the components remaining are buffers and pullups. Theoretically you can do without them if your output has the same voltage as the target. All VCC is connected to 5V in this schematic.
Not sure but it may work. There is the possibility of voltage mismatch and damaging the target but...
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: neslekkim on January 29, 2014, 07:07:35 am
aha, I was wondering about those ic4-9, my target is 3v3 so maybe it should go.
I know there are one 3v3 line on the target that needs some resistors , so maybe it would go ok then.
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: tayken on January 29, 2014, 07:39:34 am
Just checked out the schematic, VCCIOs are 3.3 V so no problem there. It may be better to put some 20-27 ohm resistors in between.
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: foy00 on September 16, 2014, 05:55:34 pm
good day! bought module (FT2232H breakout) prompt pinout it? and what pinouts to connect to the receiver mozhit help you?
Title: Re: Basic Usage Questions: FT2232 breakout board
Post by: foy00 on September 16, 2014, 06:06:05 pm
photo

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01662118768session_write_close ( )...(null):0
20.01702250360ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01702251136Database_MySQL->query( ).../DatabaseHandler.php:119
40.07152389872Database_MySQL->error( ).../Db-mysql.class.php:273