Pages: [1]   Go Down
Author Topic: SPI - Pin13 in conflict: LED vs. SCLK  (Read 797 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A thing I found playing with the SPI configuration is that SCLK(defined in the file pins_arduino.h) uses pin 13, but this is also the board's programmable LED pin... If I change SCLK pin to, say, 9 will it work?  I think not...

Regards!
« Last Edit: September 08, 2011, 07:16:05 am by CowBoy » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 613
Posts: 49270
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
If I change SCLK pin to, say, 9 will it work?
No. SPI is hard-wired to specific pins. 9 is not one of them.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13705
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
First definition was in line 20:
#define SPI_CLOCK_DIV64 0x02

Second definition in line 25:
#define SPI_CLOCK_DIV64 0x07

topic is discussed more often on the forum, there was some bug see - http://arduino.cc/forum/index.php/topic,46880.0.html -
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

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

Thank you all!

Anyway, loosing the programmable led isn't a good thing. Hope the next version of Arduino board will fix it. smiley-wink
« Last Edit: September 08, 2011, 07:22:02 am by CowBoy » Logged

Pages: [1]   Go Up
Jump to: