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.
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.
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.
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.
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).
Save, share & Disqus
Comment via Disqus
More microelectronic related posts
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.
18 September 2018
When using the Arduino IDE to program Arduino or Arduino-like microcontrollers, there are 4 basic sections that each sketch should have. They are the comment section, the library import section, the setup section and the loop section.
22 June 2018
The ESP8266 community created an add-on for the Arduino IDE that allows Arduino-like (C or C++) programming to be uploaded/flashed as software for the ESP8266 microcontroller.
5 June 2018
UART (universal asynchronous receiver/transmitter) is a communication interface used between two microcontrollers. Data signals are transferred using two lines, one for transmitting signals (Tx) and one for receiving signals (Rx).
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.
19 December 2017 | Updated 5 June 2018
The ESP-01 is a popular, inexpensive microcontroller board with built-in Wi-Fi. It makes use of the, now, widely used ESP8266 microcontroller chip.