0

LPD8806 Software vs Hardware SPI
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

LPD8806 Software vs Hardware SPI

by philihp on Thu Dec 22, 2011 3:53 am

I just learned that if I use the hardware SPI on pins 11 and 13 with the LPD8806 strip, I can get faster write speeds.

How much faster are we talking? 1.2 times faster? 5 times faster? 20 times faster?
philihp
 
Posts: 4
Joined: Wed Dec 07, 2011 12:50 am

Re: LPD8806 Software vs Hardware SPI

by pburgess on Thu Dec 22, 2011 1:23 pm

Roughly 3- to 4-ish times faster; I haven't done any detailed benchmarks to nail down a more specific figure.

Keep in mind this is strictly the I/O time. If your sketch is doing other tasks (e.g. generating color data for the LEDs), that part of the code is going to occupy the same time regardless, so the overall speed difference when using hardware SPI will be somewhat less than the above figure.

pburgess
 
Posts: 4077
Joined: Sun Oct 26, 2008 2:29 am

Please be positive and constructive with your questions and comments.