女命七杀代表什么| 去医院测血糖挂什么科| 铁是什么元素| 最近发胖过快什么原因| 老实是什么意思| 什么是湿气重| ntr什么意思| ab是什么意思| 朋字五行属什么| o型血生的孩子是什么血型| 扁桃体发炎吃什么药好得快| 梦见自己洗衣服是什么意思| 脚趾缝痒用什么药| 锁骨属于什么骨| 网织红细胞高说明什么| 89岁属什么生肖| 慢性阑尾炎吃什么药好| 空调的几匹是什么意思| 大荔冬枣什么时候成熟| 胡人是什么民族| 苦荞茶和什么搭配最好| 丹参治什么病| 草字头内念什么| 胳膊脱臼是什么症状| 为什么不建议吃三代头孢| 头昏脑胀吃什么药| 皮肤黑适合什么颜色的衣服| 五味子是什么| 虾不能和什么东西一起吃| 什么的田野| 乳腺看什么科室| 茶寿为什么是108岁| 拔了牙吃什么消炎药| 看胸挂什么科| 玄关什么意思| 什么原因导致卵巢早衰| 北京大栅栏有什么好玩的| 钟乳石是什么| 返流性食管炎用什么药| 胳膊脱臼是什么症状| 回不到我们的从前是什么歌| 桃花长什么样| babycare是什么牌子| 请辞是什么意思| 林彪为什么反革命| 致什么意思| 5月19日是什么星座| 镜检白细胞高是什么原因| 辣椒炭疽病用什么药| 梦见前婆婆是什么意思| 老是打哈欠是什么原因| 澈字五行属什么| 6月出生是什么星座| 全糖是什么意思| 钙片什么时候吃最好吸收| 荨麻疹要注意什么| 剁椒鱼头是什么鱼| 小孩下半夜咳嗽是什么原因| 小孩上户口需要什么材料| 肚脐下方是什么部位| 看手指甲挂什么科室| 房间朝向什么方向最好| 我的梦想是什么| 尿素高是什么原因| 丁卡是什么药| 拔罐有什么好处和坏处| 省检察长是什么级别| 右眼跳是什么原因| 怀孕分泌物是什么颜色| 感冒吃什么菜比较好| 自然人是什么意思| 午安是什么意思| 分泌物多是什么原因| 儿童喝蜂蜜水有什么好处和坏处| 肾阳虚和肾阴虚有什么区别症状| 9.21是什么星座| o型血和什么血型容易溶血| 港澳通行证办理需要什么证件| 刺青是什么| 尿酸高有什么症状表现| 超凡脱俗是什么意思| 蛇毒有什么用| 11月份生日是什么星座| 5月16日是什么星座| 善太息是什么意思| 90年属于什么生肖| 525什么星座| 飞蛾为什么扑火| 眉毛白了是什么原因引起的| 谷丙转氨酶高是什么原因| 上火喝什么比较好| 荏苒是什么意思| 什么虎不吃人| 高沫是什么茶| 胃酸过多有什么症状| 迁坟需要准备什么东西| 恐龙为什么会灭绝| 矢气是什么意思| 经常早上肚子疼是什么原因| 小孩出冷汗是什么原因| 肾结石挂什么科| 痢疾是什么病| chihiro是什么意思| 什么是卡路里| 汗疱疹用什么药膏| 三伏贴什么时候贴最好| 食用香精是什么| 血沉偏高说明什么| 无花果和什么不能一起吃| 1月27号是什么星座| 脚心发热吃什么药| 尿检是检查什么的| 火可以加什么偏旁| 3月23日是什么星座| jennie什么意思| 舌苔又白又厚是什么原因| jimmychoo是什么牌子| 牙齿贴片是什么意思| p波增宽什么意思| 锦是什么意思| 沙特用什么货币| 农田种什么最赚钱| 古稀是什么意思| 胎监是检查什么的| 心影饱满是什么意思| 张起灵和吴邪什么关系| 狗狗蛋蛋红肿是什么原因| 避孕药吃了有什么副作用| 百合不能和什么一起吃| 细菌性炎症用什么药| 肺不好挂什么科| 明年是什么生肖年| 肝损伤是怎么回事什么是肝损伤| 四月二十一是什么星座| 建议MRI检查是什么意思| 一夫一妻制产生于什么时期| 喝咖啡有什么好处和坏处| 牙龈萎缩吃什么药见效快| 什么叫腰肌劳损| 戊肝阳性是什么意思| 什么是排卵期| 什么是事业编| 冲锋衣是什么意思| 什么人容易得癌症| 一个九一个鸟念什么| 威士忌什么味道| 管型偏高说明什么问题| 哗众取宠是什么意思| 每天泡脚对身体有什么好处| 吃什么养脾胃| evisu是什么牌子中文| studio什么牌子| 2021年是什么生肖| 温州有什么区| rh血型阳性是什么意思| vca是什么意思| 挂职是什么意思| 厌恶是什么意思| 中午是什么时辰| 早晨起床口干口苦是什么原因| 猫的胡须有什么作用| 双飞什么意思| 售馨是什么意思| 后位子宫什么意思| 舌有裂纹是什么原因| 桂花乌龙茶属于什么茶| 尿微量白蛋白高是什么原因| 湿热是什么意思| 肚子疼应该挂什么科| 女人为什么会患得患失| 脂肪肝能吃什么水果| abo溶血症是什么| 证监会是干什么的| 尿微肌酐比值高是什么情况| 猫咪感冒吃什么药| 萃是什么意思| 什么是碳水食物| 脑ct都能查出什么病| 属猪五行属什么| 夏天可以玩什么| 胸闷是什么症状| 瘦肉炒什么配菜好吃| 声带息肉有什么危害| 妈妈的表姐叫什么| 什么冰淇淋最贵| 什么入胜| 晚上8点是什么时辰| 什么是躯体化症状表现| 桃子有什么营养| 直视是什么意思| 阿托品是什么| 肚子疼吃什么药管用| 粉刺用什么药膏最有效| 打喷嚏预示什么| 先天性是什么意思| 木糖醇是什么糖| dr股票是什么意思| 拔智齿挂口腔什么科| 品牌是什么意思| 腹部疼挂什么科| 什么梨| 收缩压是什么意思| 49是什么意思| 端午节吃什么菜呢| 肺部真菌感染用什么药最好| 被蚊子咬了涂什么| 什么东西越擦越小| 促排卵是什么意思| 腱鞘炎看什么科| 梦见空棺材是什么意思| 什么情况下要做肌电图| 老放屁是什么病的征兆| 鸡皮肤是什么原因引起的| 鸡蛋干配什么菜炒好吃| 为什么喝咖啡会心慌| 自来水养鱼为什么会死| autumn什么意思| 中国一词最早出现在什么时候| 狗能吃巧克力吗为什么| 9月份是什么星座的| 孩子为什么不愿意上学| 房产税什么时候开始征收| cr医学上是什么意思| 水杯用什么材质的好| 鹦鹉什么时候下蛋| 艾滋病初期有什么症状| 四个又念什么| 茯茶是什么茶| 北海特产有什么值得带| 孔子的父亲叫什么| 阴虱有什么症状| 什么是修养| 什么叫假性发烧| 断崖式是什么意思| 西席是什么意思| 海鲜中毒有什么反应| 头晕头重昏昏沉沉是什么原因| 咳嗽吃什么好的快| 唇红齿白是什么生肖| 朱元璋是什么生肖| 多糖是什么意思| 总掉头发是什么原因| 离婚都需要什么手续和证件| 天癸是什么意思| aone是什么牌子| 什么火没有烟| 局是什么生肖| 高血糖吃什么比较好| 踏板摩托车什么牌子好| 单核细胞计数偏高是什么意思| 脸发黄是什么原因| 搁浅了是什么意思| maby什么意思| 倾诉是什么意思| 1和0是什么意思| 酌情处理是什么意思| 吃西洋参有什么好处| 什么的愿望| 肩胛骨疼痛挂什么科| 自贸区是什么意思| 芥菜是什么菜| 言谈举止是什么意思| 雪五行属什么| 五步蛇长什么样| 百度Jump to content

