Rs-485 And Rs-232 |
![]() ![]() |
Rs-485 And Rs-232 |
Apr 25 2008, 05:18 AM
Post
#1
|
|
|
Junior Member ![]() ![]() Group: Full Member Posts: 6 Joined: 18-April 08 Member No.: 4,502 |
![]() i found this circuit in a site ,just carrying out it ,i use RS232 before ,will rs485 the same to it ,is there a differ in program TL750L05,SN75LBC184 |
|
|
|
Apr 25 2008, 05:27 AM
Post
#2
|
|
|
Posting Freak ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 2,118 Joined: 24-April 02 From: Christchurch, New Zealand Member No.: 1 |
Hello transformer
When you use RS485, you are using the same circuit between your master and slave for TX and RX. With RS232, you have a TX line and an RX line. For RS485, you need to switch the transceiver, in your circuit SN75LBC184, between transmit and receive. This is done by controlling the direction pin and in your diagram, this is controlled by P16 on the micro. You leave the transceiver in RX mode until you want to send data. Then you switch to transmit mode and wait until the data has been sent and then switch back to receive mode. The timing is critical as if you switch too soon, you will block some data from going out, and if you switch too late, you may miss some data from coming in. Best regards -------------------- Mark Empson administrator
Skype Contact = markempson | phone +64 274 363 067 LMPForum | LMP Tech Warehouse | L M Photonics Ltd | Empson family | Advanced Motor Control Ltd | LMP Software | Mark Empson Website |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 8th January 2009 - 08:15 PM |