<<

DATAPRO Data Networking 2740 1 Standards

Electronic Industries Association (EIA) RS-232-C Interface Standard

In this report: Synopsis

Mechanical Editor's Note Report Highlights Characteristics ...... 2 The subject ofthis report is consid­ RS-232-C is a set of specifications ered as a mature standard. No signifi­ that applies to the transfer of data Interchange cant developments are anticipated, between data terminal equipment Circuits ...... 2 but because ofits importance in the (DTE) and data circuit-terminating industry, coverage is being continued. equipment (DCE). It defines the in­ Standard Interfaces terface circuit functions and their for Selected Copies of the RS-232-C standard can corresponding connector pin assign­ Configurations ...... 5 be obtained from the Electronic In­ ments. It is the most common DTE dustries Association, Engineering to DCE interface used in the United Summary of Department, 2001 I Street NW, States. Full- or half-duplex opera­ Electrical Washington, DC 20006. A compan­ tions are supported for synchronous Characteristics ...... 6 ion publication, "Application Notes or asynchronous transmissions at for EIA Standard RS-232-C," is also speeds up to 20K bps. available.

( -By Algis V. Salciunas Product Manager

~ 1991 McGraw-Hili, Incorporated. Reproduction Prohibited. MAY 1991 Oatapro InformatIOn ServlOes Group. Delran NJ 08075 USA 2 2740 Electronic Induatrl.. Data Networking Aaaoclation (EIAI Standards RS·I32-C Interface Standard

12 pins on the bottom row to prevent improper connection. The male connector is always associ­ ated with the DTE, and the female is always associ­ Analysis ated with the DCE. The cable is provided by the DTE. The use of short cables, each less than 50 feet or 15 meters, is recommended. Use oflonger ca­ bles is permissible, however, provided that load capacity requirements are met. Longer cables are The Electronic Industries Association (EIA) Stan­ used with the length restricted by the data rate (in dard RS-232-C defines the electrical and mechani­ synchronous applications, the clock leads generally cal characteristics of the interface for connecting run twice as fast as the data leads), and by the envi­ data terminal equipment (DTE) and data circuit­ ronment. Proximity to heavy rotating machinery terminating equipment (DCE) using serial binary or other noisy/radiating devices will limit the prac­ data communications. In the United States, RS- tical cable length. 232-C is the most widely used DTE to DCE inter­ Pin assignments are explicit and unalterable, face. It applies to all classes of service: private line, unless unassigned. Special functions not specifi­ dial-up, point-to-point, multipoint, switched, nons­ cally defined should be allotted to unassigned pins. witched, two-wire, and four-wire service. Asyn­ For example, pin 25 (unassigned) is sometimes chronous and synchronous data transmission is used to "busy out" a connected that is as­ supported at speeds up to 20K bps in full- or half­ sociated with a switched application. This causes duplex mode. RS-232-C is a single-ended or unbal­ the modem to go "off hook," thus preventing an anced interface; all of the interchange signals share incoming call from being connected/answered. Be­ a common electrical ground. cause some pins are unassigned, and because all RS-232-C is functionally compatible with the the functions defined by RS-232-C are not neces­ International Telegraph and Telephone Consulta­ sarily required for a specific application, all 25 pins tive Committee (CCITT) Recommendation V.24. are not usually used. Contact the DTE vendor to Another similar interface, ISO IS211 0, has been determine the specific configuration. adopted by the International Organization for Standardization (ISO). Both the EIA RS-232-C and the ISO IS2II 0 specify a 25-pin connector. Pin Interchange Circuits incompatibilities exist, however, because of the An interchange circuit is defined as a circuit be­ diagnostic features outlined in RS-232-C. tween the data terminal equipment and the data RS-232-C coexists with another EIA standard circuit-terminating equipment. RS-232-C describes for DTE to DCE interface, RS-449, which specifies the four categories of interchange circuits that ap­ requirements for expanded transmission speeds, ply generally to all systems. They are ground or longer cable lengths, and additional functions. common return, data, control, and timing circuits. Equipment meeting RS-232-C standards can be Twenty-two circuits are specified by possible func­ made compatible with equipment meeting RS-449 tions, and three are unassigned. See Table 1. standards by using an interface converter. As the terms relate to this interface, data ter­ Ground Circuits minal equipment (DTE) is business machine hard­ The ground interchange circuits are Protective ware such as teleprinters, CRTs, front-end ports, Ground (AA) and Signal Ground (AB). Protective CPUs, etc.; data circuit-terminating equipment Ground is electrically bonded to the equipment (DCE) is hardware such as , limited dis­ frame; it can be connected to an external ground tance data sets, or the data service units (DSUs). (e.g., the ground pin of an electrical power plug). Signal Ground establishes a common reference for all interchange circuits, except Protective Ground. Mechanical Characteristics The physical connection between DTE and DCE is Data Circuits made through plug-in, 25-pin connectors. The con­ Two types of data circuits are described. A primary nectors are keyed with 13 pins on the top row and channel is a data transmission channel that has the

MAY 1991 @ 1991 McGraw-Hili, Incorporated. Reproduction Prohibited. Datepro Information Sarvices Group. Delran NJ 08075 USA Data Networking Electronic Indu.trl•• 2740 3 A ••ociatlon lElA) RS-232-C Interface Standards Standard

Table 1. EIA RS·232·C Interface Connector Pin Assignments

Data Signal Control Signal Timing Signal from from from CCITT Pin Number Function Circuit DCE DTE DCE DTE DCE DTE Equivalent· 1 Protective ground AA 101 2 Transmitted data BA X 103 3 Received data BB X 104 4 Request to send CA X 105 5 Clear to send CB X 106 6 Data set ready CC X 107 7 Signal ground/common return AB 102 8 Received line signal detector CF X 109 9 Reserved for data set testing 10 Reserved for data set testing 11 Unassigned 12 Secondary received line signal detector SCF X 122 13 Secondary clear to send SCB X 121 14 Secondary transmitted data SBA X 118 15 Transmission signal element timing (DCE) DB X 114 16 Secondary received data SBB X 119 17 Receiver signal element timing (DCE) DO X 115 18 Unassigned 19 Secondary request to send SCA X 120 20 Data terminal ready CD X 108.2 21 Signal quality detector CG X 110 22 Ring indicator CE X 125 23 Data signal rate selector CH/CI X X 111/112 24 Transmit signal element timing (DTE) DA X 113 25 Secondary clear to send SCB X

DCE = Equipment DTE = Data Terminal Equipment

Pin Number Assignments

2 3 4 5 6 7 8 9 10 11 12

14 15 16 17 18 19 20 21 22 23 24 25

Equivalents are outlined in CCITT Recommendation V.24. highest signaling rate of all channels sharing a com­ subchannel to carry control responses. Signals usu­ mon interface connector. ally flow in opposite directions to one another: pri­ The secondary channel has a lower signaling mary in one direction at a higher speed, and rate than the primary channel in a system where secondary in the reverse direction at a lower speed. two channels share a common interface connector. RS-232-C accommodates primary and sec­ RS-232-C defines two types of secondary channels: ondary arrangements with separately defined sec­ auxiliary, whose direction of transmission is inde­ ondary interchange circuits for Transmitted Data, pendent of the primary channel and is controlled Received Data, Request to Send, Clear to Send, by the appropriate set of secondary control inter­ and Received Line Signal Detector. Secondary cir­ change circuits; and backward, whose direction of cuits may be independent of other interchange cir­ transmission must always be opposite that of the cuits in terms of direction and speed. The primary channel. secondary interchange circuits, however, are addi­ Secondary channels are established because tional circuits that function in the same manner as ( in some communications systems, greater channel their basic counterparts and follow the same condi­ efficiency can be achieved by using a lower speed tions that govern corresponding basic circuits (see Tables 1,2, and 3). For the DTE to transmit data on the secondary channel, an ON condition must

@ 1991 McGraw-Hili. Incorporated. Reproduction Prohibited. MAY 1991 Datapro Information Services Group. Delran NJ 08075 USA 4 2740 Electronic Industllea Data Networking Auocilltlon (EIA) Standards RS·232-C Inte~ Standard

be present on the following four circuits: SCA (Sec­ • Conditions the local DCE for data transmis­ ondary Request to Send); SCB (Secondary Clear to sion. Send); CC (Data Set Ready); and CD (Data Termi­ • Controls the direction of transmission on half­ nal Ready). duplex channels, maintains transmit, and inhib­ When the data circuits are idle, they are in a its receive. mark hold condition (binary "ones"). Data is transferred in bipolar fashion. A binary "one" • Maintains the DCE in the transmit mode on (mark) is represented by a voltage more negative duplex or one-way only channels; otherwise, than -3 volts; a binary "zero" (space) is repre­ holds it in nontransmit. sented by a voltage more positive than + 3 volts. • RTS transition (OFF to ON) causes the DCE to enter transmit mode and turn CTS ON. Control Circuits • RTS transition (ON to OFF) causes the DCE to Control signals are used to enable and disable data complete the data transmission, enter the re­ transmission and reception, and to indicate the ceive or nontransmit mode, and turn CTS OFF. operational status and condition of the DTE and DCE. A control function is considered to be in the 2. Clear to Send (CTS)-Circuit CB ON condition when the voltage is more positive • Indicates to the DTE that data can be transmit­ than + 3 volts; it is considered to be in the OFF ted (CTS ON) or cannot be transmitted (CTS condition when the voltage is more negative than OFF). - 3 volts. These control circuits include Request to Send (RTS), Clear to Send (CTS), Data Set Ready • CTS ON is delayed until the remote DCE is ini­ (DSR), Data Terminal Ready (DTR), Received Line tialized. Signal Detector (carrier detect, CD), and Ring (RI). • When RTS is not implemented, CTS must be Assuming a half-duplex transmission between ON continuously. DTE/DCE-1 and DTE/DCE-2 is run over the pub­ lic switched network, the control sequence might 3. Data Set Ready (DSR)-Circuit CC be as follows: • Indicates the local data set status. 1. All control circuits OFF. • ON indicates that the data set is connected to 2. DTE/DCE-1 places a call to DTE/DCE-2; the communications channel ("Off Hook" or DCE-1 turns DSR ON to DTE-1, DTE-l turns switched service) and is not in test, talk (alter­ DTR ON to DCE-I. native voice/data), or dial mode. The ON con­ 3. DCE-2 turns RI ON to DTE-2. dition of this circuit should not be interpreted as either the status of any remote station equip­ 4. DTE-2 turns DTR ON to DCE-2. ment or an indication that a communication 5. DCE-2 goes "off hook" and turns DSR ON to channel has been established to a remote data DTE-2. station. 6. DTE-2 turns RTS ON to DCE-2. • ON indicates completed timing functions, if 7. DCE-2 turns CTS ON to DTE-2 (ENQ trans­ any, required for call establishment (switched mitted), DTE/DCE-2 turns OFF RTS and service). CTS. • ON indicates completed transmission of a dis­ 8. DCE-l turns CD ON to DTE-I. creet answer tone, the duration of which is con­ 9. DTE-l decodes ENQ, turns ON RTS. trolled by the local data set. 10. DCE-1 turns ON CTS; DTE-1 transmits re­ • OFF, occurring during transmission, indicates sponse. that the connection has been lost. A new trans­ mission must be originated. The four basic control signals relating to transmis­ sion are: 4. Data Terminal Ready (DTR)-Circuit CD • Used to control switching ofthe DCE to the 1. Request to Send (RTS)-Circuit CA communications channel.

MAY 1991 @ ,1991 McGraw-HUI, Incorporated. Reproduction Prohibited. Datapro Information Services Group. Delran NJ 08075 USA Data Networking Electronic Industries 2740 5 Associlition (EIAI RS·232·C Interface Standards Standard

• The ON condition prepares the data set to con­ Circuit DA provides signal element timing nect and maintain connection to the communi­ information to the transmitting signal converter, cations channel. the DCE. The ON-OFF transition indicates the • With automatic answering equipment, connec­ occurrence of the center of the data element. The tion to the communications channel occurs DTE normally provides timing information on this when both the Data Terminal Ready and the circuit when the DTE is powered ON. If Circuit Ring Indicator circuit are in the ON condition. CA (Request to Send) is OFF, timing information The OFF condition of the Data Terminal Ready on Circuit DA may be withheld by the DTE for circuit does not disable the Ring Indicator sig­ short periods. nal. Circuit DB provides signal element timing to the DTE. A data signal on Circuit BA (Transmitted • In switched systems, Data Set Ready must be Data) is provided from the DTE in which the tran­ OFF before Data Terminal Ready is turned ON sition between signal elements occurs at the time of again. the OFF-ON transition in Circuit DB. If Circuit CC (Data Set Ready) is OFF, it is permissible for Other control interchange circuits include the fol­ the DCE to withhold timing information for short lowing. periods. The performance of maintenance tests The Ring Indicator, Circuit CE, indicates that within the DCE, for example, may require the a ring (call) signal is being received on the commu­ withholding of timing information. nications channel through the switched network. Receiver Signal Element Timing, Circuit DD, The circuit is in an ON condition during ringing provides timing to the data terminal from the data and in an OFF condition between rings or when set. The ON-OFF transition indicates the center of ringing is not present. the received data elements. The Received Line Signal Detector, Circuit CF, presents an ON condition to indicate that data signals are being received, and that they are accept­ Standard Interfaces for Selected able for demodulation. An OFF condition indi­ Configurations cates that data signals are not being received, or that they are not acceptable for demodulation. The EIA RS-232-C describes a selected set of data OFF condition causes the Received Data (Circuit transmission configurations or interfaces. A provi­ BB) to be held in a binary one (marking) condition. sion is made for the addition of custom configura­ The Signal Quality Detector, Circuit CG, indi­ tions. Determining factors in the selection of an cates whether there is a high probability of error in interface type are whether the DTE transmits, re­ received data. The ON condition is maintained, ceives, or does both; whether the mode of opera­ unless a high probability of error has occurred. tion is half or full duplex; and whether a secondary Probable error is indicated by the OFF condition. channel is used. The interface designations do not This condition can be used to effect retransmis­ relate to which terminal originates or answers the sion. call, but rather to the data transmitted. Data Signal Rate Detector, Circuit CH or CI RS-232-C defines selected interface types by . ' letter designation. These types are described in Ta­ IS used to select between two signaling rates when the data set or data terminal accommodates dual ble 2, where the direction of data transfer pertain­ rates. The ON condition selects the higher rate or ing to the interface is stated (function), and the use range of rates. Circuit CH indicates that the data of Request to Send and Received Line Signal De­ terminal provides the selection signal. Circuit CI tector interchange circuits is stipulated (comment). indicates that the data set provides the selection This list indicates that interfaces A and B, which signal. Selection is between two asynchronous rates are one-way only transmissions, differ only in or between two synchronous rates. terms of the use ofRTS. Interface D is normally employed with half-duplex operation using R TS, and interface E is normally employed with full­ ( Timing Circuits Two circuits are used to provide Transmitter Sig­ duplex operation without using RTS. When inter­ nal Element Timing. face D is used in full-duplex operation, however, R TS is used with special significance.

@ 1991 McGraw·HIII, Incorporated. Reproduction Prohibited. MAY 1991 Datapro Information Services Group. Delran NJ 08075 USA Electronic Induatrt.. Data Networking 8 2740 __elation lElA) Standards RS-232-C Interface Standard

Table 2. Selected Configuration Interfaces

Interface Type Function Comment A Transmits only RTS not used B Transmits only RTS used C Receives only RLSO used o Transmits or Receives (HOX) RTS used·; RLSO used o Transmits and Receives (FOX) RTS not used: RLSO used F Primary Transmits only RTS used· Secondary Receives only Secondary RLSO used G Secondary Transmits only Secondary RTS used· Primary Receives only RLSO used H Primary Transmits only RTS not used Secondary Receives only Secondary RLSO used Secondary Transmits only Secondary RTS not used Primary Receives only RLSO used

J Primary Transmits only RTS used· Secondary Transmits or Receives (HOX) Secondary RTS and RLSO used K Primary Receives only RLSO used Secondary Transmits or Receives (HOX) Secondary RTS and RLSO used L Primary Transmits or Receives (HOX) RTS used; RSLO used Secondary Transmits or Receives (HOX) Secondary RTS used L Primary Transmits or Receives (FOX) RTS used·; RSLO used Secondary Transmits or Receives (FOX) Secondary RTS used· M Primary Transmits or Receives (FOX) RTS not used; RLSO used Secondary Transmits or Receives (FOX) Secondary RTS not used; Secondary RLSO used

z Circuits specified by suppliers

HDX-Half-duplex channel. FDX-Full-duplex channel. RTS-Request to Send signal. RLSD-Received Line Signal Detector.

"Indicates the Request to Send Circuit in a one-way (transmit) of duplex arrangement where RTS might not ordinarily be expected. It might be used to Indicate a nontransmlt mode to the DCE or to permit the DCE to remove a line signal or to send synchroniza­ tion signals as required.

Interfaces E, F, G, and H define two-way in the mark condition when the voltage at the in­ transmission, where both the primary and second­ terface point is more negative than - 3 volts with ary directions are one-way only. respect to signal ground (Circuit AB). When the Interfaces J, K, L, and M define less restric­ data signal at the interface point is more positive tive primary and secondary arrangements. than + 3 volts, with respect to signal ground, the Interface Z simply allows a special arrange­ data signal is in the space condition. The area be­ ment to be established. tween - 3 and + 3 volts is the transition region. In The complete relationship of interchange cir­ the transition region, the signal state is not defined. cuits to standard interface types is depicted in Ta­ On timing or control interchange circuits, the bles 3a, 3b, and 3c. signal is considered OFF when the voltage at the interface point is more negative than - 3 volts with respect to signal ground. It is considered ON if the Summary of Electrical Characteristics voltage at the interface point is more positive than The EIA RS-232-C standard prescribes bipolar­ + 3 volts with respect to signal ground. The func­ voltage serial data transmission between communi­ tion is not defined for voltages in the transition cating devices. Within the EIA RS-232-C standard, region between - 3 and + 3 volts. transmitted data is represented by the mark condi­ Mandatory Interchange Circuit conditions tion for binary one and the space condition for bi­ follow (see Figure 1): nary zero. A data signal on an interchange circuit is

MAY 1991 @ 1991 McGraw-Hili, Incorporated. Reproduction Prohibited. Datapro Information Services Group. Delran NJ 08075 USA Data Networking Electronic Industrl.. 2740 7 Association lElA) RS·232-C Interface­ Standards Standard

Table 3a. Required Interchange Circuits for Standard Interface Types A, B, C. D. and E

Interchange Circuit Interface Type A B C D E AA Protective Ground AB Signal Ground b b b b b BA Transmitted Data b b b b BB Received Data b b b CA Request to Send b b CB Clear to Send b b b b CC Data Set Ready b b b b b CD Data Terminal Ready s s s s s CE Ring Indicator s s s s s CF Received Line Signal Detector b b b CG Signal Quality Detector CH/CI Data Rate Selector DA/DB Transmitter Timing DO Receiver Timing b-Basic interchange circuits required. s-Requlred for switched network operation. t-Required for synchronous operation.

Table 3b. Required Interchange Circuits for Standard Interface Types F, G, H, and I

r Interchange Circuit Interface Type \ F G H AA Protective Ground AB Signal Ground b b b b BA Transmitted Data b b BB Received Data b b SBA Secondary Transmitted Data b b SBB Secondary Received Data b b CA Request to Send b SCA Secondary Request to Send b CB Clear to Send b b SCB Secondary Clear to Send b b CC Data Set Ready b b b b CD Data Terminal Ready s s s s CE Ring Indicator s s s s CF Received Line Signal Detector b b SCF Secondary RLSD b b CG Signal Quality Detector CH/CI Data Rate Selector DA/DB Transmitter Timing DO Receiver Timing b-Basic interchange circuits required. s-Requlred for switched network operation. t-Required for synchronous operation.

• Open circuit driver voltage (YO), with respect between 3000 and 7000 ohms, and the termina­ to signal ground, must not exceed 25 volts with tor open voltage (EL) is zero. respect to ground. • The effective shunt capacitance (CL), associated • The potential at the interface point must not be with the terminator, must not exceed 2500 pico­ ( less than 5 volts nor more than 15 volts in mag­ farads at the interface point. nitude when the terminator resistance (RL) is

@ 1991 McGraw-Hili. Incorporated. Reproduction Prohibited. MAY 1991 Datapro Information Servtces Group. Delran NJ 08075 USA 2740 Electronic Industries Data Networking 8 AssocIation (EIA) Standards RS·232-C Interface Standard

Table 3c. Required Interchange Circuits for Standard Interface Types '"" K, L, andM

Interchange Circuit Interface Type J K L M AA Protective Ground AB Signal Ground b b b b BA Transmitted Data b b b BB Received Data b b b SBA Secondary Transmitted Data b b b b SBB Secondary Received Data b b b b CA Request to Send b b SeA Secondary Request to Send b b b CB Clear to Send b b b SCB Secondary Clear to Send b b b b CC Data Set Ready b b b b CD Data Terminal Ready s s s s CE Ring Indicator s s s s CF Received Line Signal Detector SCF Secondary RLSD b b b b CG Signal Quality Detector CHICI Data Rate Selector DA/DB Transmitter Timing DO Receiver Timing b-Baslc Interchange circuits required. s-Requlred for switched network operation. t-Required for synchronous operation.

• The open circuit terminator voltage (EL) must Send (SCA), where implemented, are used to de· not exceed 2 volts. tect the power-off condition or the disconnection of the interconnecting cable. Request to Send (CA), Data Set Ready (CC), Data Certain limitations apply to all interchange Terminal Ready (CD), and Secondary Request to signals (data, control, and timing):

Figure 1. • All interchange signals entering transition must Interchange Equivalent Circuit proceed to the opposite signal state, and may not reenter the transition region until the next significant change in signal condition.

T • The direction of voltage must not change while o '\. ~ in the transition region. m j V n • The time required for a control signal to pass e a through the transition region must not exceed t o one millisecond. • The time required for a data or timing signal to pass through the transition region must not ex­ ceed one millisecond or 4 percent of the normal 'b - Open circu~ driver Voltage. duration of a signal element on that interchange AO - Driver internal DC resistance. circuit, whichever is the lesser. Co - Total effective capackance associated with the driver.

V1 - Voltage at interface point • The maximum instantaneous rate of voltage C L - Total effective espaounce associated with the terminator. must not exceed 30 volts per microsecond .• '\. - Terminator load DC resistance.

EL - Open circuk terminator voltage (bias).

MAY 1991 @ 1991 McGraw-Hili, Incorporated. Reproduction PrOhibited. Datepro Irrformation Services Group. Delran NJ 08075 USA