Go Down

Topic: Arduino Due SPI  (Read 1 time) previous topic - next topic

chutki

May 23, 2017, 05:16 pm Last Edit: May 23, 2017, 05:24 pm by chutki
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


ard_newbie


See pinout diagram from Greynomad. PA25, PA27, PA26 are the SPI pins.

chutki

so we should use the SPI instead of the ICSP ?

ard_newbie


Use ONLY SPI pins for SPI !

chutki

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?

ard_newbie


Go Up