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 code

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



Joined: 29 Aug 2008
Posts: 1
Location: Ch

View user's profile Send private message

RS485 code
PostPosted: Fri Aug 29, 2008 3:49 am     Reply with quote

Hi

I need sample code for RS485.


please help me
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri Aug 29, 2008 4:00 am     Reply with quote

Hello,

it uses standard RS232 function with an ENABLE=pin pin option to drive the transceiver (75176 or similar) output enable. A convenient option is to use the transmitter enable also as receiver disable (with a pullup resistor at the procssor RxD pin) to supress reception of your own TX data.

The peers are required not to send simultaneously, this has to be achieved by the protocol. If you use e. g. MODBUS, it is guaranteed by the respective driver.

Regards,
Frank
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Fri Aug 29, 2008 8:01 am     Reply with quote

C:\Program Files\PICC\Drivers\RS485.C
C:\Program Files\PICC\Examples\ex_rs485.c
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