|
|
View previous topic :: View next topic |
Author |
Message |
doenza Guest
|
#use RS232 with enable for RS485, what is the problem??? |
Posted: Fri Dec 05, 2008 8:36 am |
|
|
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
|
|
Posted: Fri Dec 05, 2008 8:55 am |
|
|
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 |
|
|
|
|
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
|