PICcoder.co.uk Forum  


::post new topic::
<< Start < Prev 1 2 3 4 5 6 7 8 9 Next > End >>
Building an ENC28J60 Ethernet Dev Board
Date: 2006/03/13 16:48 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
This thread discusses the Content article: Building an ENC28J60 Ethernet Dev Board

Hope you find this article useful and I haven't put in too many errors. If you have any questions feel free to ask them below.
reply | quote

Re:Building an ENC28J60 Ethernet Dev Board
Date: 2006/03/13 16:51 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graphgraph
Thanks Ian A Fantastic start!!! Very informative and should be easy to follow for anyone wishing to start developing an ethernet based device.
reply | quote

ENC28J60
Date: 2006/03/13 16:54 By: asmallri Status: User  
Karma: 2  
Posts: 5
graphgraph
A good first article. I have a few comments to the schematic.


  • R1 should be increased to 2.7K as per the current ENC28J60 errata.


  • C10 is missing the connection to ground.


  • The 25MHz crystal for the ENC28J60 could also be used to clock the PIC. Assuming the crystal is connected to the ENC28J60 then connect OSC2 of the ENC28J60 to the OSC1 of the PIC


  • The ENC28J60 is very power hungry, the regulator needs to be a TO220 or, if SMD, a DPAK size package.


  • I use a RJ45 with embedded magnetics (such as the YCL PTC1111-01) instead of a separate isolation transformer. This enables a smaller PCB footprint. There are alternatives with embedded LEDs for an even smaller footprint.


  • For a general purpose test board I would propose adding a SD card connector as the interface to the PIC is trivial.


reply | quote

Re:ENC28J60
Date: 2006/03/13 16:54 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
Thanks for the comments.

My errata document was out of date. I have updated the schematic and the article taking into account the new errata document.

I like the idea of using the one crystal to drive both the PIC and ENC. I had thought of using the clock out from the ENC, but avoided it for now because of the issues if you put the PIC to sleep and to make the board easier to debug.

For my final board I also intend to use a RJ45 with integrate magnetics and LEDs. I just used the parts that came to hand for this version.
reply | quote

One more change to the stack...
Date: 2006/03/13 16:55 By: cledic Status: User  
Karma: 2  
Posts: 7
graphgraph
Thanks Ian; very good article.
I find, from a magazine, a software modification to the stack that works for me.

To improve Stack stability the article suggest to modify the SPI freq, changing the SSPCON1 reg. value from 0x20 to 0x21 for a clock of 20MHz.
reply | quote

Dynamic IP Address
Date: 2006/03/13 16:55 By: amane Status: Visitor  
Karma: 0  
Posts: 0
graphgraph
Hi Ian,
How did you get the IP Address assigned to the ENC by the DHCP Server? I'm new to this so I don't know much about networking protocols. Thanks..
reply | quote

DHCP
Date: 2006/03/13 16:56 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
When the ENC boots up it sends a BOOTP broadcast packet to find DHCP servers on the network. Then when it finds one it requests an IP address.

I have a DHCP server running on my PC which is connected directly the ENC. You can watch this exchange using a packet monitor such as ethereal.

The microchip stack includes a program called MCHPDetect which listens for annoucements from PICs when they get an IP address
reply | quote

Re:Building an ENC28J60 Ethernet Dev Board
Date: 2006/03/13 16:56 By: bily Status: Visitor  
 
Hi Matt,
Your site is wonderful, I am going to try it. Can
you explain why you added 16PT8515 ?
Thanks.
reply | quote

Wasn't me...
Date: 2006/03/13 16:57 By: mat Status: Visitor  
 
Hey, Sorry for the confusion, I editted the page today, Ian originally wrote this article (as anyone can upload them!!), in editing it I forgot to set the author back to him ! All being well he should be able to answer your question better than I can. So i'll leave it to him!!
Mat
reply | quote

16PT8515
Date: 2006/03/13 17:00 By: bily Status: Visitor  
 
Ok, it's the transformers in a package.
I can't find a dealer for it, i'll get the transformers
from maplin.co.uk- about 2 pounds each
reply | quote

Re:16PT8515
Date: 2006/03/13 17:01 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
You guessed correctly, the 16PT8515 is a magnetics chip with the transformers in. I used that one because it was on an old network card I had kicking round. Which transformers are you using (from maplins) would be useful to get a list of ones that work.
reply | quote

<< Start < Prev 1 2 3 4 5 6 7 8 9 Next > End >>
::post new topic::