Pages: [1]   Go Down
Author Topic: SD pin change?  (Read 612 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Dee Why NSW
Offline Offline
Full Member
***
Karma: 5
Posts: 206
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Dee Why NSW
Offline Offline
Full Member
***
Karma: 5
Posts: 206
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not very pertinent to this subject!

Logged

Pages: [1]   Go Up
Jump to: