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 support@ccsinfo.com

Relays through ethernet

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



Joined: 30 Sep 2011
Posts: 11

View user's profile Send private message

Relays through ethernet
PostPosted: Wed Dec 07, 2011 3:15 pm     Reply with quote

Hi !!!

I have searched the forum and have not found an example on how to make communication over ethernet. I only have to switch on a Relay when I send a signal over the network.

Something like this:
Code:

if (network_signal == ON){
output_high(PIN_A0);
}else {
output_low(PIN_A0);
}


How can I make a Network listener with a static IP?
temtronic



Joined: 01 Jul 2010
Posts: 9162
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Dec 07, 2011 4:15 pm     Reply with quote

Well, you'ld have to tell us which PIC and what ethernet interface you're using for a start...

Then again, for $50 ,you could buy one of CCS's EZWebLynx modules and be 'up and running' in an hour

I doubt you can build one for that price!
churrinfunflais



Joined: 30 Sep 2011
Posts: 11

View user's profile Send private message

PostPosted: Wed Dec 07, 2011 4:57 pm     Reply with quote

I have a 18f4550 a 18f46j11 and 18f14k50 i can use any of these pics and for module i have a ENC28J60 in a module.



What do you recommend???
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Dec 08, 2011 6:51 am     Reply with quote

churrinfunflais wrote:
I have a 18f4550 a 18f46j11 and 18f14k50 i can use any of these pics and for module i have a ENC28J60 in a module.



What do you recommend???


IP stack applications are large both in terms of program memory requirements and RAM.

If you must use one of these three PICs, then realistically, only the PIC18F46J11 is viable.

In the PIC18F family the PICs for best general purpose Ethernet (TCP/IP) applications are PICs with large amounts of program memory. In order of preference, 128K, 96K, 64K (if desperate). From a RAM perspective, do not waste time with a PIC less than 3800 bytes.

If you are not tied to the PIC18F family then the PIC24/dsPIC33 is a much better platform.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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