Jump to content

Recommended Posts

MPSSE SPI


For a personal project, I needed to communicate between my computer and a SPI device slave device. So, I use a FTDI chip FT232h.

I have adapted the library MPSSE I2C already available on this website to make it works for SPI.

Warning ! VI are not 100% tested (especially Read functions), I provided it as it is.


 

Share this post


Link to post
Share on other sites

Hi RomainP,

Thank you very much for these drivers. 
I am using them successfully with a FT232H (inside a UM232H module) and MPSSE-SPI running at 30Mbps to get familiar with the MPSSE operation via LabVIEW so I can communicate with PC via SPI slave device as you did.

I have a couple of questions I'm hoping you or someone can help with.

I am currently running a LV loop to write 50kbytes, then read 50kbytes to the SPI, at full speed...and this works... but it is half-duplex.

How would I go about implementing duplex..so I can have read & write simultaneously ? Is there a SPI read-write.vi ? Or could I perhaps write my own ?..if so could you make some suggestions...or is it not possible due to dll limitations ?

Secondly, are there some examples which show how to use the FT232H GPIO pins via LabVIEW whilst using your drivers ?

Regards,

tech1962

Share this post


Link to post
Share on other sites

Hello RomainP,

I really would like to thank you for your libraries. Would it be possible for you to downgrade your MPSSE SPI library in order to be used with Labview2014?

Beforehand, thank you for your response.

Regards!

Edited by lvfan2018
Typo

Share this post


Link to post
Share on other sites

Hello,

 

Could you, please, send me the example to work under Labview 2012

 

Regards;

 

Share this post


Link to post
Share on other sites

Hi,

I am attempting to use your vi.s to communicate to a adafruit BMP388 module via SPI. Thank you BTW! I seem to be getting hung up on reading from the data registers on the BMP388. I'm not sure if I need to implement the SPI write read function to do so. I've implemented it and still see no activity on MISO line? But unsure I'm using the functions properly?I believe I have the configuration data sent properly with SPI write. In theory i just need to read from the registers. It seems I would need to specify somewhere what registers I want read to get the data? Any guidance would be appreciated. Thanks Marty

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
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.


  • Similar Content

    • By venustas08
      I have a question.... The MPSSE I2C driver works great. But it does not have a Write-Read dll in it.
      Calling the WriteDevice and Read Device separately in LabVIEW is generating considerable delay ( ~1ms windows scheduler + labview ).
      is there a combined DLL for Write-Read.
      currently I am able to reach only about 400 samples per second with my ADC. I want to be able to use upto 10ksps.
      Is there any other way to reduce this delay ? 
      Thanks for the help.
       
       





    • By RomainP
      For a personal project, I needed to communicate between my computer and a SPI device slave device. So, I use a FTDI chip FT232h.
      I have adapted the library MPSSE I2C already available on this website to make it works for SPI.
      Warning ! VI are not 100% tested (especially Read functions), I provided it as it is.
    • By Joseph Gorse
      View File FTDI libMPSSE-SPI
      Initial release. It is hairy, but less so than the original import wizard.
      Submitter Joseph Gorse Submitted 01/25/2017 Category *Uncertified* LabVIEW Version  
×
×
  • Create New...

Important Information

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