i am using Max232 and max485 to convert the RS232 pc data to RS485. I got a circuit using these ICs with a transistor and some resitor. circuit is such that RE and DE are short together and tied to collector of NPN transitor. Base of the transistor is connected to Rout of Max232. now when PC is receiving data from RS485, then Rout is high, and after inverting through transistor turns low and RE enables the RO. this is understandible. but when PC starts transmitting, RO turn low initially due to start bit, which through transistor inverts and turn high, which turn DE high and hence DI pass data to 485. but after start bit RO will be changing its state, then what will happen. changing RO state will ultimately switch RE and DE controlling pin on each bit of packet. My Question, how does pulsating RE DE works for this circuit when pc is transmitting RS232 to 485. I know i am thinking all this in some wrong pattern, please help me in to know this circuit. (i have attach picture of ckt). just want to know the operation, as this circuit is working fine.enter image description here

  • \$\begingroup\$ You just want to understand the operation of a circuit you say is working fine? \$\endgroup\$ – Sparky256 May 18 '16 at 20:53
  • 1
    \$\begingroup\$ What does 'NC' mean? Why is there a '0' ohm resistor from DI to ground? This diagram is confusing and should not work as drawn. \$\endgroup\$ – Sparky256 May 18 '16 at 22:50

First of all the 0ohm resistor is strange... But I will explain the circuit's functionality after considering this resistor as not connected the NC is considered to be a wire. This is the only way the circuit will actually work. I have seen similar circuits before

  1. when no data is being sent, TXD2 is idle and hence will equal to 5V (TTL UART ideal state)
  2. 5V on the npn transistor will yield 0V on its collector, that is RE_bar and DE. which means that the receiver is enabled and transmitter is disabled, which is exactly what we need. MAX485 will now convert whatever on the bus to the RXD2 wire.
  3. when data is being sent, we have 2 cases: sending a logical 0 (0V) and logical 1 (5v):

a. when 5V is sent, as explained before, the transmitter is disabled, and A and B outputs are in high-impedance. But because of pull-ups and pull-downs on the A and B wires, A will be 0v, and B will be 5V which is a logical 1 RS485 signal. So it is "like" sending data except that the pull-ups and pull-downs are the ones driving the bus and not the max485 transceiver.

b. when 0V is sent, the transistor switches off. The transmitter is enabled, and 0V gets into DI. which outputs a 0V RS485 signal on A and B lines (that is A:5V , B:0V)

  • 1
    \$\begingroup\$ Thank-you fhlb. You explained really in detail and what I wanted to learn. Absolutely you are rite about this 0 ohm resistor. Actually it is not in my design and I had to search for any such picture from net as my PDF was not working to take snap of my own ckt. In actual DE and RE are short and connected to transistor. Again thanks a lot my friend. \$\endgroup\$ – user3774261 May 22 '16 at 5:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.