Questions tagged [rs232]

RS-232 is the electrical standard used on most serial ports. Note that this standard is a +/- 15 volt system and requires a FDMI converter to make it compatible with TTL logic levels.

First thing: the name RS-232 has been obsolete since eons. The "RS" means "Recommended Standard", but it's a well-established accepted standard now. Today it's known as EIA/TIA-232, but often just EIA-232 is used.

EIA-232 was originally designed, in pre-PC times, as the electrical interface between DTE (Data Terminal Equipment, the computer terminal) and DCE (Data Communication Equipment, the modem). With the advent of PCs it's been used more to connect computers directly together, without the DCE in between. To allow this, the straight DTE-DCE cable had to be modified to a so-called null-modem.

EIA-232 only specifies the type of connector and the pin assignments, and the voltage levels. The data format, UART is often used, is not part of the standard.

EIA-232 makes use of single-ended connections. The minimum for bidirectional communication is Signal ground, TxD (Transmit data) and RxD (Receive data).

Further reading

Difference between UART and RS-232?
Why does RS-232 need a stop bit?

542 questions
121
votes
5 answers

Difference between UART and RS-232?

Most of the time RS-232 and UART come together in serial communication theories. Are they both the same? From my readings I concluded UART is a hardware form of the RS-232 protocol. Am I correct?
tollin jose
  • 3,092
  • 9
  • 35
  • 53
37
votes
3 answers

What does 232 signify in the RS232 standard?

"RS" in communication standards RS232 and RS485 stands for "Recommended Standard". But what information does "232" or "422" or "485" convey in the name? What naming convention is used for numbers succeeding the letters "RS" when naming the RS…
Sonam
  • 441
  • 4
  • 8
33
votes
2 answers

What are the differences between USB and RS232?

Can someone tell me why people use either USB or RS232. They are both serial ports, right? And I understand that USB is much faster (especially USB3.0) but if people wanted too I'm sure they could make a successor to RS232 that is just as…
Sponge Bob
  • 5,193
  • 16
  • 46
  • 64
24
votes
8 answers

Communication between multiple microcontrollers

I'd like to start implementing a system consisting of N microcontrollers (N >= 2 MCUs), but I would like to know the possibilities to let them communicate one with the other. Ideally, (N-1) microcontrollers are placed inside the house acting as…
user51166
  • 860
  • 3
  • 10
  • 21
21
votes
2 answers

What is the meaning of "half bit" in this context?

In RS-232 specification, the stop bits can be 1, 1.5 or 2 stop bits...I wonder how it's possible to have half a bit? Also some ADC math uses 0.5bit precision in the IC specifications/datasheet. Can someone elaborate in this subject?
mFeinstein
  • 4,293
  • 11
  • 45
  • 84
17
votes
6 answers

Max Serial Cable Length?

What is the maximum length of serial cable I can use, to connection work properly? Is length of serial cable in connection with baud rate? I am using about 5 meter cable at speed 38400 bauds and RS232 communication, is it too long?
Junior
  • 1,009
  • 4
  • 23
  • 44
14
votes
3 answers

Why does RS-232 need a stop bit?

This might be obvious but I don't understand why RS-232 needs a stop bit. I understand that the start bit is necessary to notify the other end about the beginning of a transmission. Let's say we are communicating at 9600BPS. We go from high to low,…
Utku
  • 1,789
  • 2
  • 20
  • 29
14
votes
2 answers

RS232 vs USB CDC quality of service / should messages contain a checksum?

Does USB have a quality of service guarantee for data sent between my USB-CDC device and the USB host? I know with traditional RS232 in a noisy situation (e.g. automotive diagnostic port) bad bits happen often enough that checksums are important to…
Steven T. Snyder
  • 611
  • 1
  • 8
  • 18
11
votes
4 answers

What are TX and RX relative to?

I have been working with a device that uses RS232 communication to a PC. There has been some confusion as they have defined their TX and RX pins relative to the device. In their definitions they use to mean TX being the pin that sends data from the…
Fr33dan
  • 231
  • 1
  • 2
  • 6
11
votes
4 answers

Why is RS-422 interface interference insensitive?

I am trying to understand differences between RS-232 & RS-485. I just don't grasp what is the core principle behind RS-422 inteference resistance? Is it number of wires (4 instead of 3)? Is it because these wires are twisted?
truthseeker
  • 297
  • 2
  • 10
11
votes
2 answers

How does the MAX232 double the voltage?

MAX232 Datasheet Hi, I am currently a student so bear with me please! I'm currently using a powering the MAX232 with 5V DC, and when I measure from VCC to lets say, pin 3, I am getting a voltage reading of around 13V on my voltmeter. Using a power…
Phibz
  • 113
  • 1
  • 5
10
votes
4 answers

Can we calculate the baud rate of RS232 communication from the TX output signal?

Can we calculate the baud rate or communication speed of RS232 communication from the X output signal? The below image is from an RS232 communication output signal. I took this picture with 0xaa, and the time period between highs is 100.us. I heard…
chiper
  • 117
  • 1
  • 1
  • 4
10
votes
4 answers

Why is USB cable maximum length is shorter than in RS232?

Why do we need to buffer USB signal if the cable is longer than 5m? Is that because a signal voltage drop? Is that because it drives currents?
user16307
  • 11,802
  • 51
  • 173
  • 312
9
votes
4 answers

What can I do to decrease the latency from these serial ports which are attached to a PC via a Serial to USB adapter?

I think I have accidentally discovered a need in my life for embedded systems. Which is great! And kind of scary. And I need help. Background: I got hired to build a GUI application which takes scans from two SICK LMS-291s and integrates them with a…
canisrufus
  • 205
  • 3
  • 8
9
votes
5 answers

RS232-to-USB Converter

Anyone have any recommendations on a good rs232-to-usb converter. There are a lot out there and from the looks of it some are hit or miss. Good driver support is a must.
jdiaz
  • 1,933
  • 4
  • 21
  • 20
1
2 3
36 37