CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

TCP/IP stack questions with the ENC28J60.

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
FBeauch



Joined: 17 Feb 2009
Posts: 2

View user's profile Send private message

TCP/IP stack questions with the ENC28J60.
PostPosted: Tue Feb 17, 2009 1:01 pm     Reply with quote

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

View user's profile Send private message Send e-mail

RE
PostPosted: Wed Feb 18, 2009 5:22 am     Reply with quote

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

View user's profile Send private message

Re: TCP/IP stack questions with the ENC28J60.
PostPosted: Wed Feb 18, 2009 1:01 pm     Reply with quote

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 Sad

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 Very Happy

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

View user's profile Send private message

PostPosted: Wed Feb 18, 2009 2:42 pm     Reply with quote

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

View user's profile Send private message Send e-mail

RE:
PostPosted: Thu Feb 19, 2009 8:07 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group