RS232 voltage levels & RS-232 Signals
- an summary of the RS232 signals and RS-232 voltage or signal levels for the various pins on the RS 232 serial data system.
RS 232 is one of the most widely used standards for sending serial data that is in use even today. The RS-232 standard is used for many applications where it is necessary to send data over a relatively straightforward set of cables.
The RS-232 system for serial data transmission has the advantages of simplicity while still offering a high level of capability. As a result, it has remained in use for many years and there is still no sign of its demise.
RS 232 Voltage levels
In order that the RS 232 transmitters and receivers can be designed to a common standard, it is necessary to define the voltage levels that constitute the two logical states required for data transmission. The two states are defined as in the table below.
|-3 to -25||1|
|+3 to +25||0|
It is also necessary to define the voltage states for the control signals as these are widely used within RS 232.
|-3 to -25||OFF|
|+3 to +25||ON|
RS232 serial data transmission
The data is sent serially on RS232, each bit is sent one after the next because there is only one data line in each direction. This mode of data transmission also requires that the receiver knows when the actual data bits are arriving so that it can synchronise itself to the incoming data. To achieve this a logic 0 is sent as a start bit for the synchronisation. This is followed by the data itself and there are normally seven or eight bits. The receiver obviously has to know how many data bits to expect, and there are often small dual in line switches either on the back of the equipment or inside it to set this information.
Data on RS232 is normally sent using ASCII (American Standard Code for Information Interchange). However other codes including the Murray Code or EBCDIC (Extended Binary Coded Decimal Interchange Code) can be used equally well.
After the data itself a parity bit is sent. Again this requires setting because it is optional and it can be even or odd parity. This is used to check the correctness of the received data and it can indicate whether the data has an odd or even number of logic ones. Unlike many systems these days there is no facility for error correction.
Finally a stop bit is sent. This is normally one bit long and is used to signify the end of a particular byte. Sometimes two stop bits are required and again this is an option that can often be set on the equipment.
RS232 data transmission is normally asynchronous. However transmit and receive speeds must obviously be the same. A certain degree of tolerance is allowed. Once the start bit is sent the receiver will sample the centre of each bit to see the level. Within each data word the synchronisation must not differ by more than half a bit length otherwise the incorrect data will be seen. Fortunately this is very easy to achieve with today's accurate bit or baud rate generators.
RS 232 Handshaking
In order that data can be exchanged on an RS 232 link, the control signals must indicate that the equipment at either end of the link is ready to send the data and ready to receive the data. This can be achieved in a number of ways, but one of the more common is to use the RTS , CTS, and DTR lines.
These lines are found in the Data Terminal Equipment, DTE and Data Communications Equipment, DCE as follows:
|Line abbreviation||Line Name||Equipment|
|RTS||Request to Send||DTE|
|CTS||Clear to Send||DCE|
|DTR||Data Terminal Ready||DTE|
The handshaking exchange to start the data flow is quite straightforward and can be seen as a number of distinct stages:
- RTS is put in the ON state by the DTE
- The DCE then put the CTS line into the ON state
- The DTE then responds by placing the DTR line into the ON state.
- The DTR line remains on while data is being transmitted.
At the end of the transmission, DTR and RTS are pulled to the OFF state and then the DCE pulls the CTS line to the OFF state. This series of handshake controls was devised to allow the DTE to request control of the communications link from the related modem, and then to let the modem inform the terminal equipment that the control has been acquired. In this way the communications will only take place when both ends of the link are ready.
RS232 handshaking signals
The RS 232 data communications standard is a reliable for of data communications which has been used for many years and shows every sign of being used for many years to come. In order that it is able to communicate satisfactorily the RS 232 signals and voltage levels must be able to ensure that the line receivers are able to decode the data with no errors and that the communications protocols are adhered to. One these are all established, then data can be exchanged reliably and efficiently.
By Ian Poole
Share this page
Want more like this? Register for our newsletter