Go Down

Topic: SD pin change? (Read 654 times) previous topic - next topic

Microhoo

Recently, I got SD card shield and have been playing around with it. It uses pins 10-13, and so does the library. I am planning on getting a different shield, and using it along side with it, but it uses pins 8-13.

So, here is my question: If I get an external SD card, and make it so the pins are connected to pins, say 4-7, would I be able to change the SD library to be able to read and write from the SD card?

Thank!

NickPyner


I believe all SD cards  use pins 11,12,13, being for MOSI,MISO and clock. I understand pin 10 must always be left as an output, even if it is not used by the SD.  Your description of your current shield implies that pin 10 is used and thus it is used to select the SD.

The first thing you need to do check the pins on the new shield. Is it 8,11,12, 13, or is it really 8 to 13? If the latter, what are pins 9 and 10 used for?  Pin 8 is very likely for select "CS". Have a look at the SD ReadWrite example in the IDE, I think it says it all. Note that CS therein is pin 4, which I believe is standard. It seems to me that all you need do is nominate the different CS pin.

Microhoo

Well, I checked the documentation on the site, and here is what I'm getting:

https://www.sparkfun.com/products/9363

And I know that I can change the pin of one of the SD's.

NickPyner

Not very pertinent to this subject!



https://www.sparkfun.com/products/9363


Go Up