I am trying to config microSD module with my arduino DUE. Please find the attachment for the module i am using. I am not able to comprehend the SPI system of Arduino DUE. I read that ICSP pins are used. But it is not working for me with SD and sdfat library. A good explanation with illustration will be great help. Thanks:)
The illustration you need is one of the pinned topics at the top of this sub-forum. "Due Pinout Diagram".
On the Uno, the SPI pins are hardwired to both the ICSP header and the 11-12-13 digital pins. The Due has a lot more pins so it isn't wired the same way. The SPI pins are only available on the ICSP header.
Two things to be aware of:
The 5v line in the ICSP header is an historical artifact. Don't use that to power your SD card or any other SPI device which talks to the Due. That could put 5v on the Due input pins which will destroy them.
You will still need a CS (card-select) line, chosen from any of the other digital outputs on the Due.
I believe I had gotten a bad socket on the breakout board I purchased. The CS pin is connected to where the socket meets the board but there is a break in this connection between this point and the sd card! (it took a narrow probe and steady hand to find this)
Using a soldered up micro sd card adapter things work fine as expected.