RS232 Serial Port
RS232 Serial Port
What is RS232?
RS232 is a popular communications protocol for connecting modems and data
acquisition devices to computers. RS232 devices can be plugged straight into the
computer's serial port (also known as the COM or Comms port). Examples of data
acquisition devices include GPS receivers, electronic balances, data loggers,
temperature interfaces and other measurement instruments.
RS232 Software
To obtain data from your RS232 instruments and display it on your PC you need some
software. Version 4.3 of the Windmill RS232 software is now free from their web site.
They also offer free serial trouble-shooting software.
If RS232 is a standard why can't I just use a standard lead to connect together two
RS232 ports and expect them to talk to one another? That's a good question. The
answer is that the RS232 standard was created for just one specific situation and the
difficulties come when it is used for something else. The standard was defined to
connect computers to modems. Any other use is outside of the standard. The authors of
the standard had in mind the situation below:
The standard defines how computers ( it calls them Data Terminal Equipment or DTEs)
connect to modems ( it calls them Data Communication Equipment or DCEs). The
standard says that computers should be fitted with a 25 way plug whilst modems should
have a 25 way D socket. The interconnecting lead between a computer and a modem
should be simply pin1—pin1, pin2—pin2, etc. The main signals and their direction of
flow are described below. It is important to note that a signal which is an output from a
computer is an input to a modem and vice versa. This means that you can never tell
from the signal name alone whether it is an input or an output from a particular piece of
equipment. Also, instead of being a DCE device, a data acquisition device might be
configured as DTE. In this case you need an adaptor or the RS232 cable wired
differently to normal. When the PC is connected to a DTE instrument, some of the cable
wires must cross over.
TXD Transmitted Data, Pin 2 of 25 way D
This is the serial encoded data sent from a computer to a modem to be transmitted over
the telephone line.
PC Serial Ports
A nine pin D plug has become the standard fitting for the serial ports of PCs, although
it's nothing to do with the RS232 standard. The pin connections used are:
The length of the cable also plays a part in maximum speed. The longer the cable, the
greater the cable's capacitance and the slower the speed at which you can obtain
accurate results. A large capacitance means voltage changes on one signal wire may be
transmitted to an adjacent signal wire. Fifty feet is commonly quoted as the maximum
distance, but this is not specified in the standard. We generally recommend a maximum
distance of 50 metres, but this depends on the type of hardware you are connecting and
characteristics of the cable.