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

rs485.c help!!!

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








rs485.c help!!!
PostPosted: Mon May 10, 2004 5:01 am     Reply with quote

hello!!!

sorry for my english...
I have experience programming PICs but
i dont know how the rs-485 protocol works...

has somebody a simple example of use of the RS485.c library??
i need a simple example of main program...

I want to create a network with 2-10 pics to transmit sensor's data...
I need to send and to receive data from each module...

help!!
thanks...

Shocked
mvaraujo



Joined: 20 Feb 2004
Posts: 59
Location: Brazil

View user's profile Send private message

PostPosted: Mon May 10, 2004 7:05 am     Reply with quote

Guest,

The RS485 is not a protocol but a physical layer definition. It defines how to implement a multidrop serial network. The protocol itself is the second thing to think about and there are lots of options in the market. I would suggest you Modbus RTu because your sensors could be sold commercially as Modbus compliant devices for the market.

Marcus
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Mon May 10, 2004 8:26 am     Reply with quote

I recomend reading up on the MAX232 first. It's a level converter between logic and RS232. Then look at the MAX485. It's a level converter between logic and RS485. This should give you a good idea of how the hardware layer can be put togather. Forget you ever saw RS485.c

You can look in my web folder for examples and specfications for MODBUS.
Ttelmah
Guest







PostPosted: Mon May 10, 2004 10:34 am     Reply with quote

Neutone wrote:
I recomend reading up on the MAX232 first. It's a level converter between logic and RS232. Then look at the MAX485. It's a level converter between logic and RS485. This should give you a good idea of how the hardware layer can be put togather. Forget you ever saw RS485.c

You can look in my web folder for examples and specfications for MODBUS.

I think/hope you mean the MAX485...

Best Wishes
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