6
\$\begingroup\$

I am trying to make a PCB for TTL to RS232 converter. I am using the MAX3232.

enter image description here

It looks 10-11, 14-7, 13-8 and 12-9 are the same. I see some diagrams where people only use one of them. For example,in this diagram:

enter image description here

What should I do? Connect both or just one?

I am trying to make something like this:

enter image description here

\$\endgroup\$

3 Answers 3

18
\$\begingroup\$

Many RS232 peripherals use control signals, e.g. CTS/RTS, in addition to the TX/RX data lines, so they would need another transmitter/receiver.

If you plan to make a general purpose RS232-DB9 module, you can use them as CTS/RTS signals or any other signal that would suit your need.

Here's a picture of the various RS232-DB9 connector pins (source):

RS232 pinout

\$\endgroup\$
4
  • 2
    \$\begingroup\$ This is a horrible diagram. The arrows make no sense as flow of data is concerned. \$\endgroup\$ Sep 24, 2021 at 6:00
  • 4
    \$\begingroup\$ @TheValyreanGroup Why would you say so? That is perfectly informative picture for a straight cable. The diagrams for crossover cables at the provided link are even more useful. \$\endgroup\$
    – Maple
    Sep 24, 2021 at 6:19
  • \$\begingroup\$ @Maple No. The crossover diagrams at that link are just as bad. A RX port does not send to a TX port, it goes the the other way. So the arrows are even backwards for that. And on a straight cable, there is no “direction” (there is, but it can’t be expressed this way) so there should be no arrows. \$\endgroup\$ Sep 25, 2021 at 4:34
  • 4
    \$\begingroup\$ @TheValyreanGroup I strongly recommend you to read up on RS-232 protocol, it seems you confuse it with UART. In RS-232 world there is no "RX port" or "TX port", there are DTE and DCE ports. Furthermore, the signals are named from the DTE perspective, so RX pin on DCE does send data to RX pin on DTE device or TX pin on another DCE device. \$\endgroup\$
    – Maple
    Sep 25, 2021 at 8:23
11
\$\begingroup\$

It has two inputs and two outputs. What you do with them or not depends on what your application requires.

You can make an RS232 adapter with two RS232 ports that both only support TXD/RXD, or you can make one port that supports RTS/CTS handshaking too, or you can choose to leave parts of it unused like on any other logic gate.

And like with any other logic gate, you must read the datasheet if an input can be left unconnected due to internal biasing, or does it require to be connected to some potential like VCC or GND.

Although if such a board already exists, consider if it is worth making it yourself or buying.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ "Connect unused inputs to GND or Vcc" — this particular datasheet :) \$\endgroup\$
    – hobbs
    Sep 23, 2021 at 19:58
  • \$\begingroup\$ @hobbs you can connect them to either potential you want, whichever is more convenient for your PCB layout. The datasheets of both Maxim and TI mention it. \$\endgroup\$
    – Justme
    Sep 23, 2021 at 20:09
3
\$\begingroup\$

I would only say that there is also 2 others outputs ... generally not known and not used !

Theoretically, ~ +5V and ~ -5V ... (~ +9V and ~ -9V if "some" supplied with +5 V) which can be used for bipolar supplying op amps having low quiescent currents ... (pin 6 and pin 2 in the OP picture, it should be interesting use of 1 uF capacitors C1-C2-C3-C4 in this case). From MAX232 note, link page 4.

enter image description here

https://www.renesas.com/eu/en/document/dst/icl232-datasheet , see figure 11.

Additional remark : I have found a remark (? for old products) about C3. It was better (?) to connect Capacitor C3 to VCC (5V) such that it is compatible to both Texas Instruments and Maxim Integrated chips ( MAX220-MAX249, C3 pin 2 connected to Vcc). And Renesas too ... All are now "aligned" for connecting pin 2 at Vcc or ground (TRSF3232 , TRS202).

\$\endgroup\$
2
  • \$\begingroup\$ For C3, max3232 datasheet shows that connect to GND, but at your link shows connect to 5v, on the other hand max3232 datasheet has a note which is "* C3 CAN BE RETURNED TO EITHER VCC OR GROUND". So i think it is not important, isnt it? or there are special reason to connect 5v for you \$\endgroup\$
    – mehmet
    Sep 27, 2021 at 6:11
  • 1
    \$\begingroup\$ @mehmet If I remembered well, for some manufacturer, these circuits had to be connected to +5V. Will search this comparative note I had found. Added the link in answer. But not really an explanation ... Now either Vcc or ground. \$\endgroup\$
    – Antonio51
    Sep 27, 2021 at 7:06

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.