Jump to content

using FTDI2232 converter in LabVIEW


kazek

Recommended Posts

Hi,

Im trying to use FTDI2232 as a USB<->SPI converter. There is only USB<->RS232 example on the FTDI website.

I saw this example and I understand, how to use LabVIEW to use FTDI2232 to USB/RS232 conversion. For me the problem is how to make USB<->SPI conversion. Because SPI is a synchronous transmission, it involves MPSSE processor – for me it is the point, where problem starts. For synchronous interfaces, like SPI, additional commands are required. I have downloaded AN2232C-01_MPSSE_Cmnd.pdf document, but I could not cope with this yet. So I would like to ask you for a LabVIEW example, but for SPI. I have to mention, that I saw also examples for USB<->SPI conversion in C++, but I would like to treat them as my sheet anchor. Does anyone possess simple write/read example (loopback) ?

Any guidance would be appreciated.

Thank you

kazek

Link to comment

Hi,

The FTDI devices and drivers are very good. I've never had them crash and they always do what you want. Actually very few driver releases have been around at all, which is a good sign.

I have programmed SPI (amongst other protocols) but I choose not to use MPSSE. It is not necesary, you can only use it to compact your data a bit. Much easier is to use bit bang mode. Create a pattern with your input data, write that, then read the same amount of data back, and decode the output data.

Joris

Link to comment

robijn, thanks for your advice, but it seems, that I have no choice. I have to use SPI, because I use evaluation board. You have written, that you have programmed SPI. Did you do this in LabVIEW ? Could you give me an example ? I will be very thankful.

Regards,

kazek

Link to comment
  • 1 year later...

robijn, thanks for your advice, but it seems, that I have no choice. I have to use SPI, because I use evaluation board. You have written, that you have programmed SPI. Did you do this in LabVIEW ? Could you give me an example ? I will be very thankful.

Regards,

kazek

I have the same problem that the guy above!

Does anyone had some sort of experience of SPI tranmission using Labview On FTDI chips?

Edited by leonardovieira
  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.