Misplaced Pages

Parallel port

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

In computing , a parallel port is a type of interface found on early computers ( personal and otherwise) for connecting peripherals . The name refers to the way the data is sent; parallel ports send multiple bits of data at once ( parallel communication ), as opposed to serial communication , in which bits are sent one at a time. To do this, parallel ports require multiple data lines in their cables and port connectors and tend to be larger than contemporary serial ports , which only require one data line.

#941058

52-511: There are many types of parallel ports, but the term has become most closely associated with the printer port or Centronics port found on most personal computers from the 1970s through the 2000s. It was an industry de facto standard for many years, and was finally standardized as IEEE 1284 in the late 1990s, which defined the Enhanced Parallel Port (EPP) and Extended Capability Port (ECP) bi-directional versions. Today,

104-507: A legacy port and no longer include the parallel interface. Smaller machines have less room for large parallel port connectors. USB-to-parallel adapters are available that can make parallel-only printers work with USB-only systems. There are PCI (and PCI-express) cards that provide parallel ports. There are also some print servers that provide an interface to parallel ports through a network. USB-to-EPP chips can also allow other non-printer devices to continue to work on modern computers without

156-455: A 50 pin connector on the printer side—either a DD-50 (sometimes incorrectly referred to as a "DB50") or the block shaped M-50 connector; the M-50 was also referred to as Winchester. Dataproducts parallel was available in a short-line for connections up to 50 feet (15 m) and a long-line version using differential signaling for connections to 500 feet (150 m). The Dataproducts interface

208-484: A common assignment for the first logical parallel port (and therefore also for the corresponding LPT1 DOS device driver) today is 0x378, even though the default is still 0x3BC (and would be selected by the BIOS if it detects a printer port at this address). The IRQ lines are typically configurable in the hardware as well. Assigning the same interrupt to more than one printer port should be avoided and will typically cause one of

260-399: A fast toggle. Any of these issues might cause no or intermittent printing, missing or repeated characters or garbage printing. Some printer models may have a switch or setting to set busy by character; others may require a handshake adapter. Dataproducts introduced a very different implementation of the parallel interface for their printers. It used a DC-37 connector on the host side and

312-421: A host of other devices, have been designed to communicate with the system. An Wang , Robert Howard and Prentice Robinson began development of a low-cost printer at Centronics , a subsidiary of Wang Laboratories that produced specialty computer terminals . The printer used the dot matrix printing principle, with a print head consisting of a vertical row of seven metal pins connected to solenoids . When power

364-443: A parallel port. For electronics hobbyists the parallel port is still often the easiest way to connect to an external circuit board. It is faster than the other common legacy port (serial port), requires no serial-to-parallel converter, and requires far less interface logic and software than a USB target interface. However, Microsoft operating systems later than Windows 95/98 prevent user programs from directly writing to or reading from

416-401: A process is run as root and an ioperm() command is used to allow access to its base address ; alternatively, ppdev allows shared access and can be used from userspace if the appropriate permissions are set. The cross-platform library for parallel port access, libieee1284, also is available on many Linux distributions and provides an abstract interface to the parallel ports of the system. Access

468-438: A standard by market forces and competition , in a two-sided market , after a dispute . Examples: An example of an ongoing dispute is OASIS 's OpenDocument format vs Microsoft's Office Open XML format. Edge connector An edge connector is the portion of a printed circuit board (PCB) consisting of traces leading to the edge of the board that are intended to plug into a matching socket . The edge connector

520-400: A standard required by law (also known as de jure standards ). Joint technical committee on information technology (ISO/IEC JTC1) developed a procedure in order for de facto standards to be processed through the formal standardization system to be transformed into international standards from ISO and IEC . In social sciences a voluntary standard that is also a de facto standard is

572-409: A typical solution to a coordination problem . The choice of a de facto standard tends to be stable in situations in which all parties can realize mutual gains, but only by making mutually consistent decisions. In contrast, an enforced de jure standard is a solution to the prisoner's problem . Examples of some well known de facto standards: There are many examples of de facto consolidation of

SECTION 10

#1732771781942

624-423: Is a custom or convention that is commonly used even though its use is not required. De facto is a Latin phrase (literally " of fact "), here meaning "in practice but not necessarily ordained by law" or "in practice or actuality, but not officially established". A de facto standard contrasts an international standard which is defined by an organization such as International Standards Organization , or

676-477: Is a money-saving device because it only requires a single discrete female connector (the male connector is formed out of the edge of the PCB), and they also tend to be fairly robust and durable. They are commonly used in computers for expansion slots for peripheral cards, such as PCI , PCI Express , and AGP cards. Edge connector sockets consist of a plastic "box" open on one side, with pins on one or both sides of

