Hi. I'd like to learn about Ethernet applications. I'm a rank-beginner to PICs, but would like to participate in the discussion.![]()
Hi. I'd like to learn about Ethernet applications. I'm a rank-beginner to PICs, but would like to participate in the discussion.![]()
This is a great tutorial for using Bascom-AVR code to drive the ENC28J60
http://members.home.nl/bzijlstra/sof...s/enc28j60.htm
Anyone have similar PICBASIC code?
I'm a beginner / noob so please excuse me ahead of time for being a goof.
I found this work done by Gabi MIHAILA ... it seem's to contain a good start to working in PICBASIC with the ENC28J60...
http://download.collem.nl/enc28j60.zip
The include file (the driver?) looks especially good as it seems to include everything to at least get us to an initialized setup.
I'm expecting to receive my ENC28J60's shortly.. i've also ordered some MAGJACK RJ45 jacks (they have integrated magnetics) and am hoping to have the initial circuit on my breadboard soon as I'm eager to get more farmiliarized with network capable microcontroller applications.
The main areas right now (before I've really done anything - but after a fair amount of reading) of concern are:
A) Clock source (PIC has seperate crystal? PIC is Clock from ENC28J60? how does this all effect SPI etc.)
B) 3.3v levels of the ENC28J60 and 5v PIC... Can I run at 3.3v all around or should i expect to be implementing some kind of level shifting? (not to many sources describe the particulars in this area.)
C) Debugging interface
Is there a more appropriate area to be posting all this?
Last edited by RYTECH; - 5th October 2007 at 04:52.
Have you seen the ongoing threads about programming the PIC18F67J60 (in essence a PIC married to the ENC28J60) in the PicBasicPro forum?
http://www.picbasic.co.uk/forum/show...ht=PIC18F67J60
http://www.picbasic.co.uk/forum/show...ht=PIC18F67J60
I have reveiwed that thread but when I looked up that part microchip didn't seem to offer a DIP version so I stuck to trying to get going with the ENC28J60.
My point was that you might find the PBP code for the 18F67J60 is transferable to the ENC28J60. I haven't really looked at it in depth but Fred has C code for both and has ported the 18F67J60 C code to PBP.
BTW, for anyone finding it hard to source the Magjack Fred used with both the Frame Thrower and Ethernet Mini, the Pulse JP011821U (Mouser 673-JP011821U) is equivalent.
Thanks for posting the other link, i'll check it out the other thread again. After solving early problems I had with the USB 18F4550 chip (breadboard,doh!) by moving my setup to a (very crappily built) PCB (under exposed-developed / over soldered). If the code for the "All in one" requires much modification I might have trouble - I'm not the most capable programmer (yet).
I'm sure I'll post any updates to keep other's informed... which is when i'll zap you with all my brainless self answering questions.
![]()
Bookmarks