Difference between revisions of "Hammer How to Enc28j60"

From eLinux.org
Jump to: navigation, search
 
(16 intermediate revisions by 5 users not shown)
Line 6: Line 6:
 
*[http://microcontrollershop.com/product_info.php?cPath=98&products_id=1390 uC Pro's]
 
*[http://microcontrollershop.com/product_info.php?cPath=98&products_id=1390 uC Pro's]
  
Next we will be soldering it on to the [[Hammer_Carrier]]
+
Next we will be soldering it on to the [[Hammer_Board_Carrier|Hammer Carrier]]
  
We will use the 3.3V regulator of the Hammier Carrrier, but you already need to have
+
We will use the 3.3V regulator of the [[Hammer_Board_Carrier|Hammer Carrier]], but you already need ** to have
done the [[How_to_Swtching_5V_Regulator]]
+
done the Hammer_How_to_Switching_5V_Regulator. (if it existed, that would be a link)
  
 +
\*\* Newer boards are supplied with a 5V wall wart capable of 1A (output drops to 4.8V) the onboard 3.3V regulator on the carrier is capable of about 500mA of its 800mA manuf rating because of heatsinking. THE 3.3V OUTPUT OF THE HAMMER IS ONLY RATED FOR 50mA!!!
  
Wire the ENC28J60 th the hammer carrier pins as follows:
+
Wire the Olimex [[Enc28j60]] board to the [[Hammer_Board_Carrier|Hammer Carrier]] pins as follows:
  
enc -- hammer.  1 - 7, 2 - 6, 3 - 5, 4 - nc, 5 - 8, 6 - nc, 7 - 11, 8 - 9, 9 - gnd, 10 - tp9
+
{| border="1" cellspacing="0" cellpadding="5" align="center"
 +
! ENC28J60
 +
! Pin
 +
! Pin
 +
! Hammer
 +
|-  
 +
| SCK
 +
| 1
 +
| 7
 +
| SPICLK0
 +
|-
 +
| MOSI
 +
| 2
 +
| 6
 +
| MOSI0
 +
|-
 +
| MISO
 +
| 3
 +
| 5
 +
| MISO0
 +
|-
 +
| WOL
 +
| 4
 +
| N/C
 +
|
 +
|-
 +
| INT
 +
| 5
 +
| 8
 +
| EINT10
 +
|-
 +
| CLKOUT
 +
| 6
 +
| N/C
 +
|
 +
|-
 +
| CS
 +
| 7
 +
| 11
 +
| GPH0
 +
|-
 +
| RST
 +
| 8
 +
| 9
 +
| nReset
 +
|-
 +
| Ground
 +
| 9
 +
| GND
 +
| Ground
 +
|-
 +
| Vdd
 +
| 10
 +
| TP9 *
 +
| +3.3V
 +
|-
 +
|}
 +
 
 +
\* WATCH VERSION, on newer board revs, this is NOT +3.3V!!!!
  
 
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.
  
 
[[Image:Enc28j60.jpg]]
 
[[Image:Enc28j60.jpg]]
 +
 +
I used a socket strip that keeps the board about 1/2 inch above the Hammer_Carrier prototype area. This may be important because the PIC chip on the ENC28j60 gets quite warm.
 +
  
 
[[Image:Enc28j60_wireing.jpg]]
 
[[Image:Enc28j60_wireing.jpg]]
Line 25: Line 87:
  
 
  The Good  Kernel SPI API
 
  The Good  Kernel SPI API
   The Bad  &
+
   The Bad  The 2.4 driver
     The Ugly  The current "driver"
+
     The Ugly  The current 2.6 "driver" included in the kernel patch at [[Hammer_Board_Software]]
 +
 
 +
The driver may either be compiled as a module, or as a part of the kernel.
 +
If you are running short on space for the kernel, it's probably advisable to compile it as module.
 +
 
 +
The SPI channel that is reserved for the ethernet on the Hammer Carrier board is SPI0.
 +
The MMC interface uses SPI1. The current [[UBE]] driver may need to be re-configured if you are
 +
going to use anything but the Hammer Carrier.
 +
 
 +
 
 +
[[category:TCT-Hammer]]
 +
[[Category:TinCanTools]]

Latest revision as of 09:25, 11 July 2010

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 Hammer_How_to_Switching_5V_Regulator. (if it existed, that would be a link)

\*\* Newer boards are supplied with a 5V wall wart capable of 1A (output drops to 4.8V) the onboard 3.3V regulator on the carrier is capable of about 500mA of its 800mA manuf rating because of heatsinking. THE 3.3V OUTPUT OF THE HAMMER IS ONLY RATED FOR 50mA!!!

Wire the Olimex Enc28j60 board to the Hammer Carrier pins as follows:

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

\* WATCH VERSION, on newer board revs, this is NOT +3.3V!!!!

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

Enc28j60.jpg

I used a socket strip that keeps the board about 1/2 inch above the Hammer_Carrier prototype area. This may be important because the PIC chip on the ENC28j60 gets quite warm.


Enc28j60 wireing.jpg

Software driver info:

The Good  Kernel SPI API
  The Bad  The 2.4 driver
    The Ugly  The current 2.6 "driver" included in the kernel patch at Hammer_Board_Software

The driver may either be compiled as a module, or as a part of the kernel. If you are running short on space for the kernel, it's probably advisable to compile it as module.

The SPI channel that is reserved for the ethernet on the Hammer Carrier board is SPI0. The MMC interface uses SPI1. The current UBE driver may need to be re-configured if you are going to use anything but the Hammer Carrier.