728-413: Is clamped onto a ribbon cable . Alternatively, the other side may be soldered to a motherboard or daughtercard . Edge connectors are commonly used in personal computers for connecting expansion cards and computer memory to the system bus . Example expansion peripheral technologies which use edge connectors include PCI , PCI Express , and AGP . Slot 1 and Slot A also used edge connectors;

780-487: Is handled in an open-claim-release-close sequence, which allows for concurrent access in userspace. The older parallel printer ports had an 8-bit data bus and four pins for control output (Strobe, Linefeed, Initialize, and Select In), and five more for control input (ACK, Busy, Select, Error, and Paper Out). Its data transfer speed is at 150 kB/s. It is possible for a parallel port to have a speed of 300 KB/s. The newer EPPs (Enhanced Parallel Ports) have an 8-bit data bus, and

832-619: Is now popularly known as the " Centronics connector ". The Centronics Model 101 printer, featuring this connector, was released in 1970. The host sent ASCII characters to the printer using seven of eight data pins, pulling them high to +5V to represent a 1. When the data was ready, the host pulled the STROBE pin low, to 0 V. The printer responded by pulling the BUSY line high, printing the character, and then returning BUSY to low again. The host could then send another character. Control characters in

884-434: Is present at 0x3BC, the second port in the row (0x378) becomes logical parallel port 1 and 0x278 becomes logical parallel port 2 for the BIOS. Sometimes, printer ports are jumpered to share an interrupt despite having their own IO addresses (i.e. only one can be used interrupt-driven at a time). In some cases, the BIOS supports a fourth printer port as well, but the base address for it differs significantly between vendors. Since

936-522: Is similar to IBM's byte mode in concept, but changes details of the handshaking to allow up to 2 MB/s. The Extended Capability Port (ECP) is essentially an entirely new port in the same physical housing that also adds direct memory access based on ISA and run-length encoding to compress the data, which is especially useful when transferring simple images like faxes or black-and-white scanned images. ECP offers performance up to 2.5 MB/s in both directions. All of these enhancements are collected as part of

988-535: The IEEE 1284 standard. The first release in 1994 included original Centronics mode ("compatibility mode"), nibble and byte modes, as well as a change to the handshaking that was already widely used; the original Centronics implementation called for the BUSY lead to toggle with each change on any line of data (busy-by-line), whereas IEEE 1284 calls for BUSY to toggle with each received character (busy-by-character). This reduces

1040-436: The processor being mounted on a card with an edge connector, instead of directly to the motherboard as before and since. IBM PCs used edge connector sockets attached to ribbon cables to connect 5.25" floppy disk drives . 3.5" drives use a pin connector instead. Video game cartridges typically take the form of a PCB with an edge connector: the socket is located within the console itself. The Nintendo Entertainment System

1092-450: The "A" models used a print head with 9 pins and formed glyphs that were 9 by 7. This left the problem of sending the ASCII data to the printer. While a serial port does so with the minimum of pins and wires, it requires the device to buffer up the data as it arrives bit by bit and turn it back into multi-bit values. A parallel port makes this simpler; the entire ASCII value is presented on

SECTION 20

#1732771781942

1144-616: The Centronics interface— only IBM logo printers ( rebranded from Epson ) could be used with the IBM PC. IBM standardized the parallel cable with a DB25F connector on the PC side and the 36-pin Centronics connector on the printer side. Vendors soon released printers compatible with both standard Centronics and the IBM implementation. The original IBM parallel printer adapter for the IBM PC of 1981

1196-452: The LPT without additional software (kernel extensions). Older CNC Milling Machines also often make use of the parallel port to directly control the machine's motors and attachments. Traditionally IBM PC systems have allocated their first three parallel ports according to the configuration in the table below (if all three printer ports exist). If there is an unused slot, the port addresses of

1248-468: The PC-end of the interface, creating the now familiar parallel cable with a DB25M at one end and a 36-pin micro ribbon connector at the other. In theory, the Centronics port could transfer data as rapidly as 75,000 characters per second. This was far faster than the printer, which averaged about 160 characters per second, meaning the port spent much of its time idle. The performance was defined by how rapidly

1300-541: The bi-directional system, allowing various status report information to be sent. Before the advent of USB , the parallel interface was adapted to access a number of peripheral devices other than printers. One early use of the parallel port was for dongles used as hardware keys which were supplied with application software as a form of software copy protection. Other uses included optical disc drives such as CD readers and writers, Zip drives , scanners , tape drives , external modems , gamepads , and joysticks . Some of

1352-531: The computer to crash if the user types "C:\CON\CON", "C:\PRN\PRN" or "C:\AUX\AUX" in the Windows Explorer address bar or via the Run command. Microsoft has since released a patch to fix this issue, however fresh installs of Windows 95 and 98 are not patched with this fix and will still have this issue. A special " PRINT " command also existed to achieve the same effect. Microsoft Windows still refers to

