Pages: [1]   Go Down
Author Topic: Read/Write MicroSD in 1-bit mode  (Read 739 times)
0 Members and 1 Guest are viewing this topic.
Georgia. US
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there a reason this can't be done or has no one tried it? I can't find a single instance of it being used. All SD shields require using SPI mode. I really don't get it. SPI mode is supposedly slower the one-bit or four-bit mode, and one-bit mode is the only mode required by SDA on microSD cards. The reason I ask is I am using the pins used for SPI for a audio output
Logged

0
Offline Offline
Edison Member
*
Karma: 67
Posts: 1656
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is no hardware support for SD 1-bit mode so only slow bit-bang would work.  In SD bus mode CRC is required and this is also slow on the Arduino.

You can use bit-bang SPI with the SD.h library and SdFat.

For SD.h edit Sd2Card.h to enable software SPI and define the pins to be used.

Most MicroSD cards support SPI.
Logged

Pages: [1]   Go Up
Jump to: