ENC28J60 Ethernet Controller

Coding and general discussion relating to user created compiler modules

Moderators: David Barker, Jerry Messina

User avatar
Steven
BETA Tester
Posts: 406
Joined: Tue Oct 03, 2006 8:32 pm
Location: Cumbria, UK

ENC28J60 Ethernet Controller

Post by Steven » Tue Nov 14, 2006 10:46 pm

Dear All,

I have just ordered a ENC28J60 ethernet development board and am interested in writing a library for this. However, I have no experience of this and very little understanding of internet protocols, but would be interested to learn. I am also happy to pull together the ideas of others and turn it into a working library.

I wonder if anyone else could:

(i) recommend a good beginners guide to internet communication, and,
(ii) offer any help/advice in putting together a library for the ENC28J60.

I get the impression that this is not an easy task and that the Microchip code is substantial. It would be great if this could become a joint effort with several other interested people.

Kind regards,

Steven

User avatar
mister_e
Posts: 28
Joined: Fri Oct 06, 2006 2:02 pm
Location: Montréal, Canada
Contact:

Post by mister_e » Wed Nov 15, 2006 5:28 am

Funny circumstances...
Few days ago, i ordered EasyPIC4 with most of their plug-in adapter including this controller. I thought it would be handy one day :)

YES i want to help. I'm still waiting for Swordfish and EasyPIC4, but in meantime, i will try to find some more info here and there.

Wich board you buyed? Maybe i'll go crazy and buy the same too, so we could work with the same hardware.

... and NO it's not going to be as easy as it seems to :(

Certainely harder than Charron or Lantronix module so far...

TimB
Posts: 262
Joined: Wed Oct 04, 2006 7:25 am
Location: London UK

Post by TimB » Wed Nov 15, 2006 7:03 am

Hi Steve

Gabi has done this already and has produced some great code. He apparently did a comparison's test against Mchips own when he put it up against a company who sells boards for the job.

It was something like 3 x faster and took 4k as opposed to > 20k(I thing it was 56k). Any way he did say he would do a conversion for SF.

It was written in Proton so it will not be as compact but not that far short.

His copy of SF is winging his way to him now. If you still fancy doing it then I can get him to give you the links to his resources.

User avatar
Steven
BETA Tester
Posts: 406
Joined: Tue Oct 03, 2006 8:32 pm
Location: Cumbria, UK

Post by Steven » Wed Nov 15, 2006 7:11 am

Thanks both for your replies. Steve, it sounds like we have nearly the same hardware already - I have an EasyPic 3 and have just ordered ME's ethernet add on board. Tim, it's very good news about Gabi's work - do you know if he would be prepared to release his own version of the code? I will understand if he doesn't as it must be the result of a lot of work.

Could anyone recommend any reading for beginners on internet communication?

Many thanks,

Steven

User avatar
mister_e
Posts: 28
Joined: Fri Oct 06, 2006 2:02 pm
Location: Montréal, Canada
Contact:

Post by mister_e » Wed Nov 15, 2006 7:59 am

TimB wrote:If you still fancy doing it then I can get him to give you the links to his resources.
YES YES YES

Steven,
my first ressource is this link
http://www.amodio.biz/projects/PIC10BaseT/
Really basic, but something to start. There's also few links and utility over there too.

Maybe you can read few of those
http://www.pcsupportadvisor.com/c04100.htm
http://www.ssfnet.org/Exchange/tcp/tcpT ... Notes.html
http://nclab.kaist.ac.kr/kens/tutorial/KENS_TCP1.pdf
http://www.freeprogrammingresources.com/tcp.html
http://www.brushelectronics.com/index.php?page=software
http://compnetworking.about.com/od/netw ... 71200a.htm
http://www.freeprogrammingresources.com/udp.html
http://www.ragestorm.net/tutorial?id=12

Should be enough to keep you busy 20-30 minutes.. or so ;)
Last edited by mister_e on Wed Nov 15, 2006 8:03 am, edited 1 time in total.

