Dangerous Prototypes

Other projects => Past projects => Breakout boards => Topic started by: cosminnci on July 19, 2012, 09:26:24 am

Title: FT2232 output frequncy generator
Post by: cosminnci on July 19, 2012, 09:26:24 am
I have ft2232 breakout board and xc2c64a cpld breakout,
I don`t have a 7x5mm SMD oscillator for the cpld breakout.
I would need to generate a pulse from ft2232 as timer for the cpld

is this possible?

regards,
Cosmin
Title: Re: FT2232 output frequncy generator
Post by: arhi on July 19, 2012, 10:36:19 am
if you switch 2232h into 245 high speed mode (single channel) you will get 60MHz output on ftdi chip that you can feed into your cpld breakout ... not the best idea but ... use as short piece of wire as possible as at 60MHz it's going to be dirty as hell ...
Title: Re: FT2232 output frequncy generator
Post by: arakis on July 19, 2012, 10:41:24 am
If you are using the fastest mode of the ft2232 the 285 parallel synchronous... one of the pis outputs a 60mhz clk... Sorry didn't refresh the page before response :)
Title: Re: FT2232 output frequncy generator
Post by: cosminnci on July 19, 2012, 07:47:59 pm
I would like to give it a try
how can I switch in 245 high speed mode and what pin is the output on?

regards,
Cosmin
Title: Re: FT2232 output frequncy generator
Post by: arakis on July 19, 2012, 08:15:55 pm
nfortunatly I haven't played with the FT2232H yet, but I can link you the datasheet.

from it I discovered pin 32 is clock out or ACBUS5, it should be marked on the bottom side of the board.
http://www.ftdichip.com/Support/Documen ... T2232H.pdf (http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT2232H.pdf)

If an external EEPROM is fitted (93LC46/56/66) it can be programmed over USB using MPROG V3.4a or later. The EEPROM must be 16 bits wide and capable or working at a VCC supply of +3.0 to +3.6 volts.
Title: Re: FT2232 output frequncy generator
Post by: arhi on July 19, 2012, 08:16:32 pm
viewtopic.php?f=19&t=1495&hilit=+60mhz#p13798 (http://dangerousprototypes.com/forum/viewtopic.php?f=19&t=1495&hilit=+60mhz#p13798)

CLKOUT (AC5 pin) is where you get 60MHz

You set the chip into 245 mode using ftdi application FT_PROG from http://www.ftdichip.com/Support/Utilities.htm (http://www.ftdichip.com/Support/Utilities.htm)
Title: Re: FT2232 output frequncy generator
Post by: cosminnci on July 19, 2012, 09:36:08 pm
I have configured portA hardware and portB hardware as 245 FIFO
[attachment=0]

but after power cicle I still see 2  Usb serial ports
is this how it should be?
Title: Re: FT2232 output frequncy generator
Post by: arhi on July 20, 2012, 01:11:05 pm
you want to disable port B if you want to use 60MHz 245
Title: Re: FT2232 output frequncy generator
Post by: cosminnci on July 20, 2012, 01:34:14 pm
I can`t see where to disable port b

A software command (Set Bit Mode option) is then sent by the application to the FTDI driver to tell the chip to enter single channel synchronous FIFO mode.

how can I send the Set Bit Mode to the Ftdi chip?

regards,
Cosmin