辍学的猫生 《林中之夜》游侠LMAO汉化补丁下载发布

From Wikipedia, the free encyclopedia
Parallel port
A DB-25 connector often used for a parallel printer port on IBM PC compatible computers, with the printer icon.
Type Point-to-point
Production history
Designer Centronics, IBM
Designed 1970–1981
Manufacturer Centronics, Dataproducts, Intel, IBM, Compaq, Nortel, etc
General specifications
Length 2.3 cm (0.91 in)
Hot pluggable Usually not
External Yes
Cable Usually up to 25 wires including ground; optionally shielded
Pins 8 data, 4 output control, 5 input control, 8 ground
Connector DB-25, DB25F, "Centronics" 36-pin Amphenol, DC-37, others
Electrical
Signal 0 to +5.0 volt DC
Earth Dedicated pins
Max. voltage 5 volts DC
Data
Data signal Parallel
Width Variable
Bitrate PP: 150 kB/s,[1]
EPP: 2 MB/s
ECP: 2.5 MB/s
Max. devices 2, unless devices provide passthrough
Protocol Application dependent
Pinout
IBM PC-compatible parallel port pinout
Micro ribbon 36-pin female, such as on printers and on some computers, particularly industrial equipment and early (pre-1980s) personal computers.
Mini-Centronics 36-pin male connector (top) with Micro ribbon 36-pin male Centronics connector (bottom)
The Apple II Parallel Printer Port connected to the printer via a folded ribbon cable; one end connected to the connector at the top of the card, and the other end had a 36-pin Centronics connector.
百度 三是建强平台,虚功实做。

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.

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, 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 a host of other devices, have been designed to communicate with the system.

