FTDI Community

General Category => Discussion - Hardware => Topic started by: yefj on February 08, 2021, 03:51:14 PM

Title: FTDI C232HD-DDHSP-0 MATLAB SPI
Post by: yefj on February 08, 2021, 03:51:14 PM
Hello,Is there a manual on how to use this cable FTDI C232HD-DDHSP-0 for SPI communication with matlab?
The more common is UART but there is no SPI
Thanks.
Title: Re: FTDI C232HD-DDHSP-0 MATLAB SPI
Post by: FTDI Community on February 10, 2021, 04:31:17 PM
Hello,

Unfortunately we don’t have any support for MATLAB.

However there may be other FTDI Community users who can help you.

As for SPI Master communication with FTDI C232HD-DDHSP-0 (contains FT232H) see the following information:

To use I2C/SPI, see AN_135 FTDI MPSSE Basics (https://ftdichip.com/wp-content/uploads/2020/08/AN_135_MPSSE_Basics.pdf) and our existing MPSSE Example projects:

https://ftdichip.com/software-examples/mpsse-projects/
 (https://ftdichip.com/software-examples/mpsse-projects/)
There are two options to use I2C/SPI modes with the MPSSE engine:

a.            Use LibMPSSE libraries. Example code is provided with the download.
b.            Use D2XX drivers direct. Example code is shown at I2C (https://ftdichip.com/software-examples/mpsse-projects/#usb-to-i2c-inteface) / SPI (https://ftdichip.com/software-examples/mpsse-projects/#usb-to-spi-interface). [urlhttp://www.ftdichip.com/Support/Documents/AppNotes/AN_108_Command_Processor_for_MPSSE_and_MCU_Host_Bus_Emulation_Modes.pdf]AN_108 Command Processor For MPSSE and MCU Host Bus Emulation Modes[/url] provides the necessary information.

Option b is the best option to use the D2XX drivers direct (no dependency on libMPSSE library).

Best Regards,
FTDI Community