RS-232

Definition of RS-232 in The Network Encyclopedia.

What is RS-232?

More properly known as RS-232C, a widely implemented serial transmission interface developed by the Electronic Industries Alliance (EIA) that is used for connecting data terminal equipment (DTE) such as computers or terminals to data communications equipment (DCE) such as modems, packet assembler/disassemblers (PADs), or serial printers. The RS-232 specification uses unbalanced lines to provide full-duplex serial communication using baseband transmission.

RS-232 provides a typical data rate of 19.2 Kbps over a maximum distance of 15 meters, but the maximum data transfer rate is 115.2 Kbps. Up to two devices can be connected using RS-232. Devices cannot be daisy-chained together using RS-232. (Use RS-422/423 instead.)

RS-232 specifies the types of wires and connectors, the pinning of the connectors and the function of each wire, the voltage levels and their meanings, and control procedures such as handshaking. RS-232 cables (cables designed to use the RS-232 serial interface specification) are typically 25-wire unshielded twisted-pair (UTP) cables with DB25 type connectors or 9-wire cables with DB9 connectors. The pin assignments are shown in the following table. Note that only pins 1 through 8 and pin 20 are required for most basic RS-232 functions, which means that 9-pin DB9 connectors can be used on RS-232 serial cables for most applications.

Pin Assignments of RS-232

Pin Number Function
1
Equipment ground (for protection)
2
DTE transmit data
3
DTE receive data
4
Request-to-send (RTS), controlled by the DTE
5
Clear-to-send (CTS), controlled by the DCE
6
Data-set-ready (DSR), controlled by the DTE
7
Signal ground (common return path)
8
Carrier-detect (CD)
9
+ Voltage
10
- Voltage
11
Not used
12
Secondary received line signal indicator
13
Secondary CTS
14
Secondary DTE transmit data
15
DCE transmitter signal timing
16
Secondary DTE receive data
17
Receiver signal timing
18
Local loopback
19
Secondary RTS
20
Data-terminal-ready (DTR), controlled by the DTE
21
Signal quality detector
22
Ring indicator
23
Data signal rate selector
24
DTE transmitter signal timing
25
Test mode

NOTE

In a PC, RS-232 is typically implemented in a universal asynchronous receiver-transmitter (UART) chip, which converts the internal parallel bus signal to a serial bit stream and vice versa, enabling communication between your system bus and serial devices.

RS-232 is compatible with the V.24 and V.28 standards from the International Telecommunication Union (ITU).

TIP

You can use RS-232 with a null modem cable to connect two pieces of DTE (for example, to transfer files). If you are having trouble with an RS-232 connection, be sure that you’re using a regular cable for DTE–DCE communication or a null modem cable for DTE–DTE communication - they look the same but are incompatible.

Although the maximum speed of RS-232 is 115.2 Kbps, older PCs support rates of up to only 56 or 64 Kbps. Newer PCs have a 16550 UART chip that supports serial throughput rates of up to 460.8 Kbps.

See also: