Jump to content

Rs-485 And Rs-232


transfomer

Recommended Posts

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...