How Serial Ports Work

The serial port has been an integral part of most computers for more than 20 years. Serial ports provide a standard connector and protocol to let you attach devices, such as modems, to your computer.All computer operating systems in use today support serial ports. Parallel ports are a more recent invention and are much faster than serial ports.


The serial port has been an integral part of most computers for more than 20 years. Serial ports provide a standard connector and protocol to let you attach devices, such as modems, to your computer.

All computer operating systems in use today support serial ports. Parallel ports are a more recent invention and are much faster than serial ports. USB ports are only a few years old, and will likely replace both serial and parallel ports over the next several years.

The serial port transmits the eight bits in a data byte one bit at a time. The advantage is that a serial port requires only one wire to transmit the eight bits, while a parallel port requires eight. The disadvantage is that it takes eight times longer to transmit the data than it would if there were eight wires. Before each byte of data, a serial port sends a start bit. After each byte of data, it sends a stop bit to signal that the byte is complete. It may also send a parity bit.

Serial ports are bidirectional. Bidirectional communication allows each device to receive data as well as transmit it. Serial devices use different pins to receive and transmit data allowing full-duplex communication. Using the same pins would limit communication to half-duplex, meaning that information could only travel in one direction at a time.

Serial ports rely on the universal asynchronous receiver/transmitter (UART) to function properly. The UART chip transforms the parallel output of the computer's system bus into serial form for transmission through the serial port.

The serial connection

The external connector for a serial port can be either 9 pins or 25 pins. Originally, the primary use of a serial port was to connect a modem to the computer. The following list describes the function of each pin of a 9-pin serial port when a modem is connected.

  • Pin 1. Carrier Detect — Determines if the modem is connected to a working phone line.

  • Pin 2. Receive Data — Computer receives information sent from the modem.

  • Pin 3. Transmit Data — Computer sends information to the modem.

  • Pin 4. Data Terminal Ready (DTR) — Computer tells the modem that it is ready to talk.

  • Pin 5. Signal Ground — Pin is grounded.

  • Pin 6. Data Set Ready (DSR) — Modem tells the computer that it is ready to talk.

  • Pin 7. Request To Send (RTS) — Computer asks the modem if it can send information.

  • Pin 8. Clear to Send (CTS) — Modem tells the computer that it can send information.

  • Pin 9. Ring Indicator — Once a call has been placed, computer acknowledges signal (sent from modem) that a ring is detected.

    • Voltage applied to the pins can be either on or off. "On" (binary value 1) means that the pin is transmitting a signal between -3 and -25 V, while "off" (binary value 0) means that it is transmitting a signal between +3 and +25 V.

      Going with the flow

      Flow control is the ability of one device to tell another device to stop sending data for a while. The commands request to send (RTS), clear to send (CTS), data terminal ready (DTR), and data set ready (DSR) are used to enable flow control.

      A modem that communicates at 56 kbps is an example of how flow control works. The serial connection between the computer and modem transmits at 115 kbps. This means that the modem is getting more data coming from the computer than it can transmit over the phone line. Even if the modem has a 128K buffer to store data in, it will still quickly run out of buffer space and be unable to function properly with all that data streaming in.

      With flow control, the modem can stop the flow of data from the computer before it overruns the modem's buffer. The computer is constantly sending a signal on the RTS pin, and checking for a signal on the CTS pin. If there is no CTS response, the computer stops sending data, waiting for the CTS before it resumes. This allows the modem to keep the flow of data running smoothly.

Top Plant
The Top Plant program honors outstanding manufacturing facilities in North America.
Product of the Year
The Product of the Year program recognizes products newly released in the manufacturing industries.
System Integrator of the Year
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
November 2018
2018 Product of the Year finalists, mild steel welding: finding the right filler, and new technique joins aluminum to steel.
October 2018
Tools vs. sensors, functional safety, compressor rental, an operational network of maintenance and safety
September 2018
2018 Engineering Leaders under 40, Women in Engineering, Six ways to reduce waste in manufacturing, and Four robot implementation challenges.
October 2018
2018 Product of the Year; Subsurface data methodologies; Digital twins; Well lifecycle data
August 2018
SCADA standardization, capital expenditures, data-driven drilling and execution
June 2018
Machine learning, produced water benefits, programming cavity pumps
Summer 2018
Microgrids and universities, Steam traps and energy efficiency, Finding help with energy projects
October 2018
Complex upgrades for system integrators; Process control safety and compliance
November 2018
Analytics quantify processes, Fieldbus networking and IIoT, Choosing the right accelerometer

Annual Salary Survey

After two years of economic concerns, manufacturing leaders once again have homed in on the single biggest issue facing their operations:

It's the workers—or more specifically, the lack of workers.

The 2017 Plant Engineering Salary Survey looks at not just what plant managers make, but what they think. As they look across their plants today, plant managers say they don’t have the operational depth to take on the new technologies and new challenges of global manufacturing.

Read more: 2017 Salary Survey

The Maintenance and Reliability Coach's blog
Maintenance and reliability tips and best practices from the maintenance and reliability coaches at Allied Reliability Group.
One Voice for Manufacturing
The One Voice for Manufacturing blog reports on federal public policy issues impacting the manufacturing sector. One Voice is a joint effort by the National Tooling and Machining...
The Maintenance and Reliability Professionals Blog
The Society for Maintenance and Reliability Professionals an organization devoted...
Machine Safety
Join this ongoing discussion of machine guarding topics, including solutions assessments, regulatory compliance, gap analysis...
Research Analyst Blog
IMS Research, recently acquired by IHS Inc., is a leading independent supplier of market research and consultancy to the global electronics industry.
Marshall on Maintenance
Maintenance is not optional in manufacturing. It’s a profit center, driving productivity and uptime while reducing overall repair costs.
Lachance on CMMS
The Lachance on CMMS blog is about current maintenance topics. Blogger Paul Lachance is president and chief technology officer for Smartware Group.
Material Handling
This digital report explains how everything from conveyors and robots to automatic picking systems and digital orders have evolved to keep pace with the speed of change in the supply chain.
Electrical Safety Update
This digital report explains how plant engineers need to take greater care when it comes to electrical safety incidents on the plant floor.
IIoT: Machines, Equipment, & Asset Management
Articles in this digital report highlight technologies that enable Industrial Internet of Things, IIoT-related products and strategies.
Randy Steele
Maintenance Manager; California Oils Corp.
Matthew J. Woo, PE, RCDD, LEED AP BD+C
Associate, Electrical Engineering; Wood Harbinger
Randy Oliver
Control Systems Engineer; Robert Bosch Corp.
Data Centers: Impacts of Climate and Cooling Technology
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
Safety First: Arc Flash 101
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
Critical Power: Hospital Electrical Systems
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.
Design of Safe and Reliable Hydraulic Systems for Subsea Applications
This eGuide explains how the operation of hydraulic systems for subsea applications requires the user to consider additional aspects because of the unique conditions that apply to the setting
click me