1404-605: The corresponding ports to work in polled mode only. The port addresses assigned to slot can be determined by reading the BIOS Data Area (BDA) at 0000h:0408h. Bit-to-pin mapping for the Standard Parallel Port (SPP): ~ indicates a hardware inversion of the bit. In versions of Windows that did not use the Windows NT kernel (as well as DOS and some other operating systems), programs could access

1456-582: The data caused other actions, like the CR or EOF . The host could also have the printer automatically start a new line by pulling the AUTOFEED line high, and keeping it there. The host had to carefully watch the BUSY line to ensure it did not feed data to the printer too rapidly, especially given variable-time operations like a paper feed. The printer side of the interface quickly became an industry de facto standard , but manufacturers used various connectors on

1508-425: The earliest portable MP3 players required a parallel port connection for transferring songs to the device. Adapters were available to run SCSI devices via parallel. Other devices such as EPROM programmers and hardware controllers could be connected via the parallel port. Most PC-compatible systems in the 1980s and 1990s had one to three ports, with communication interfaces defined like this: If no printer port

1560-544: The existing port's relatively few status pins. While the IBM solution could support this, it was not trivial to implement and was not at that time being supported. This led to the Bi-Tronics system, introduced by HP on their LaserJet 4Si in April 1993. This used four existing status pins, ERROR, SELECT, PE and BUSY to represent a nibble , using two transfers to send an 8-bit value. Bi-Tronics mode, now known as nibble mode,

1612-408: The hardware. Years later, in 1987, IBM reintroduced the bidirectional interface with its IBM PS/2 series, where it could be enabled or disabled for compatibility with applications hardwired not to expect a printer port to be bidirectional. As the printer market expanded, new types of printing mechanisms appeared. These often supported new features and error conditions that could not be represented on

Parallel port - Misplaced Pages Continue

1664-413: The host could respond to the printer's BUSY signal asking for more data. To improve performance, printers began incorporating buffers so the host could send them data more rapidly, in bursts. This not only reduced (or eliminated) delays due to latency waiting for the next character to arrive from the host, but also freed the host to perform other operations without causing a loss of performance. Performance

1716-474: The logical parallel ports detected by the BIOS available under device names such as LPT1 , LPT2 or LPT3 (corresponding with logical parallel port 1, 2, and 3, respectively). These names derive from terms like Line Print Terminal , Local Print Terminal (both abbreviated as LPT ), or Line Printer. A similar naming convention was used on ITS , DEC systems, as well as in CP/M and 86-DOS ( LST ). In DOS ,

1768-403: The longer edges, sprung to push into the middle of the open center. Connectors are often keyed to ensure the correct polarity , and may contain bumps or notches both for polarity and to ensure that the wrong type of device is not inserted. The socket's width is chosen to fit to the thickness of the connecting PCB. The opposite side of the socket is often an insulation-piercing connector which

1820-533: The mapping internally via a CONFIG.SYS PRN =n directive (as under DR-DOS 7.02 and higher). DR-DOS 7.02 also provides optional built-in support for LPT4 if the underlying BIOS supports it. PRN, along with CON, AUX and a few others are invalid file and directory names in DOS and Windows, even on Windows XP and later. This set of invalid file and directory names also affects Windows 95 and 98 , which had an MS-DOS device in path name vulnerability in which it causes

1872-458: The number of BUSY toggles and the resulting interruptions on both sides. A 1997 update standardized the printer status codes. In 2000, the EPP and ECP modes were moved into the standard, as well as several connector and cable styles, and a method for daisy chaining up to eight devices from a single port. Some host systems or print servers may use a strobe signal with a relatively low voltage output or

1924-422: The others are moved up. (For example, if a port at 0x3BC does not exist, the port at 0x378 will then become the first logical parallel port.) The base address 0x3BC is typically supported by printer ports on MDA and Hercules display adapters, whereas printer ports provided by the mainboard chipset or add-on cards rarely allow to be configured to this base address. Therefore, in absence of a monochrome display adapter,

1976-609: The parallel port interface is virtually non-existent in new computers because of the rise of Universal Serial Bus (USB) devices, along with network printing using Ethernet and Wi-Fi connected printers. The parallel port interface was originally known as the Parallel Printer Adapter on IBM PC-compatible computers. It was primarily designed to operate printers that used IBM's eight-bit extended ASCII character set to print text, but could also be used to adapt other peripherals. Graphical printers, along with

2028-425: The parallel port with simple outportb() and inportb() subroutine commands. In operating systems such as Windows NT and Unix ( NetBSD , FreeBSD , Solaris , 386BSD , etc.), the microprocessor is operated in a different security ring, and access to the parallel port is prohibited, unless using the required driver. This improves security and arbitration of device contention. On Linux, inb() and outb() can be used when

