Difference between revisions of "Hammer How to Enc28j60"
KenMcGuire (talk | contribs) |
|||
Line 93: | Line 93: | ||
The MMC interface uses SPI1. The current [[UBE]] driver may need to be re-configured if you are | 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. | going to use anything but the Hammer Carrier. | ||
+ | |||
+ | |||
+ | [[category:TCT-Hammer]] | ||
+ | [[Category:TinCanTools]] |
Revision as of 16:46, 12 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 | 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 |
Also make sure that your 5V main power supply can supply the Hammer as well as the ENC28J60-H.
Software driver info:
The Good Kernel SPI API The Bad The 2.4 driver The Ugly The current 2.6 "driver" enc28j60.c.diff enc28j60.h.diff Kconfig.diff Makefile.diff
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.