Loading...
Pages: [1]   Go Down
Author Topic: Change Ethernet SPI Slave Select PIN.  (Read 245 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would like to know where I can change the slave select pin values for the ethernet shield and sd card in the libraries.

I would like to alternate pins than the defaults.

I know about keeping the NSS pin as output, 10/53..

Thanks smiley

Logged

Netherlands
Offline Offline
Tesla Member
***
Karma: 88
Posts: 9392
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

<WARANTY WARNING!>

you can bend the SS pins of the shield a bit and connect it to any other. By far the easiest way and if done carefully it can be undone too.

<WARANTY WARNING!>

Be sure the ethernet shield is the top shield smiley
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

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

I found where to change the sd card pin in 'Sd2PinMap.h'
uint8_t const SS_PIN = 53;

I can't seem to find where to change it in the ethernet library
Logged

Netherlands
Offline Offline
Tesla Member
***
Karma: 88
Posts: 9392
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


try - C:\Program Files (x86)\arduino-1.0\libraries\Ethernet\utility\w5100.h - [windows path] - at the end there is a hardcoded initSS() depending on the MCU.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Pages: [1]   Go Up
Print
 
Jump to: