Hardware Secrets
Home | Camera | Case | CE | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
First Look
Gabriel's Blog
News
Reviews
Tutorials
Main Menu
About Us
Awarded Products
Compare Prices
Datasheets
Dictionary
Download
Drivers
Forums
Links
Manufacturer Finder
Newsletter
On The Web
RSS Feed
Test Your Skills
Twitter
Newsletter
Subscribe today!
Search




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 $8.98
Home » Motherboard » Bus
How To Build Parallel Port Prototypes
Author: Gabriel Torres
Type: Tutorials Last Updated: October 13, 2005
Page: 7 of 7
$ Check REAL-TIME pricing for Motorbooks How to Build a Hot Rod Model Ford Dennis Parks ISBN RGMN2Y $.
Buy.com: $64.18

Advanced Features

So far we only talked about sending data out the parallel port. Actually you can read data using the parallel port. The standard parallel port, also known as SPP, uses two extra addresses for status (379h) and control (37Ah). If you read the contents of I/O address 379h you will be able to read the status of Busy, Acknowledge, Paper Empty, Select and Error pins found on the parallel port. This can be very useful if you’d like to build a circuit to send data to the computer. For example, if you have some kind of sensor and want your program to turn on an alarm if this sensor is triggered, this is one way to accomplish that.

Status Address

As mentioned above, reading I/O address 379h you can read the status of Busy, Acknowledge, Paper Empty, Select and Error pins. You get an 8-bit value with the following format:

bit 7

bit 6

bit 5

bit 4

bit 3

bit 2

bit 1

bit 0

/BUSY

ACK

PE

SELECT

ERROR

X

X

X

Control Address

Writing data to this I/O address (37Ah) you can use the other control lines available at the parallel port. So in fact you have more output bits on the parallel port that the standard eight data bits, but these extra bits are accessed on a different address. Also, the bit number 4 of the control address masks IRQ7. With this bit set to “1” IRQ7 can occur.

bit 7

bit 6

bit 5

bit 4

bit 3

bit 2

bit 1

bit 0

X

X

X

IRQ 7

/SELECT INPUT

INIT

/AUTO FD XT

/STROBE


Bi-Directional Modes

If you mastered the basics, you can go ahead and study two different modes the parallel port can work: EPP (Enhanced Parallel Port) and ECP (Enhanced Capabilities Port). These two modes are generically known as “bi-directional modes”, because under these modes the data pins can be used for both input and output, contrary to the standard parallel port mode, SPP, where the port can only send data, not receive (this statement is not completely true, since you can use the status bits to receive data – this technique is called nibble mode).

Using EPP and ECP modes, however, is not so easy as it is to use the standard mode. For full details on these modes as well as far more information on building prototypes using the parallel port, we recommend the book Parallel Port Complete, by Jan Axelson.

Pages (7): « 1 2 3 4 5 6 [7]
Print Version | Send to Friend | | Bookmark Article | Comments (5)

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

  • Recommended Deal.
    USB 2.0 PCI Card 5-Port Adapter Hi-Speed 5PORTIogear PCI to 5 Ports USB2.0 Card Model GIC251U - Retail


    Newegg: $19.99 Wal-Mart: $21.98
    TigerDirect: $19.99 Amazon: $17.97

    RSSLatest News
    IN WIN LAN Party in Southern California
    November 20, 2009 - 12:37 PM PST
    Patriot Announces PS-100 SSD Series
    November 19, 2009 - 7:30 AM PST
    Antec Launches TPQ-1200 PSU
    November 18, 2009 - 11:30 AM PST
    AMD/ATI Launches Radeon HD 5970
    November 18, 2009 - 10:18 AM PST
    OCZ Launches Colossus SSD Series
    November 17, 2009 - 1:39 PM PST
    NZXT Unleashes Tempest EVO Mid-Tower Case
    November 17, 2009 - 1:06 PM PST
    nVidia Launches GeForce GT 240
    November 17, 2009 - 10:18 AM PST
    Arctic Cooling Announces Accelero TWIN TURBO PRO VGA Cooler
    November 16, 2009 - 11:46 AM PST
    PowerColor Announces PLAY! HD5770 Video Card
    November 13, 2009 - 12:51 PM PST
    G.Skill Announces Falcon II SSD Series
    November 11, 2009 - 3:31 PM PST
    .:: More News ::.

    RSSLatest Content
    Ultra X4 500 W Power Supply Review
    Seagate Barracuda XT 2 TB Hard Disk Drive Review
    Nintendo Wii Fit Plus Review
    AMD ATI Chips Comparison Table
    nVidia Chips Comparison Table
    Gigabyte G41M-ES2L Motherboard
    Netflix on Playstation 3 Review
    CM Storm Sentinel Advance Mouse Review
    Titan Skalli CPU Cooler Review
    Nexus RX-6300 630 W Power Supply Review
    Gigabyte P55-UD6 Motherboard
    Nintendo Wii Review
    SilverStone Grandia GD04 Case Review
    Can We Trust the 80 Plus Certification?
    NZXT Gamma Case Review

    Our Most Popular Articles
    Maximum CPU Temperature
    1,078,621 views
    How to Find Out Your Motherboard Manufacturer and Model
    706,624 views
    nVidia Chips Comparison Table
    679,407 views
    Connecting Two PCs Using a USB-USB Cable
    593,726 views
    How To Correctly Apply Thermal Grease
    562,735 views
    AMD ATI Chips Comparison Table
    560,331 views
    ATI Radeon X1300 Pro Review
    488,011 views
    ATI Radeon X1600 XT Review
    477,170 views
    How To Perform a BIOS Upgrade
    394,697 views
    Sempron vs. Athlon XP
    338,589 views

    Latest Threads in Our Forums
    Dell Inspiron 6000 Powers but will not boot...
    by Merman
    Ultra X4 500 W Power Supply Review
    by Merman
    IN WIN LAN Party in Southern California
    by Hardware Secrets Team
    Getting A Hard Copy
    by Trevorrross
    Am I Making The Right Choice?
    by need2know
    Is it available to mount the Zalman cooler?
    by Olle P
    dsl modem prob
    by Sherry
    Seagate Barracuda XT 2 TB Hard Disk Drive Review
    by Hardware Secrets Team
    Overclocking a dell xps 410
    by 6dracing
    How to recover mp3's, pdf & chm files, applications from formated harddrive partition
    by tomahawk 1705
    .:: Visit Our Forums ::.


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