2080-512: The parallel printers could be accessed directly on the command line . For example, the command " TYPE C:\AUTOEXEC.BAT > LPT1: " would redirect the contents of the AUTOEXEC.BAT file to the printer port. A PRN device was also available as an alias for LPT1. Some operating systems (like Multiuser DOS ) allow to change this fixed assignment by different means. Some DOS versions use resident driver extensions provided by MODE, or users can change

2132-447: The pins in complete form. In addition to the eight data pins, the system also needed various control pins as well as electrical grounds. Wang happened to have a surplus stock of 20,000 Amphenol 36-pin micro ribbon connectors that were originally used for one of their early calculators. The interface only required 21 of these pins, the rest were grounded or not connected. The connector has become so closely associated with Centronics that it

Parallel port - Misplaced Pages Continue

2184-405: The pins used for data transfer back to the host were already printer-to-host lines. The introduction of new devices like scanners and multi-function printers demanded much more performance than either the Bi-Tronics or IBM style backchannels could handle. Two other standards have become more popular for these purposes. The Enhanced Parallel Port (EPP), originally defined by Zenith Electronics ,

2236-464: The ports in this manner in many cases, though this is often fairly hidden. In SCO UNIX and Linux , the first parallel port is available via the filesystem as /dev/lp0 . Linux IDE devices can use a paride (parallel port IDE) driver. For consumers, USB and computer networks have replaced the parallel printer port, for connections both to printers and to other devices. Many manufacturers of personal computers and laptops consider parallel to be

2288-455: The reserved entry for a fourth logical printer port in the BIOS Data Area (BDA) is shared with other uses on PS/2 machines and with S3 compatible graphics cards, it typically requires special drivers in most environments. Under DR-DOS 7.02 the BIOS port assignments can be changed and overridden using the LPT1 , LPT2 , LPT3 (and optionally LPT4 ) CONFIG.SYS directives. DOS-based systems make

2340-451: The same control pins as the normal parallel printer port. Newer ports reach speeds of up to 2 MB/s. Pinouts for parallel port connectors are: Inverted lines are true on logic low. If they are not inverted, then logic high is true. Pin 25 on the DB25 connector might not be connected to ground on modern computers. Hardware IC chips: De facto standard A de facto standard

2392-508: The system side, so a variety of cables were required. For example, NCR used the 36-pin micro ribbon connector on both ends of the connection, early VAX systems used a DC-37 connector, Texas Instruments used a 25-pin card edge connector and Data General used a 50-pin micro ribbon connector. When IBM implemented the parallel interface on the IBM PC , they used the DB-25F connector at

2444-408: Was applied to the solenoids, the pin was pushed forward to strike the paper and leave a dot. To make a complete character glyph , the print head would receive power to specified pins to create a single vertical pattern, then the print head would move to the right by a small amount, and the process repeated. On their original design, a typical glyph was printed as a matrix seven high and five wide, while

2496-417: Was designed to support limited bidirectionality, with 8 lines of data output and 4 lines of data input. This allowed the port to be used for other purposes, not just output to a printer. This was accomplished by allowing the data lines to be written to by devices on either end of the cable, which required the ports on the host to be bidirectional. This feature saw little use, and was removed in later revisions of

2548-511: Was found on many mainframe systems up through the 1990s, and many printer manufacturers offered the Dataproducts interface as an option. A wide variety of devices were eventually designed to operate on a parallel port. Most devices were uni-directional (one-way) devices, only meant to respond to information sent from the PC. However, some devices such as Zip drives were able to operate in bi-directional mode. Printers also eventually took up

2600-475: Was further improved by using the buffer to store several lines and then printing in both directions, eliminating the delay while the print head returned to the left side of the page. Such changes more than doubled the performance of an otherwise unchanged printer, as was the case on Centronics models like the 102 and 308. IBM released the IBM Personal Computer in 1981 and included a variant of

2652-518: Was indicated by the host pulling the SELECT line high, and data was transferred when the host toggles the AUTOFEED low. Other changes in the handshaking protocols improved performance, reaching 400,000 cps to the printer, and about 50,000 cps back to the host. A major advantage of the Bi-Tronics system is that it can be driven entirely in software in the host, and uses otherwise unmodified hardware - all

SECTION 50

#1732771781942

2704-568: Was unusual in that it was designed to use a zero insertion force edge connector: instead of the user forcing the cartridge into the socket directly, the cartridge was first placed in a bay and then mechanically lowered into position. Starting with the Amiga 1000 in 1985, various Amiga models used the 86-pin Zorro I edge connector, which was later reshaped into the internal 100-pin Zorro II slot on

#941058