RS-232 OVERVIEW

This file is still under construction. Please bear with us.

In trying to gain a technical understanding of RS-232, most technical people need the following information

  1. DTE and DCE
  2. The names of the signals involved in RS-232
  3. What the RS-232 signalsmean
  4. What RS-232 conditions are required for data transmission
This document also deals with other topics including:

EIA/TIA RS-232 is the most common interface in use today. It is used for everything from modems and terminals to PC's and printers. It is an industry standard throughout the world and in Europe is known as V.24. The standard defines both physical and protocol matters. EIA/TIA RS-232 is almost impossible to distroy with wiring errors because all outputs are protected against continuous short circuits.

DEFINATIONS

The terminal is called the 'Data Terminating Equipment' (DTE). This may be an asynchronous terminal such as a WYSE or DEC terminal, or a printer with a serial interface or the COM: port on a P.C.

The modem is also called 'Data Set' or 'Data Communications Equipment' (DCE) Typical characteristics of DCE include:

(DTE) Typical characteristics of DTE include:
Full Duplex (FDX): the ability to communicate in two direction at the same time. Telephones are usually full duplex devices. Modems may be either half or full duplex devices depending on the characteristics of the design.

Half Duplex (HDX): the ability to communicate in both directions, but in only one direction at a time. Radios such as C.B. radios are an example of half duplex communications.

Two Wire Line

HALF DUPLEX with TWO WIRE phone line. FULL DUPLEX with FOUR WIRE phone line unless the circuit is MULTIDROP.

Four Wire Line

STANDARDS

PHYSICAL

CONNECTORS

DB-25

This connector was standardized in the original EIA RS-232 specification. It is composed of a shell (body) that may or may not include the pins and a shoud (cover) that can be composed of plastic or metal. Metal shouds are used in applications where there is great sensitivity of interfearance (EMI). According to the standard, male ends are supposed to be on DCE devices and female ends on DTE devices. In practice, this standard is not always honored. WARNING: PC's use the DB-25 female connector for parallel outputs. Not all DB-25 connectors are for RS-232. This is the only connector that can be used for synchronous connections.

DB-9

This connection was developed by IBM for asynchronous communications on it's XT class PC's. Because it does not have room for the two clocking signals usually found on pins 15 and 17, it cannot be used for synchronous signals. It was finally standardized in EIA/TIA 574.This chart shows both the pin configuration and the wiring for a DB-25 to DB-9 converter. The IBM PC or compatable has a male end on it.

	DB-9		Function		DB25

	1		Carrier Detect		8

	2		Receive Data		3

	3		Transmit Data		2

	4		Data Terminal Ready	20

	5		Signal Ground		7

	6		Data Set Ready          6

	7		Request to Send          4

	8		Clear to Send	        5

	9		Not defined 

RJ45

This connection was standardized by EIA/TIA 561. Like the DB-9 connector, it cannot be used for synchronous connections. This standard also explicitly permitted speeds of up to 38,400 bps thereby recognising long standing practice. Pin 1 is on the left when holding a male connector in your hand with the locking tab down and the cable towards your body.

	RJ45		Function		DB-25

	1		Ring Indicator		22

	2		Data Carrier Detect	8

	3		Data Terminal Ready	20

	4		Signal Ground		7

	5		Receive Data		3

	6		Transmit Data		2

	7		Clear to Send		5

	8		Request to Send         4

ATI

This connector is only used by Hewlett Packard for asynchronous communications . It is a three wire connection on an unusual DB style connector. Ground is pin 1, Transmit data is pin 2 and Received data is by itself on the bottom row of the connector as pin 3.

CONNECTIONS

When a DCE is connected to a DTE as the RS-232 specification intended, then the cable is wired as 'straight through' This means that pin 2 is wired to pin 2, pin 3 to pin 3 and pin 7 to pin 7 as a minimum cable. This cable is also refered to as a 'modem' cable.

When a DTE is connected to a DTE, then we must change the cable. This cable is known as a 'null modem' cable because it eliminates the need for the two modems (DCE's) in the circuit. In this configuration, the minimum cable connects transmit on one DTE (pin 2) to receive on the other DTE (pin 3) and vice versa. The grounds on pin 7 will still connect straight across. For DCE to DCE connections, this type of cable is also used. These sample cables are only useful for three wire asynchronous RS-232 devices. For synchronous devices, we must add timing or clocking signals. These are typically on pin 15 and 17 of the DB-25 cable.

ELECTRICAL

Voltages of +3 to +25Vdc is 'on', or logical 0 (space)