03-20-2008 06:09 AM
"I've succeeded to write data over synchronous mode with labview interface.
I'm trying to use the MPSSE mode to communicate with SPI, but I don't understand the commands I have to send before sending data."
doesn't tell me very much!! ![]()
If you post the code that you have written so far and explain what you are trying to do in a bit more detail then i can help (perhaps spot a problem in your code). I need more information.
Best regards,
Phil
03-21-2008 03:57 AM

03-21-2008 09:55 AM
05-28-2008 04:01 PM
05-29-2008 03:33 AM
Hi brian,
before SPI_Read, you have to call SPI_InitDevice, this function enables the MPSSE mode required to communicate with SPI bus.
so it goes:
SPI_GetDeviceNameLocID - SPI_OpenEx - SPI_InitDevice - SPI_Read - SPI_Close
you can find help at http://www.ftdichip.com/Projects/MPSSE/FTCSPI.htm , there is some code examples.
can you tell us wich software you're using? maybe I can help you more then.
Adnane.
05-29-2008 09:40 AM
05-29-2008 12:05 PM
06-02-2008 06:59 PM
Hi Brian,
I've tried to investigate your question: "A question I have is why is there a minimum of 2 bits for the control stuff. I have a device that simply starts putting data on the wire when the CS is low and the clock is running. Is the writing of the control bits going to impact this?" I don't have access to the dll code, so I can't really look into it further. It sounds like a setup feature in the dll itself though.
You might want to direct your question to the FTDI Support in order to get the answer you want.
Regards,
Kevin Stuart
Applications Engineer
National Instruments
06-03-2008 10:55 AM
06-04-2008 02:09 PM
Hi Brian,
I can try to help you with the LabVIEW side of your project, but the specifics in communicating with the MPSSE processor on the FT2232 is a little bit out of my league. Perhaps someone who has read your posting can give you some more details on how to do this successfully.
Kevin S.
Applications Engineer
National Instruments