Using serial ports for communication

Using serial ports for communication
Image from kenable.co.uk.
Published: by Renier Delport
Collection(s): Electronics

The serial port is a connection port through which data transfers in or out one bit at a time. Data signals are transferred using two lines, one for transmitting signals (Tx) and one for receiving signals (Rx). Serial ports use the RS-232 standard (also known as recommended standard 232) to determine how data is transmitted.

This is an ongoing post. Please suggest corrections, explanations, etc. in the comment section at the bottom of this page.

Serial ports are commonly used for the control, configuration and/or analysis/debugging of RS-232 supported devices. The serial port is a type of device that uses an UART chip (universal asynchronous receiver/transmitter). Data signals are received (Rx) from the communicating device’s transmit (Tx) line and is send/transmitted (Tx) to the communicating device’s receive (Rx) line.

DB9 Serial port pinout
The serial port itself is in the form of a 9-pin D Sub connector. Pinout image from db9-pinout.com.

Serial port connections are used for remote connections to a device. This allows access to a device, using another device containing an interface (third party interface). Commonly used interfaces include PC based software and touch screen devices. In the audiovisual (AV) field, control processors are also commonly used to be able to connect other devices (i.e. Bluetooth, IR and Ethernet connected devices) to integrate control of RS-232 devices.

RS-232 standard

Recommended standard 232 defines the electrical characteristics, timing and the meaning of data signals and the physical size and pinout of connectors. Other data characteristics include the communication direction (“full duplex” will send and receive data at the same time and “half duplex” will take turns to send and receive data), with or without parity, and/or stop bits.

Serial communication is done by signals representing 1 bit at a time. Each bit is represented by a ‘0’ or a ‘1’. Voltages are used to represent these bits. Bits are determined by ‘inverted logic’ (when compared with TTL/normal logic). By the RS-232 standard, a bit value of ‘1’ is represented by a negative voltage – anywhere from -3 to -25V – while bit value of ‘0’ transmits a positive voltage that can be anywhere from +3 to +25V.

Transferring of bits
Diagram of RS232 signalling as seen when probed by an Oscilloscope. Image from commons.wikimedia.org.

The more extreme voltages of an RS-232 signal help to make it less susceptible to noise, interference and degradation. This means that an RS-232 signal can generally travel longer physical distances than their TTL counterparts, while still providing a reliable data transmission.

Serial ports on PCs

Some personal computers still has one or two serial ports. In the past, serial ports have been commonly used in PCs to connect to devices such as modems. On most PCs the data signals swing from -13 to +13V. Zero voltage has no meaning (except it usually means that the unit is powered off). Due to faster and cheaper technology, serial ports has been discontinued by some motherboard manufacturers as standard ports on PCs.

Advantages & disadvantages of the RS-232 interface

Although this technology is fairly old (introduced in 1960), serial ports and the RS-232 interface are easy to use and well known. The hardware for serial ports is simple to hook up, doesn’t need a lot of wires, is still readily available and is fairly cheap.

Compared with more modern interfaces, RS 232 it is quite slow. There is no clock, meaning the data transmitted/received is asynchronous. Only one device can be connected at a time.

TTL serial connections

Although there are many similarities, RS-232 serial connections are different from TTL (transistor-transistor logic) serial connections. Connecting TTL (3 – 5V) devices directly to a serial port (of, for example, a PC – 13V) may damage the device. PCs can, however, safely use TTL for serial communication by using USB to TTL serial converters (e.g. The FTDI USB to TTL serial converter module).

Related product links

Please support Behind The Scenes by using these links to purchase these related products online from our partner websites. Links will open in a new window.

Geekcreit FT232RL FTDI USB To TTL Serial Converter Module
Supplier: BangGood
Delivers: Worldwide
Price range: U$D 2.20 / ZAR 37
Description: FT232RL FTDI USB to TTL serial converter module with Mini-B USB.
Mini-B USB Cable (1.3m)
Supplier: BangGood
Delivers: Worldwide
Price range: U$D 2.50 / ZAR 37
Description: 5-Pin USB 2.0 male to Mini-B USB male.
RS232 DB9 Female To Male Adapter (3pcs)
Supplier: BangGood
Delivers: Worldwide
Price range: U$D 2.20 / ZAR 35
Description: 3x 9-pin female to male adapter.
Solderless Breadboard (8.5×5.5cm)
Supplier: BangGood
Delivers: USA & Worldwide
Price range: U$D 5 / ZAR 39
Description: 400 tie points/holes.
Solderless Breadboard Jumper Cable Set
Supplier: BangGood
Delivers: Worldwide
Price range: U$D 4 / ZAR 60
Description: 140pcs U shape solderless breadboard jumper cable set.
USB To RS232 DB9 Serial Cable (80cm)
Supplier: BangGood
Delivers: Worldwide
Price range: U$D 3 / ZAR 45
Description: 9-pin. Includes male to female adapter.
USB To RS232 DB9 Serial Converter Cable (1m)
Supplier: BangGood
Delivers: Worldwide
Price range: U$D 2.40 / ZAR 36
Description: 3.5 ft / 1m, USB to 9-pin RS232 serial interface (male).

Save, share & Disqus

Use the buttons below, on the left or the bottom of this page to share this post. Your comment is important, but don't be a shit. Keep it constructive and polite.

Comment via Disqus

Disqus is a worldwide comment hosting service for web sites and online communities. This secure platform ensures a pleasant commenting environment which is manageable from one account. Use the Login button to sign up.

More microelectronic related posts

Fiverr – Freelance services marketplace for the lean entrepreneur
Fiverr – Freelance services marketplace for the lean entrepreneur
21 September 2018
Fiverr is the world’s largest freelance services marketplace for entrepreneurs to focus on growth & create a successful business at affordable costs. More…
The FTDI USB to TTL serial converter module
The FTDI USB to TTL serial converter module
5 June 2018
The FTDI USB to TTL serial converter module is an UART (universal asynchronous receiver-transmitter) board used for TTL serial communication. It is a breakout board for the FTDI FT232R chip with an USB interface, can use 3.3 or 5 V DC and has Tx/Rx and other breakout points. More…
About the author
Renier busies himself with improving his English writing, creative web design and his websites, photoshopping, micro-electronics, multiple genres of music, superhero movies and badass series.