History

[edit]

Centronics

[edit]

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 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 the "A" models used a print head with 9 pins and formed glyphs that were 9 by 7.[2]

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 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 is now popularly known as the "Centronics connector".[3]

The Centronics Model 101 printer, featuring this connector, was released in 1970.[3] 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 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.[2][4]

The printer side of the interface quickly became an industry de facto standard, but manufacturers used various connectors on 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 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 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 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.[4]

IBM

[edit]

IBM released the IBM Personal Computer in 1981 and included a variant of the Centronics interface— only IBM logo printers (rebranded from Epson) could be used with the IBM PC.[5] 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 was designed to support limited bidirectionality, with 8 lines of data output and 4 lines of data input.[citation needed] 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 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.

Bi-Tronics

[edit]

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 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.[6] 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, 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.[7] 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 the pins used for data transfer back to the host were already printer-to-host lines.

EPP and ECP

[edit]

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, is similar to IBM's byte mode in concept, but changes details of the handshaking to allow up to 2 MB/s.[8] 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.[9]

All of these enhancements are collected as part of 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 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.[9]

Some host systems or print servers may use a strobe signal with a relatively low voltage output or 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.[citation needed]

Dataproducts

[edit]

Dataproducts introduced a very different implementation of the parallel interface for their printers. It used a DC-37 connector on the host side and 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.[10][11] 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 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 the bi-directional system, allowing various status report information to be sent.

Historical uses

[edit]
HP C4381A CD-Writer Plus 7200 Series, showing parallel ports to connect between a printer and the computer.

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,[12] external modems, gamepads, and joysticks. Some of the earliest portable MP3 players required a parallel port connection for transferring songs to the device.[13] 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.

Interfaces

[edit]

Most PC-compatible systems in the 1980s and 1990s had one to three ports, with communication interfaces defined like this:

  • Logical parallel port 1: I/O port 0x3BC to 0x3BF, IRQ 7 (usually in monochrome graphics adapters)
  • Logical parallel port 2: I/O port 0x378 to 0x37F, IRQ 7 (dedicated IO cards or using a controller built into the mainboard)
  • Logical parallel port 3: I/O port 0x278 to 0x27F, IRQ 5 (dedicated IO cards or using a controller built into the mainboard)

