Jump to content

Serial port: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
ComCat (talk | contribs)
ComCat (talk | contribs)
mNo edit summary
Line 14: Line 14:
connectors for these ports (in particular the [[DB-9]] version used by the
connectors for these ports (in particular the [[DB-9]] version used by the
original [[IBM PC]]).
original [[IBM PC]]).
In Europe, the related [[RS-422]] standard was popular, and often used
In [[Europe]], the related [[RS-422]] standard was popular, and often used
German DIN connectors.
[[Germany|German]] [[DIN] connectors.


In very recent years, more advanced electronics has made possible more
In very recent years, more advanced electronics has made possible more

Revision as of 01:41, 29 November 2004

A male DB-9 serial port on the rear panel of a PC.

In computing, a serial port is an interface on a computer system with which information is transferred in or out one bit at a time (contrast parallel port). Throughout most of the history of personal computers, this was accomplished using the RS-232 standard over simple cables connecting the computer to a device such as a terminal or modem. Mice, keyboards, and other devices were also often connected this way.

While RS-232 originally specified a 25-pin D-type connector, these were large and awkward, and most of the pins were unused (after all, since data is sent one bit at a time, only one wire is needed for data in each direction plus a few control signals), so it was common to use other connectors for these ports (in particular the DB-9 version used by the original IBM PC). In Europe, the related RS-422 standard was popular, and often used German [[DIN] connectors.

In very recent years, more advanced electronics has made possible more reliable and higher-speed serial communications, so RS-232 is being supplanted by newer standards such as USB and Firewire. These make it possible to connect devices that would not have been feasible over slower serial connections, such as storage devices and sound and video devices.

In Linux, the serial port devices are usually called /dev/ttyS* where * is a number starting with 0.

Port addresses

Traditionally IBM PC systems have allocated their first four serial ports according to the configuration in the table below.

PORT NAME Interrupt # Starting I/O Ending I/O
COM1 IRQ 4 0x3f8 0x3ff
COM2 IRQ 3 0x2f8 0x2ff
COM3 IRQ 4 0x3e8 0x3ef
COM4 IRQ 3 0x2e8 0x2ef

See also: parallel port.