Hardware Secrets
Home | Camera | Case | CE | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
Editorial
First Look
Gabriel’s Blog
News
Reviews
Tutorials
Main Menu
About Us
Awarded Products
Datasheets
Dictionary
Download
Drivers
Facebook
Links
Manufacturer Finder
Newsletter
RSS Feed
Test Your Skills
Twitter
Newsletter
Subscribe today!
Recommended
Parallel Port Complete: Programming, Interfacing, & Using the PC's Parallel Printer Port
Parallel Port Complete: Programming, Interfacing, & Using the PC's Parallel Printer Port, by Jan Axelson (Lakeview Research), starting at $0.01


Home » Motherboard » Bus
How To Build Parallel Port Prototypes
Author: Gabriel Torres 145,987 views
Type: Tutorials Last Updated: October 13, 2005
Page: 2 of 7
Understanding The Parallel Port

On the PC the parallel port uses a 25-pin connector (called DB-25, 25-pin D-sub or 25-pin D-shell), as you can see in Figure 2. On printers, however, a different kind of connector is used, called Centronics, which has 36 pins.

Parallel Port (LPT1)
click to enlarge
Figure 2: The parallel port.

Besides the eight data bits, there are more signals available on the parallel port. In the table below we list all the basic parallel port signals and their function, as well as their location on both standard 25-pin and Centronics connector. The I/O column indicates if the signal is input (I) or output (O). Input means that the signal must come from the device to the parallel port (i.e., the signal must be provided by your prototype); output means that the signal comes from the parallel port.

Signal Name Pin (25-pin standard connector) Pin (36-pin Centronics Connector) I/O  Description
/STROBE Strobe  01 01 O Indicates if data is ready or not to be transmitted.(0 = Data ready to be transmitted, 1 = Data not ready to be transmitted)
/ACK Acknowledge 10 10 I Indicates that the printer is ready to receive data.
BUSY Busy 11 11 I Indicates that the printer is not ready to receive data.
PE Paper Empty 12 12 I Indicates that the printer has no paper to print on.
SELECT  Select 13 13 I Indicates that the printer is on its ”on line“ state, ready to get information.
/AUTO FD XT Auto Feed 14 14 O The printer moves the paper to the beginning of the next line.
/ERROR Error 15 32 I Some error occured (printer disabled, paper empty).
/INIT Init 16 31 O Resets the printer and clears its printing buffer.
/SELECT INPUT Select Input 17 36 O Data can only be transferred to the printer when this line is set to ”0“.
D0 through D7 D0 through D7 2 through 9 2 through 9 O Data bits.
GND Ground  18 through 25 19 through 30 O Ground.


The parallel port uses three I/O addresses: data (378h), status (379h) and control (37Ah). If you want to send data to the parallel port and get this data outside the computer, just write this data to the parallel port data address. For example, if we want to turn on all our LEDs, all we need to do is to send the value 255 (which is the decimal equivalent for 11111111, i.e., all data bits set to ”on“) on the address 378h. Of course we will explain more about this and also the role of the status and control addresses.

Print Version | Send to Friend | Bookmark Article « Previous |  Page 2 of 7  | Next »

Related Content
  • Computer Port Extension
  • Why Serial?
  • Installing Frontal USB Ports

  • RSSLatest Content
    ASRock Z97 Anniversary Motherboard
    December 16, 2014 - 4:27 AM
    Gigabyte H81M-S2PH Motherboard
    December 12, 2014 - 3:05 AM
    Aerocool Dead Silence Case Review
    December 2, 2014 - 3:00 AM
    NZXT S340 Case Review
    November 27, 2014 - 3:45 AM
    AMD A4-5000 CPU Review
    November 26, 2014 - 3:10 AM
    Samsung Galaxy Note Pro 12.2 Tablet Review
    November 25, 2014 - 3:00 AM
    ASUS X99-PRO Motherboard
    November 5, 2014 - 3:00 AM
    ASRock QC5000-ITX Motherboard
    November 4, 2014 - 3:00 AM
    Gigabyte X99-UD3 Motherboard
    October 30, 2014 - 8:30 AM
    ASUS X99-A Motherboard
    October 29, 2014 - 3:00 AM







    2004-14, Hardware Secrets, LLC. All rights reserved.
    Advertising | Legal Information | Privacy Policy
    All times are Pacific Standard Time (PST, GMT -08:00)