COM (hardware interface)

Last updated
COM port (DE-9 connector). Serial plug1.jpg
COM port (DE-9 connector).

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.

Contents

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.[ citation needed ] 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.[ citation needed ]

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 0x3F8 to 0x3FF.

If the CPU, for example, wants to output information on COM1, it writes to I/O port 0x3F8, 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 I/O port IRQ
COM10x3F8-0x3FF4
COM20x2F8-0x2FF3
COM30x3E8-0x3EF4
COM40x2E8-0x2EF3

Implementations

See also

References

  1. "Configuring a communication port". IBM Lotus Domino and Notes Information Center. August 14, 2008. Archived from the original on 17 September 2013.
  2. Stephen Byron Cooper. "What Is a Com1 Port?" . Retrieved 2021-09-30.
  3. "Serial port" . Retrieved 2020-09-14.
  4. "Motherboard Port Guide: Solving Your Connector Mystery" . Retrieved 2020-09-14.
  5. "22.2.3. Resources Required by Serial Ports - PC Hardware in a Nutshell, 3rd Edition [Book]". www.oreilly.com. Retrieved 2024-10-15.

Further reading