Pages: [1]   Go Down
Author Topic: SPI conection on Due  (Read 631 times)
0 Members and 1 Guest are viewing this topic.
Brazil
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which are the pins I should use for SPI comunication with arduino DUE? please specify all four wires for SCLK, MOSI, MISO and CS. I´m currently trying to conect an ADXL345 accelerometer to arduino DUE unsuccessfully using

10 for CS,
11 for SDA,
12 SDO and
13 SCL

pins. This work perfectly in my Arduino Duemilanove, but I need the 3 SPI conections (4 10 and 52)  capability of Due.

Thanks
Logged

nr Bundaberg, Australia
Online Online
Tesla Member
***
Karma: 130
Posts: 8625
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Those signal names are not really SPI names, more a mix of I2C and SPI, are they from the ADXL345?

Anyway on the Due SPI is as follows

SCK - 76
MISO - 74
MOSI - 75
CS/SS - whatever pin you like. There are 2 dedicated slave select pins (D4/87 and D10/77) but I don't know if the SPI library uses them.

The pinout info is here

http://forum.arduino.cc/index.php?topic=132130.0

______
Rob
« Last Edit: July 15, 2013, 06:11:51 pm by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Brazil
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Rob

thanks for answerring, I´ll try those pins.
In the picture is the accel that I´m using, ADXL345, so you can see the names of the conections.

One last thing, shouldn´t been 3 dedicated spi pins D4, D10 and D52?

thanks alot.

Roberto


* 20130712_144142.jpg (1094.41 KB, 2560x1920 - viewed 24 times.)
Logged

nr Bundaberg, Australia
Online Online
Tesla Member
***
Karma: 130
Posts: 8625
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
and D52?
Yep. Missed that one.

Like I said though I'm not sure if the SPI lib uses them, I would assume not.

_____
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

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

May be this post http://forum.arduino.cc/index.php?topic=167068.0 can help you?
Logged

Pages: [1]   Go Up
Jump to: