Categories

Bit-bang FTDI USB-to-serial converters to drive SPI devices

Posted on Wednesday, June 13th, 2018 in how-to, techniques by DP

DSC_0023

Scott W Harden writes , “The FT232 USB-to-serial converter is one of the most commonly-used methods of adding USB functionality to small projects, but recently I found that these chips are capable of sending more than just serial signals. With some creative programming, individual output pins can be big-banged to emulate a clock, data, and chip select line to control SPI devices.
This post shares some of the techniques I use to bit-bang SPI with FTDI devices, and some of perks (and quirks) of using FTDI chips to bit-bang data from a USB port. ”

See the full post on Scott Harden’s blog .

Check out the video after the break

 

This entry was posted on Wednesday, June 13th, 2018 at 12:42 pm and is filed under how-to, techniques. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

3 Responses to “Bit-bang FTDI USB-to-serial converters to drive SPI devices”

  1. Kevin says:

    A bit sad that you are using a knock off Saleae device unless you are not using Saleae software.

  2. imqqmi says:

    Also interesting to note that arduino’s use the DTR signal to reset the device. I found this out because repetier was able to do this with a marlin firmware on Arduino 2560. Not all usb to serial chips have this signal as an output pin though. I wanted to send gcode through my own program in c#.

  3. Ralph Doncaster says:

    While it is a thorough description, bitbang serial programming is nothing new.
    http://nerdralph.blogspot.com/2014/05/pl-2303hx-bit-bang-avr-programmer.html
    For those who don’t want to modify a pl2303hx, CP2102 adapters with pins/pads for DTR, RTS, etc. can be foumd for $1 on Aliexpress. FTDI is way overpriced in comparison.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • readybrek: Anyone got a any recommendations for a budget-priced hot air station?
  • William: lol I'm happy to waste 3c for each program/debug cycle... but probably not the time spent soldering a new device down to a proto board!...
  • Joe Desbonnet: Ya, I can recommend the low melting point solder. I used brand 'ChipQuik' and it's amazingly easy to use.
  • Jerome: I need a new BusPirate for the Fablab ;) Many thanks!
  • Max: Seems like an unexpectedly violent way to remove the chip indeed. A hot air station should of course do the job just fine, but in...