Arduino DUE SPI

Hi !
At the moment I'm using the SPI 6 pins to write and read files into my micro SD card
For the chip select I'm using the pin 53 .All it's working but I woulk lie to know if it is possible to use other digital pins for MISO , MOSI and SCK signals instead of to use the 6 pins header ....
ciao
Walter

Yes, but how much work are you willing to do to achieve that?

  1. Any pin can be used for any function. The advantage of using the hardware SPI pins is that most of the work is done by the hardware. You can write code to turn the pins on and off in the correct pattern.
  2. Any of the USART modules can be used as an SPI, but the Arduino libraries don't support it so you will be writing your own code to turn Serial3 into a spare SPI.

my question was if there are any pins for example between pin 22 to pin 53 to use with hardware peripheral SPI ..... I'm using the SPI.h and SD.h to save configuration application and read it from file saved into the micro sd card .But I think it is better to use the 6 pin header hardware instead of to write the spi protocol ....
I wanted to understand if these pins are replaced in somewhere but I'm watching the arduino due pinout diagram and these pins are only .
I'm building an arduino due shield bt soldering myself , and these pins are not confortable to use , but anyway I must to use them

You are correct: the normal hardware SPI only appears on the 6-pin ISP header of the Due.

Hello walterp,

The 2x3 SPI male pin header is a standard for most of the big Arduino Boards (Uno, Leo, Yun, Mega, Due, Tre, Zero). I'd recommend you to keep it in your design in order to use/stack it with other Arduino boards. It's just a thought. Regards,

p

Ok, I was not going to do this, but since somebody conveniently made a new thread handily entitled DUE SPI, it was almost rude not to use it!! :stuck_out_tongue:

I have been 'dabling' with a Winbond 25Q128 SPI Flash ic which is capable of dual SPI and quad SPI modes. Since the hardware SPI is so easy to use and already established, would the benefit of the increased transfer speeds facilitated by the dual or quad modes be lost by a software handling routine?

Has anybody tried to implement these high speed modes?

Regards,

Graham

ok...I made an hole itno my shield board .
The library SD.h works well , I'm saving array of structs into a file by using a pointer to byte and then I read the data always with the pointer and everything it's ok ....good ! 8)