If no printer port 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 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.

Access

[edit]

DOS-based systems make 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, 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 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 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.[citation needed] Microsoft has since released a patch to fix this issue, however new installations 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 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.[14]

Notable consumer products

[edit]
Accton Etherpocket-SP parallel port ethernet adaptor (circa 1990, DOS drivers). Supports both coax and 10 Base-T. Supplementary power is drawn from a PS/2 port passthrough cable.

Current use

[edit]

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 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 a parallel port.[16]

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 the LPT without additional software (kernel extensions).[17]

CNC Milling Machines also often make use of the parallel port to directly control the machine's motors and attachments, especially with LinuxCNC OS.

IBM PC implementation

[edit]

Port addresses

[edit]

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).

PORT NO Interrupt # Starting I/O Ending I/O
#1 IRQ 7 0x3BC[18] 0x3BF
#2 IRQ 7 0x378[18] 0x37F
#3 IRQ 5 0x278[18] 0x27F

If there is an unused slot, the port addresses of 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.)[18] 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, 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 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):

Address MSB LSB
Bit: 7 6 5 4 3 2 1 0
Base (Data port) Pin: 9 8 7 6 5 4 3 2
Base+1 (Status port) Pin: ~11 10 12 13 15
Base+2 (Control port) Pin: ~17 16 ~14 ~1

~ indicates a hardware inversion of the bit.

Program interface

[edit]

In versions of Windows that did not use the Windows NT kernel (as well as DOS and some other operating systems), programs could access 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 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 is handled in an open-claim-release-close sequence, which allows for concurrent access in userspace.

Pinouts

[edit]

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.[1] It is possible for a parallel port to have a speed of 300 KB/s.[19]

The newer EPPs (Enhanced Parallel Ports) have an 8-bit data bus, and the same control pins as the normal parallel printer port. Newer ports reach speeds of up to 2 MB/s.[20][better source needed]

Pinouts for parallel port connectors are:

Pinouts for parallel port connectors.
Pin No (DB25) Pin No (36 pin) Signal name Direction Register - bit Inverted
1 1 Strobe In/out Control-0 Yes
2 2 Data0 Out Data-0 No
3 3 Data1 Out Data-1 No
4 4 Data2 Out Data-2 No
5 5 Data3 Out Data-3 No
6 6 Data4 Out Data-4 No
7 7 Data5 Out Data-5 No
8 8 Data6 Out Data-6 No
9 9 Data7 Out Data-7 No
10 10 Ack In Status-6 No
11 11 Busy In Status-7 Yes
12 12 Paper-Out In Status-5 No
13 13 Select In Status-4 No
14 14 Linefeed In/out Control-1 Yes
15 32 Error In Status-3 No
16 31 Reset In/out Control-2 No
17 36 Select-Printer In/out Control-3 Yes
18-25 19-30,33,17,16 Ground - - -

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.[dubiousdiscuss]

See also

[edit]

Hardware IC chips:

  • For host computer, see Super I/O
  • For peripheral side, example parallel port interface chips: PPC34C60 (SMSC) and W91284PIC (Warp Nine)
  • For USB-printer purpose, example USB chips: PL-2305 (Prolific) and CH341 (QinHeng)

References

