FTDI Community

General Category => Discussion - Software => Topic started by: logcat00 on August 14, 2023, 05:07:19 PM

Title: ft2232h spi 30Mhz
Post by: logcat00 on August 14, 2023, 05:07:19 PM
hi ~
May I ask if using the 0x13 command and 0x11 command can achieve an SPI speed of 30 MHz?
I have found that 3-line SPI (9-bit) cannot achieve 30 MHz. Is there a 9-bit command available?
see AN_108 Command Processor For MPSSE and MCU Host Bus Emulation Modes .
thank you so mcuh!!
Title: Re: ft2232h spi 30Mhz
Post by: FTDI Community on August 15, 2023, 04:16:01 PM
Hello,

According to LibMPSSE-SPI User Guide (https://ftdichip.com/wp-content/uploads/2020/08/AN_178_User-Guide-for-LibMPSSE-SPI-1.pdf) when using our MPSSE library it's possible to run at 30Mhz:

uint32 ClockRate
This parameter takes the value of the clock rate of the SPI bus in hertz. Valid range for ClockRate is 0 to 30MHz.

So you can maybe try with our library which has source code provided for reference.

These also may be useful to you:

AN_114 Interfacing FT2232H Hi-Speed Devices To SPI Bus (https://ftdichip.com/wp-content/uploads/2020/08/AN_114_FTDI_Hi_Speed_USB_To_SPI_Example.pdf)
AN_180 FT232H MPSSE Example – USB Current Meter using the SPI Interface (https://ftdichip.com/wp-content/uploads/2020/08/AN_180_FT232H-MPSSE-Example-USB-Current-Meter-using-the-SPI-interface.pdf)

Other software examples exist:

https://ftdichip.com/software-examples/mpsse-projects/#usb-to-spi-interface

Also please also note, SPI modes 1 and 3 are not supported with our MPSSE engine.
So please check that your SPI device doesn’t work with these modes.

We also have a support office in Taiwan.

Best Regards,
FTDI Community