Parallel port: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
(→‎Pin types: serial ports?)
Line 1: Line 1:
The parallel port uses a sub-d 25 connector to provide a 8-bit data bus. It is commonly used by printers. There are 3 kinds of parallel ports: Standard Parallel Port (SPP), Enhanced Parallel Port (EPP) and Extended Capabilities Parallel Port (ECP). iirc they are all part of IEEE Standard 1284, or is it just the second two?
The parallel port uses a sub-d 25 connector to provide a 8-bit data bus. It is commonly used by printers. There are 3 kinds of parallel ports: Standard Parallel Port (SPP), Enhanced Parallel Port (EPP) and Extended Capabilities Parallel Port (ECP). iirc they are all part of IEEE Standard 1284, or is it just the second two?
==Pin types==
==Pin types==
Most parallel ports come in either 36, 25 or 9 pin varieties. 25 and 9 pins being the most common.
Most parallel ports come in either 36 or 25 pin varieties. 25 being the most common.
''I believe that it is serial ports that come in 9 and 25 pin varieties. I'm pretty sure Parallel is only 36 and 25. Can anybody confirm this? [[User:Yayyak|Yayyak]] 18:16, 23 March 2008 (CDT)''


==Registers & Common Address==
==Registers & Common Address==

Revision as of 09:30, 26 March 2008

The parallel port uses a sub-d 25 connector to provide a 8-bit data bus. It is commonly used by printers. There are 3 kinds of parallel ports: Standard Parallel Port (SPP), Enhanced Parallel Port (EPP) and Extended Capabilities Parallel Port (ECP). iirc they are all part of IEEE Standard 1284, or is it just the second two?

Pin types

Most parallel ports come in either 36 or 25 pin varieties. 25 being the most common.

Registers & Common Address

Common base addresses are:

  • LPT1: 0x378 (or occasionally 0x3BC) (IRQ 7)
  • LPT2: 0x278 (IRQ 6)
  • LPT3: 0x3BC (IRQ 5)

Data Register

Address = Base Address + 0

Any byte writen to this register is put on pins 2 through 9 of the port. Any read from this register reflects the state of the port.

Status Register

Address = Base Address + 1

Control Register

Address = Base Address + 2