Difference between revisions of "Hammer How to Enc28j60"

From eLinux.org
Jump to: navigation, search
Line 8: Line 8:
 
Next we will be soldering it on to the [[Hammer_Carrier]]
 
Next we will be soldering it on to the [[Hammer_Carrier]]
  
We will use the 3.3V regulator of the [[Hammier_Carrier]], but you already need to have
+
We will use the 3.3V regulator of the [[Hammer_Carrier]], but you already need to have
 
done the [[How_to_Swtching_5V_Regulator]]
 
done the [[How_to_Swtching_5V_Regulator]]
  
Line 20: Line 20:
 
! Hammer
 
! Hammer
 
|-  
 
|-  
|  
+
| SCK
 
| 1
 
| 1
 
| 7
 
| 7
 
|
 
|
 
|-
 
|-
|  
+
| MOSI
 
| 2
 
| 2
 
| 6
 
| 6
 
|
 
|
 
|-
 
|-
|  
+
| MISO
 
| 3
 
| 3
 
| 5
 
| 5
 
|
 
|
 
|-
 
|-
|  
+
| WOL
 
| 4
 
| 4
 
| N/C
 
| N/C
 
|
 
|
 
|-
 
|-
|  
+
| INT
 
| 5
 
| 5
 
| 8
 
| 8
 
|
 
|
 
|-
 
|-
|  
+
| CLKOUT
 
| 6
 
| 6
 
| N/C
 
| N/C
 
|
 
|
 
|-
 
|-
|  
+
| CS
 
| 7
 
| 7
 
| 11
 
| 11
 
|
 
|
 
|-
 
|-
|  
+
| RST
 
| 8
 
| 8
 
| 9
 
| 9
 
|
 
|
 
|-
 
|-
|  
+
| Ground
 
| 9
 
| 9
 
| GND
 
| GND
|
+
| Ground
 
|-
 
|-
|  
+
| Vdd
 
| 10
 
| 10
 
| TP9
 
| TP9
|
+
| +3.3V
 
|-
 
|-
 
|}
 
|}
  
enc -- hammer.  1 - 7, 2 - 6, 3 - 5, 4 - nc, 5 - 8, 6 - nc, 7 - 11, 8 - 9, 9 - gnd, 10 - tp9
 
  
 
Also make sure that your 5V main power supply can supply the Hammer as well as the ENC28J60-H.
 
Also make sure that your 5V main power supply can supply the Hammer as well as the ENC28J60-H.

Revision as of 07:18, 11 September 2007

First you have to get an Enc28j60, the following links may be usefull:

Next we will be soldering it on to the Hammer_Carrier

We will use the 3.3V regulator of the Hammer_Carrier, but you already need to have done the How_to_Swtching_5V_Regulator


Wire the Olimex Enc28j60 board to the Hammer_Carrier pins as follows:

ENC28J60 Pin Pin Hammer
SCK 1 7
MOSI 2 6
MISO 3 5
WOL 4 N/C
INT 5 8
CLKOUT 6 N/C
CS 7 11
RST 8 9
Ground 9 GND Ground
Vdd 10 TP9 +3.3V


Also make sure that your 5V main power supply can supply the Hammer as well as the ENC28J60-H.

Enc28j60.jpg

Enc28j60 wireing.jpg

Software driver info:

The Good  Kernel SPI API
  The Bad  &
    The Ugly  The current "driver"