[En-Nut-Discussion] ENC28J60

Doug Commons dougcommons at rogers.com
Wed May 24 21:09:45 CEST 2006


I have also built an ENC28J60 web server built on that other unamed uIP port
and have
just started monitoring the Ethernut mail list since I am interested in
porting my
hardware and software to the Ethernut operating system. Everything I have
read so far
still leaves me wondering exactly which drivers need to be re-written but
I've only just
looked at the code. I wouldn't mind seeing if there was a note or web site
that had
been written about porting hardware to Ethernut. Specifically I would like
to know which
of the various realtek and smc and eth* files are actually included to build
the *.hex file.
The configurator seems to include far more files than are actually need for
a particular
target. I'll figure it out, but any pointers would be appreciated.

My current code is based on the Microchip and Procyon work. My hardware
built on an Olimex two layer PCB currently runs at either 6.25MHz or an over
driven 12.5MHz (3.3V) clock but I intend to change that to a 16MHz (5V)
SPI2X clock. All this of course works because I have used the CLKOUT signal
from the ENC28J60 which results in a synchronous SPI clock so the errata
doesn't really matter.

As an observation, the ENC28J60 runs hot but I have yet to get a 1% 2.7K
resistor to
see what happens to the power.

I had some driver problems with the MAC being stuck in reset so I added
these lines of
code which microchip doesn't seem to use. Without them the MAC could not be
written on
my hardware.
	// Bank 2 initiallize
	// enable MAC receive
	WriteReg(WCR,MACON2, 0x00);// bring MAC out of reset
	WriteReg(WCR,MACON1, MACON1_MARXEN|MACON1_TXPAUS|MACON1_RXPAUS);

I am happy to make my work available but craeting a web sight with the data
is mot a
priority. I'd rather just ZIP the directory and send it.

						Doug





More information about the En-Nut-Discussion mailing list