Pages: [1]   Go Down
Author Topic: Ethernet Board Pinout Confusion  (Read 466 times)
0 Members and 1 Guest are viewing this topic.
Near San Diego
Offline Offline
Jr. Member
**
Karma: 1
Posts: 69
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

In the reference for the Ethernet board it says: (http://arduino.cc/en/Main/ArduinoBoardEthernet)
Quote
NB: Pins 10, 11, 12 and 13 are reserved for interfacing with the Ethernet module and should not be used otherwise. ]

Then down the page a bit it says:

Quote
Each of the 14 digital pins on the Ethernet board can be used as an input or output ...

Which is correct?
Logged

UK
Offline Offline
God Member
*****
Karma: 17
Posts: 568
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's even more confusing as the answer is different depending on whether you'll connect the Ethernet Shield to an Uno or Mega.

So, on the Uno.....Pins 11, 12 & 13 are the SPI pins and so CAN be used with other SPI devices. Pin 10 is used for the Select line to select the Ethernet SPI. In fact the shield also has an SDCard socket which also uses SPI, with Pin 4 as it's Select line.

But..the newer shield doesn't connect directly to 11, 12 & 13, but by the 6 pin ICSP header. The reason for that is Mega compatibility...

On the Mega,SPI is on different pins, so the shield connectors wouldn't work. The ICSP header is present and connects to the Mega SPI pins.

The ICSP header is the common format but the connections are through to different pins on the Uno and Mega.

I think the Mega SPI is on something like 51, 52, 53. You need to remember this if interfacing other SPI devices on the Mega.

So...you can share the SPI pins. Each device using SPI just needs a unique Select pin so that the relevant can choose which device is active on SPI at any particular moment.
« Last Edit: December 17, 2012, 04:02:42 pm by tack » Logged

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It's even more confusing as the answer is different depending on whether you'll connect the Ethernet Shield to an Uno or Mega.
Becareful... this isn't the Ethernet Shield.  It is the "Ethernet Arduino."  It does not connect to a Uno or Mega.  Its Standalone.

Quote
Each of the 14 digital pins on the Ethernet board can be used as an input or output ...
Which is correct?
Technically they are both correct.  The generic I/O section was probably copied and pasted from the Uno board description.  If you aren't doing any Ethernet operations, you might be able to use pins 10,11,12, and 13.  However, it would be advisable not to since they are connected to something else on this particular board.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

Pages: [1]   Go Up
Jump to: