USB to SPI converter

18,936

The "FTDI" chip that they use sparkfun product above is typically the easiest way to go.

There is a publicly available "libftdi" (maybe two of them?) that let you talk to the chip via USB. This chip provides a very simple USB-to-GPIO type functionality, and is used to make USB-to-JTAG, Serial, Parallel, CAN, SPI, etc devices.

The FTDI device doesn't require any "programming" - I think you punch a configuration block into it to describe how you want the pins do work, and that's it.

The other alternative is to do what the robotshop product you mentioned does. Use a USB-based PIC controller. This requires you to program the controller, and write your own device driver for your device. Neither of which are very hard, and could offer you more flexibility but a bit more work. Microchip has many PIC variants with built-in USB controllers, and they all have many GPIO lines for you to program into any kind of SPI interface you would want to.

Share:
18,936
umps
Author by

umps

My name is Kay Kurokawa. I am a software engineer with a wide experience in various computing related disciplines.

Updated on August 21, 2022

Comments

  • umps
    umps over 1 year

    I have a chip that uses SPI for communication and would like to connect it directly to the USB port on my computer. Does anyone have experience with using a USB to SPI converter? Any recommendations? Quick searches on the web revealed

    http://www.robotshop.com/devantec-usb-i2c-spi-serial-interface.html

    http://www.sparkfun.com/products/9235

  • MadLabMatLab
    MadLabMatLab almost 11 years
    I have the SPI Shortcut and it does not appear to support a simple "passthrough" mode in which data written to the virtual com port are simply passed out/along. It has a terminal/console program running which appears to be designed for testing equipment but I do not know if this can be easily used/controlled in a production environment since sending data needs to be prefixed by selected 'menu options' in their terminal program.
  • TCB13
    TCB13 about 2 years
    What about a way to expose the SPI interfaces of a FT4232H in a x86 computer like we have in ARM SoC at /dev/spi? I guess this is what the OP was looking for.