Arduino Forum

Products => Arduino Due => Topic started by: chutki on May 23, 2017, 05:16 pm

Title: Arduino Due SPI
Post by: chutki on May 23, 2017, 05:16 pm
Hello all,

I have a sensor and I want to communicate it with the DUE through SPI. When I looked for the pins for SPI. There was two set of pins to be used. One is with the ICSP header adn other is the SPI header. I program the DUE through the programming port (usb).  I am really confused. I have attached the pic of the description.I guess the order of the pins are exactly the replica from the board so that I can just keep the board as per the figure and connect it. Which is the best way? ICSP connectio or SPI connection?

Thanks in advance

Title: Re: Arduino Due SPI
Post by: ard_newbie on May 23, 2017, 05:37 pm

See pinout diagram from Greynomad. PA25, PA27, PA26 are the SPI pins.
Title: Re: Arduino Due SPI
Post by: chutki on May 23, 2017, 05:39 pm
so we should use the SPI instead of the ICSP ?
Title: Re: Arduino Due SPI
Post by: ard_newbie on May 23, 2017, 06:00 pm

Use ONLY SPI pins for SPI !
Title: Re: Arduino Due SPI
Post by: chutki on May 24, 2017, 11:51 am
This link 
https://www.arduino.cc/en/reference/SPI under the heading connections led me to confusion. So the 4th pin can be used as CS?
Title: Re: Arduino Due SPI
Post by: ard_newbie on May 24, 2017, 02:04 pm

You might be interested by these 2 threads to dig into DUE SPI capabilities:


http://forum.arduino.cc/index.php?topic=254102.0 (http://forum.arduino.cc/index.php?topic=254102.0)

http://forum.arduino.cc/index.php?topic=197083.0 (http://forum.arduino.cc/index.php?topic=197083.0)