Pages: [1]   Go Down
Author Topic: How to Connect a SD card to Arduino Due  (Read 4992 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone, I am new in arduino form.

I wanted to connect an SD card to  arduino DUE, However I do not know which pins to use to connect the SPI.
In the examples says to use pins 11-12-13 but I looked at the Arduino DUE schematic and on these pins I have not found the SPI !
The example is wrong or goes well and I really need to use the pins 11-12-13?

Perhaps the example does not use the internal SPI hardware of SAM3X, but it Generates the SPI only via software ?
Thanks to all
David
Logged

0
Offline Offline
Edison Member
*
Karma: 63
Posts: 1599
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You must connect SPI to the "SPI header"  http://arduino.cc/en/Main/ArduinoBoardDue.  This is the only access to SPI on Due.

Quote
SPI: SPI header (ICSP header on other Arduino boards)
These pins support SPI communication using the SPI library. The SPI pins are broken out on the central 6-pin header, which is physically compatible with the Uno, Leonardo and Mega2560. The SPI header can be used only to communicate with other SPI devices, not for programming the SAM3X with the In-Circuit-Serial-Programming technique. The SPI of the Due has also advanced features that can be used with the Extended SPI methods for Due.
Logged

Offline Offline
Jr. Member
**
Karma: 3
Posts: 63
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello
The answer is in the topic "SdFat for Due posted " :
 http://arduino.cc/forum/index.php/topic,135439.msg1018776.html#msg1018776

On reply #4 you have a link to a page with many explanation
On reply #15 I explain how I connect a Sparkfun SDshield to the Due
Good luck!
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks guys for your answers.
I thought it was so, but the examples were referring to the pins 11-12-13, and so I was confused.
Thank you very much
Davide
Logged

Pages: [1]   Go Up
Jump to: