Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC18F4550, ENC28J60, Proteus toward embedded web server

Status
Not open for further replies.

kievari

Member level 2
Member level 2
Joined
Mar 14, 2010
Messages
51
Helped
0
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,740
Hi all!

I have ENC28J60 and want to implement an embedded web server with a PIC and all of this for the first time.

I'd like to first simulate the idea. I played with the Ethernet sample project provided in Proteus, but it is based on RTL8019AS. I'm not an electronic engineer so with my limited knowledge I always have to start from someones project and for ENC28J60 I chose this project:
https://www.instructables.com/id/A-...table-co/step1/Here-is-the-Schematic-Diagram/

which is based on Atmega168-P as you can see from its schema that I attached, but I am going to just replace my PIC with Atmega168-P there and do the needed adjustments.

First I thought to ask in the forum, if this strategy is ok? Would it theoretically work if I just replace the MCU in the schema and put a PIC instead?

Another question is on the general steps I have to take:
1. must compile TCP stack of Microchip for the PIC18 of choice
2. select the hex file in Proteus on the PIC in the simulation model
3. run the simulation

Is that correct? I suppose I should not program the ENC28J60 right?
 

It has been a lot since you ask this question but i want to suggest you to take a look at proteus new simulation example with enc28j60. It is brilliant.

Another question is on the general steps I have to take:
1. must compile TCP stack of Microchip for the PIC18 of choice
2. select the hex file in Proteus on the PIC in the simulation model
3. run the simulation

These are completely true steps. enc is a kind of ethernet card so do not programmed it. If you do something about your project, post here and we will talk about it.
 

Hi omerzora!
Thank you, I was nearly getting disappointed to get some help here :(

Well, could you please tell me, how this enc29j60, will ask my DHCP on my notebook where I run proteus, for an ip? Is it done automatically, or I have to program something for it?

I mean, the steps is simply to put component as the example of proteus (like, a pic and this enc28j60, and other needed parts) and just after running, enc28j60 will obtain an ip from my DHCP on notebook automatically?!
 

Well, could you please tell me, how this enc29j60, will ask my DHCP on my notebook where I run proteus, for an ip? Is it done automatically, or I have to program something for it?

Your pic is doing all ethernet stuff like DHCP, IP, UDP, TCP (They are network layers which are described better in microchip document named AN1120) ENC is a tool that is need to arrange these stuff. An example is here. An ethernet packet is come to ENC register. ENC is produce an interrupt to pic and pic (you) is reading that packet.

However, these network layers and packets are very complicated. There are lots of datas need to be read or be written to ENC. So, TCP-IP Stack is playing a huge role here. TCP-IP Stack is nothing but source codes which simplifies all packets of layers. Microchip TCP-IP Stack is free and been described in microchip document AN833.

Proteus has a simulation of ENC28j60 perfectly. (However i cannot set to work it unfortunetly)

If you want a quick start, i suggest you to look proteus Explorer16 ethernet board simulation. If you good at software, you can change the c codes of this simulation and make your own code (or made your own board with proteus)

When i finish it, i will post it here
 
Your pic is doing all ethernet stuff like DHCP, IP, UDP, TCP (They are network layers which are described better in microchip document named AN1120) ENC is a tool that is need to arrange these stuff. An example is here. An ethernet packet is come to ENC register. ENC is produce an interrupt to pic and pic (you) is reading that packet.

However, these network layers and packets are very complicated. There are lots of datas need to be read or be written to ENC. So, TCP-IP Stack is playing a huge role here. TCP-IP Stack is nothing but source codes which simplifies all packets of layers. Microchip TCP-IP Stack is free and been described in microchip document AN833.

Proteus has a simulation of ENC28j60 perfectly. (However i cannot set to work it unfortunetly)

If you want a quick start, i suggest you to look proteus Explorer16 ethernet board simulation. If you good at software, you can change the c codes of this simulation and make your own code (or made your own board with proteus)

When i finish it, i will post it here

Hi broda, are u done with the code, cos guys like us need it.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top