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

#use RS232 with enable for RS485, what is the problem???

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







#use RS232 with enable for RS485, what is the problem???
PostPosted: Fri Dec 05, 2008 8:36 am     Reply with quote

When I use enable pin with #use RS232 for transmit data,I can transmit data;

#use RS232 (baud=9600, xmit=pin_C6, rcv=pin_C7,enable=pin_C5,parity=N,bits=8, STREAM=RS485)

but I can not receive data
---*----
Then When I dont use enable pin with #use RS232 for transmit data,I can not transmit data;

#use RS232 (baud=9600, xmit=pin_C6, rcv=pin_C7,enable=pin_C5,parity=N,bits=8, STREAM=RS485)

but I can receive data

Is there any one knows reason or what can I do;
Ttelmah
Guest







PostPosted: Fri Dec 05, 2008 8:55 am     Reply with quote

Your wiring to the 485 buffer is wrong.
The 'enable' line, wants to go to the _transmit enable_ pin of the 485 driver, _not_ the main chip 'enable'. If you connect it to the latter, the whole chip is turned off, and can't receive.
If you want to operate the chip enable (to save power), you need to do this with a separate line, and turn the chip off when you don't want to send/receive anything.

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