COM (hardware interface) explained

COM (communication port)[1] [2] is the name of the serial port interface on PC-compatible computers. It can refer to physical ports and to emulated ports, such as ports created by Bluetooth or USB adapters.

History

COM port came with the original IBM PC. IBM called the four well-defined communication RS-232 ports the "COM" ports, COM1 through COM4. In BASICA and PC DOS these ports can be opened as "COM1:" through "COM4:", and all PC compatibles using MS-DOS used the notation. Most PC-compatible computers in the 1980s and 1990s had one or two COM ports.

By 2007, most computers shipped with one or no physical COM ports. Today, few consumer-grade PC-compatible computers include COM ports,[3] though some include a COM header on the motherboard.[4]

After the RS-232 COM port was omitted from consumer-grade computers, adapters from remaining interfaces such as PCI Express and USB could be used to install a COM port. One supplier chips for external USB-to-UART serial adapter cables is FTDI.

I/O addresses

The COM ports are interfaced by an integrated circuit such as 16550 UART. This IC has seven internal 8-bit registers that hold information and configuration data about which data is to be sent or was received, the baud rate, interrupt configuration and more. In the case of COM1, these registers can be accessed by writing to or reading from the I/O addresses to .

If the CPU, for example, wants to output information on COM1, it writes to I/O port, as this I/O port is "connected" to the UART IC register that holds the information.

Typical COM port allocations in PC-compatible computers[5]
Designation IRQ
COM1 4
COM2 3
COM3 4
COM4 3

See also

Further reading

Notes and References

  1. Web site: Configuring a communication port. IBM Lotus Domino and Notes Information Center. August 14, 2008. https://archive.today/20130917043522/http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=/com.ibm.help.domino.admin.doc/DOC/H_SETTING_UP_A_COMMUNICATION_PORT_STEPS.html. 17 September 2013.
  2. Web site: What Is a Com1 Port? . Stephen Byron Cooper . 2021-09-30.
  3. Web site: Serial port . 2020-09-14.
  4. Web site: Motherboard Port Guide: Solving Your Connector Mystery . 2020-09-14.
  5. Web site: 22.2.3. Resources Required by Serial Ports - PC Hardware in a Nutshell, 3rd Edition [Book] ]. 2024-10-15 . www.oreilly.com . en.