4
\$\begingroup\$

I made a simple circuit to read data from RS232 lines and print data on different RS232 lines. This is the IC I am using: MAX3232EIDWG4. The IC fails to convert the CMOS to RS232 level logic. I am suspecting it is because of a broken IC or because of the design.

  • Is it fine to connect RIN1 and RIN2 to read from either of these RS232 lines?
  • ROUT1 and ROUT2 are connected together to get the same signal.
  • Is it fine to connect DIN1 and DIN2 to split my RS232 output lines?
  • What are the consequences of connecting 2 different lines together? Circuit
\$\endgroup\$
6
  • \$\begingroup\$ What are V+ and V-? (after you fix the mistake Eliot spotted) \$\endgroup\$
    – user16324
    Feb 16, 2022 at 21:55
  • 4
    \$\begingroup\$ That capacitor at Vcc is certainly not correct, it has to be between 3V3 and GND. The IC won't be supplied witz power this way. Secondly, your data connections are wrong IMO. The RS232 lines need to je connected to DOUT (driver out) and RIN (receiver in). It is also unclear, which two RS232 linew you're talking about. Please draw a diageam that shows the actual circuit. \$\endgroup\$
    – Sim Son
    Feb 16, 2022 at 21:58
  • 1
    \$\begingroup\$ However, connecting two receiver inputs doesn't make sense if you actually have 2 lines you want to receive from. That shorts those lines and won't work respectively. \$\endgroup\$
    – Sim Son
    Feb 16, 2022 at 21:59
  • 2
    \$\begingroup\$ Note that RIN/DOUT is RS232 side, ROUT/DIN is the CMOS side. Your net labels are also not meaningful: what is "sensor" and what is "serial"?! \$\endgroup\$
    – Sim Son
    Feb 16, 2022 at 22:04
  • \$\begingroup\$ If you only have one line then leave the other line's I/O pins floating. \$\endgroup\$
    – Lundin
    Feb 17, 2022 at 7:43

2 Answers 2

7
\$\begingroup\$

As Elliot Alderson has spotted, you must connect CBYPASS between pins 16 (VCC) and 15 (GND).

enter image description here

Source: Datasheet

Is it fine to connect RIN1 and RIN2 to read from either of these RS232 lines?

I don't know what you're trying to accomplish by doing so. But since these two pins are inputs you may connect them together.

ROUT1 and ROUT2 are connected together to get the same signal.

You mustn't connect output signals together. In theory both outputs should signal the same (since RIN1 and RIN2 are connected). But in reality one signal will be driven slightly faster than the other. This will cause a short on these outputs for a brief moment.

Is it fine to connect DIN1 and DIN2 to split my RS232 output lines?

DIN1 and DIN2 could be connected if you desire.

What are the consequences of connecting 2 different lines together?

As already stated, connecting outputs is a bad idea. You may connect inputs (CMOS: DIN, RS232: RIN), but I fail to see the benefit.

enter image description here

\$\endgroup\$
5
  • \$\begingroup\$ I disconnected the output pins and modified the bypass capacitor, but the RS232 line still fails to read the correct characters. \$\endgroup\$
    – dreamcoder
    Feb 17, 2022 at 15:15
  • 1
    \$\begingroup\$ Chances are that the output drivers are already damaged. You can verify that by individually driving the DIN/RIN pins and measuring what the corresponding DOUT/ROUT outputs do. \$\endgroup\$
    – Velvet
    Feb 17, 2022 at 15:59
  • 1
    \$\begingroup\$ "a short moment" - ha I get it. \$\endgroup\$ Feb 17, 2022 at 21:15
  • \$\begingroup\$ @MarkRansom ...and now I got (and fixed) it. \$\endgroup\$
    – Velvet
    Feb 17, 2022 at 21:21
  • \$\begingroup\$ But there was nothing to fix, I liked it better the old way. \$\endgroup\$ Feb 17, 2022 at 21:24
9
\$\begingroup\$

You can't put a capacitor in series with the 3V3 power connection. You probably intended that capacitor to be from 3V3 to ground.

After making that change, try using the device without connecting the inputs together. Measure the RS232 output voltages and report back.

\$\endgroup\$
3
  • \$\begingroup\$ The voltages now read between -5.2V and -5.5V and my RS232 line sniffer still reads garbage characters. \$\endgroup\$
    – dreamcoder
    Feb 17, 2022 at 15:14
  • 1
    \$\begingroup\$ @dreamcoder -5.2V is enough to send an RS232-mark signal, which is the default line state if nothing is transmitted. \$\endgroup\$
    – Ferrybig
    Feb 17, 2022 at 16:43
  • \$\begingroup\$ @Ferrybig Yes, but a space needs to be greater than 3V. I guess it's not clear whether the OP is saying that the range of negative voltages is -5.2 to -5.5V or that the range of all voltages is -5.2 to -5.5V. \$\endgroup\$ Feb 17, 2022 at 22:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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