[edit]
  1. ^ a b James, Kevin. PC interfacing and data acquisition : techniques for measurement, instrumentation and control. Oxford; Boston : Newnes, 2000. ISBN 9780750646246. p. 256
  2. ^ a b Centronics model 306 Technical Manual. Centronics. 1976.
  3. ^ a b Webster, Edward C. (2000). Print Unchained: Fifty Years of Digital Printing: A Saga of Invention and Enterprise. West Dover, VT: DRA of Vermont. ISBN 0-9702617-0-5.
  4. ^ a b Centronics 101, 120A, 101AL, 102A, 306 Printers (PDF). Archived (PDF) from the original on 2025-08-07.
  5. ^ Durda IV, Frank (2004). "Centronics and IBM Compatible Parallel Printer Interface Pin Assignment Reference". Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  6. ^ HP Corporate Archives (2025-08-07). "Twenty Years of Innovation: HP LaserJet and Inkjet Printers 1984–2004" (PDF). www.hp.com. HP. Archived from the original (PDF) on 2025-08-07. Retrieved 2025-08-07.
  7. ^ "Nibble Mode". Department of Chemistry, Ajou University. Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  8. ^ EP 0640229  Buxton, C.L. / Kohtz, R.A. / Zenith Data Systems Corp.: Enhanced parallel port. filing date 15 May 1992
  9. ^ a b IEEE 1284: Parallel Ports (PDF) (Technical report). Lava. 2002. Archived from the original (PDF) on 23 May 2006. Retrieved 2 November 2007.
  10. ^ "Dataproducts D-Sub 50 Parallel". Hardware Book. Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  11. ^ "Dataproducts M/50 Parallel". Hardware Book. Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  12. ^ Michael Byrd (2013). Handbook of Computer Troubleshooting. UNKNO. ISBN 978-1888998993.
  13. ^ Mitskaniouk, Oleg (2025-08-07). "The D-Link DMP-100 MP3 Player". Target PC Magazine. p. 2. Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  14. ^ Barkakati, Naba (2006). Linux All-in-One Desk Reference For Dummies (2 ed.). John Wiley & Sons. p. 482. ISBN 9780471793137. Retrieved 2025-08-07. Some IDE devices use a parallel port IDE adapter — that's what the PARIDE option refers to.
  15. ^ "Play Snappy Video SnapShot still-image capture adapter Series Specifications". CNET. Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  16. ^ "Parallel port flatbed scanner works under USB on Win9x (Archive)". Archived from the original on 2025-08-07. Retrieved 2025-08-07.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
  17. ^ "Inpout32.DLL for Windows 98/2000/NT/XP". Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  18. ^ a b c d Frank Van Gilluwe, The Undocumented PC, 1994, page 703, ISBN 0-201-62277-7
  19. ^ Thompson, Robert Bruce; Thompson, Barbara Fritchman (24 July 2003). PC Hardware in a Nutshell: A Desktop Quick Reference. "O'Reilly Media, Inc.". ISBN 978-0-596-55234-3.
  20. ^ Parallel Port Definition Archived 2025-08-07 at the Wayback Machine, Techopedia
[edit]
懒惰是什么意思 沉淀是什么意思 吃什么对痔疮好得快 3000年前是什么朝代 65岁属什么
鹤顶红是什么 camp医学上是什么意思 梦见韭菜是什么预兆 孕妇耳鸣是什么原因引起的 腱鞘是什么
心脑供血不足吃什么药效果最好 勒索是什么意思 出淤泥而不染是什么花 除草剂中毒有什么症状 牙冠是什么样子的图片
肚子左边是什么部位 军校是干什么的 数字17代表什么意思 什么牌子的蓝牙耳机好 气管炎用什么药
61是什么意思hcv8jop1ns4r.cn 挽留是什么意思hcv8jop4ns0r.cn 尿道下裂是什么意思hcv8jop3ns0r.cn 肠镜挂什么科hcv8jop6ns0r.cn 不完全性右束支传导阻滞是什么意思hcv9jop3ns7r.cn
私事是什么意思hcv7jop5ns3r.cn 小祖宗是什么意思hcv9jop7ns0r.cn vup是什么意思xinjiangjialails.com 什么人不能吃香蕉hcv7jop9ns8r.cn 反酸水吃什么药hcv7jop7ns1r.cn
做扩胸运动有什么好处hcv9jop4ns8r.cn 流产什么样的症状表现hcv8jop7ns1r.cn 激素吃多了对身体有什么副作用cl108k.com aa是什么意思1949doufunao.com 男性感染支原体有什么症状jiuxinfghf.com
什么不什么干hcv8jop0ns5r.cn 心情沉重是什么意思hcv8jop9ns3r.cn 什么是取保候审hcv8jop6ns4r.cn 为什么打哈欠会流眼泪hcv8jop3ns8r.cn wba是什么意思hcv9jop7ns0r.cn
百度