View previous topic :: View next topic |
Author |
Message |
FBeauch
Joined: 17 Feb 2009 Posts: 2
|
TCP/IP stack questions with the ENC28J60. |
Posted: Tue Feb 17, 2009 1:01 pm |
|
|
Greetings, I am a student in electronic engineering.
I am trying to make a centralised access control system where an Ethernet LAN will connect automated doors to a server.
I am also doing a bit of research on Ethernet controlers themselves. So far i've run into the ENC28J60 which I have studied extensively. But I still have some questions.
My first question is, with microchip's TCP/IP Stack, what kind of transfer rate could I acheive with a PIC18LF2620. I am pretty certain it would be more than enough for most applications i'm thinking about, I'm simply asking out of curiosity.
My other question is that, how easy is it to add modules to the µC containing the stack code? I was thinking of making a module similar to the TCP example and simply use it as a reference for adding modules, then put my code into it.
Also, since I plan to use a lot of the µC's power for tasks such as real-time sensor monitoring, user interface via keypad and LCD as well as an encryption routine to send info to the server. How will the stack affect the responsiveness and performance of the program? Is it better to simply use another PiC for all the peripherals and use the PICLF2620 only for transmitting via the ENC26J60?
Any advice would be apreciated.
Thanks in advance. |
|
|
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
RE |
Posted: Wed Feb 18, 2009 5:22 am |
|
|
The modular approach, where several PICs are used to do different jobs is better, but this could be expensive as each module will have power supply unit, an interface for communication etc.
But with above approach you test each module individually..
thanks
aa |
|
|
eskimobob
Joined: 07 Feb 2009 Posts: 40
|
Re: TCP/IP stack questions with the ENC28J60. |
Posted: Wed Feb 18, 2009 1:01 pm |
|
|
FBeauch wrote: | My first question is, with microchip's TCP/IP Stack, what kind of transfer rate could I acheive with a PIC18LF2620. I am pretty certain it would be more than enough for most applications i'm thinking about, I'm simply asking out of curiosity. |
No idea
FBeauch wrote: | My other question is that, how easy is it to add modules to the µC containing the stack code? I was thinking of making a module similar to the TCP example and simply use it as a reference for adding modules, then put my code into it. |
Pretty simple to do what you say
FBeauch wrote: | Also, since I plan to use a lot of the µC's power for tasks such as real-time sensor monitoring, user interface via keypad and LCD as well as an encryption routine to send info to the server. How will the stack affect the responsiveness and performance of the program? Is it better to simply use another PiC for all the peripherals and use the PICLF2620 only for transmitting via the ENC26J60? |
Not sure about when using the ENC26J60 because I have only looked into the PIC18F67J60. With the PIC I mention, if you do it all on the PIC then you have to implement co-operative multi-tasking since the stack has to be serviced regularly. It seems to me that it would therefore be sensible to use two devices with a reliable comms link between them. |
|
|
FBeauch
Joined: 17 Feb 2009 Posts: 2
|
|
Posted: Wed Feb 18, 2009 2:42 pm |
|
|
What I decided to do is simply use another PiC for the peripherals and use a standard serial link between it and the "EtherPic". The Pic interfaced to the ENC28J60 will simply relay the characters that arrive from the serial and redirect them to a TCP socket.
As for power supply I needed a 5v supply for other devices such as an RFID card reader and an LCD so I would have needed a 3.3v and 5v power anyways. I will use a 5v supplied PIC and won't need to deal with logic level conversion between it and the peripherals. I will only have to deal with the 2 Serial lines between the 2 Pics.
Thanks again for answering. |
|
|
arunb
Joined: 08 Sep 2003 Posts: 492 Location: India
|
RE: |
Posted: Thu Feb 19, 2009 8:07 am |
|
|
One PIC is connected to the ENC28J60;works on 3.3 V voltage level, while the other PIC connected to the peripherals works on 5 V voltage level.
With the above setup, both PICs cannot communicate using serial interface as voltage levele are different..
Am I right here ??
thanks
arunb |
|
|
|