TimB
Posts: 262
Joined: Wed Oct 04, 2006 7:25 am
Location: London UK

Post by TimB » Wed Nov 15, 2006 8:01 am

Hi Steve

Yes it took a long time, weeks! The Unix time code conversion I posted was a bit of side coding to read the an internet clock.

I did ask and he said he would be happy to, he also talked about releasing it for Proton. Les has seen the code and from what I understand was suitably impressed.

He did a FAT32 library for Proton for me but the project I needed it for was dropped so I'm hoping he will do a SF conversion as well but that's up to him.

User avatar
mister_e
Posts: 28
Joined: Fri Oct 06, 2006 2:02 pm
Location: Montréal, Canada
Contact:

Post by mister_e » Wed Nov 15, 2006 8:11 am

Great for the Proton's camp ;)

I have some knowledge of internet comm so i guess it will help.

I just can't wait to have Swordfish and all those new toys.

Next step.. those Ethernet PIC.

One step after the other ;)

OT but did you tried... This ?

TimB
Posts: 262
Joined: Wed Oct 04, 2006 7:25 am
Location: London UK

Post by TimB » Wed Nov 15, 2006 3:02 pm

Hi Steve

Yup its on my quick link in the IDE and btw used it already, very nice and very much appreciated by me. Can I place it on the Wiki please?

User avatar
mister_e
Posts: 28
Joined: Fri Oct 06, 2006 2:02 pm
Location: Montréal, Canada
Contact:

Post by mister_e » Wed Nov 15, 2006 3:08 pm

Thanks and yes you can! Go Go Go!

I'm so motivated to make Swordfish and Wiki better. As soon as i can, i will post my contributions too!

As i said there, one day i will add more feature in, and some auto-code stuff will be implemented for Swordfish too.

User avatar
Steven
BETA Tester
Posts: 406
Joined: Tue Oct 03, 2006 8:32 pm
Location: Cumbria, UK

Post by Steven » Wed Nov 15, 2006 6:23 pm

Thanks for the links, Steve - I've briefly looked at a few already, but will work through them all. I'll let you know when my development board arrives, then will get going.

Steven

User avatar
Steven
BETA Tester
Posts: 406
Joined: Tue Oct 03, 2006 8:32 pm
Location: Cumbria, UK

Post by Steven » Wed Nov 15, 2006 6:30 pm

Steve,

I've also just looked at the timer calculator - fantastic job. It should make these calcs a whole lot easier.

Many thanks,

Steven

User avatar
mister_e
Posts: 28
Joined: Fri Oct 06, 2006 2:02 pm
Location: Montréal, Canada
Contact:

Post by mister_e » Wed Nov 15, 2006 8:46 pm

Great and welcome!

As discussed with David, i'll create a link on my website, so the lastest version will always be available there... reducing the Wiki update job you know ;)

The calc is also nice for reverse engineering and to get the maximum accuracy of timers, PWM, USART and EUSART.

O.K i'll stay tuned.. i have few readings to do as well ;)

TimB
Posts: 262
Joined: Wed Oct 04, 2006 7:25 am
Location: London UK

Post by TimB » Wed Nov 15, 2006 10:04 pm

I have been talking to Gabi and he has sent some links

http://hubbard.engr.scu.edu/embedded/av ... index.html

That has some c code for the ENC28J60

and some more links

http://www.cs.berkeley.edu/%7Ekfall/EE1 ... sld001.htm
http://taosecurity.blogspot.com/2004/01 ... day-i.html

User avatar
mister_e
Posts: 28
Joined: Fri Oct 06, 2006 2:02 pm
Location: Montréal, Canada
Contact:

Post by mister_e » Thu Nov 16, 2006 3:09 am

Thanks Tim,
definately more stuff to chew on.

Say thanks to Gabi !

dman776
Posts: 115
Joined: Mon May 28, 2007 3:59 pm
Location: Texas

Post by dman776 » Fri Jul 06, 2007 5:49 pm

anyone making progress on an ENC28J60 library?

Post Reply