SD.h library, SPI at 1/4 speed?

Greets,

is there a way to initialize the SD library with SPI set at 1/4 or 1/8 speed?

thanks!

naut: is there a way to initialize the SD library with SPI set at 1/4 or 1/8 speed?

Why? Is there another SPI device connected to your Arduino that requires a lower speed?

Yes there is. Plus the devices are connected to the MISO line through a 74hc125 tri-state buffer that seems not work properly at higher SPI speeds. i.e I was getting errors and/or weird characters, whereas when the MISO line from the SD card module was connected directly to Arduino MISO pin there were no errors.

I actually found a way to set it to 1/4:

card.init(SPI_QUARTER_SPEED, chipSelect)

Seems to work now.

p.s. I was using the http://arduino.cc/en/Tutorial/CardInfo sketch

Or you can change the speed when using the 74HC125, and change it back when finished. http://arduino.cc/en/Reference/SPISetClockDivider

edit: The 74HC125 should be ok at 5MHz.