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 $13.93
Home » Motherboard » Bus
How To Build Parallel Port Prototypes
Author: Gabriel Torres
Type: Tutorials Last Updated: October 13, 2005
Page: 7 of 7
Real-time pricing for NEW Video D9757D.
The Brooklyn Connection - How to Build a Guerilla Army Richard Holbrooke Martijn 't Hart Klaartje Quirijns Katharina Wartena Rob Fruchtman George Brugmans Stacy Sullivan Movies New Video Group The Brooklyn Connection - How to Build a Gueril
Amazon: $24.49

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.
    Iogear GIC251UIogear GIC251U

    IOGear 5-Port Hi-Speed USB 2.0 PCI Card GIC251U Electronics IOGear 5-Port Hi-Speed USB 2.0 PCI Card GIC251U GIC251U GIC251U

    Amazon: $19.99 Wal-Mart: $23.82
    Newegg: $19.99 TigerDirect: $19.97

    RSSLatest News
    Arctic Cooling Intros Cooler for Radeon HD 5970 and HD 5870
    March 12, 2010 - 11:19 AM PST
    OCZ Announces 32 GB Onyx SSD Unit
    March 10, 2010 - 3:08 PM PST
    MSI Launches X-Slim X360 Laptop
    March 9, 2010 - 3:15 PM PST
    Spire Launches TherMax Eclipse II CPU Cooler
    March 8, 2010 - 1:59 PM PST
    Sparkle Gives 3D Glasses with GeForce GT 240 Video Cards
    March 5, 2010 - 11:28 AM PST
    Corsair Launches Force SSD Drive
    March 4, 2010 - 7:17 AM PST
    Kingston Announces HyperX LoVo DDR3 Memory Kits
    March 3, 2010 - 8:07 PM PST
    Mushkin Intros Ridgeback Memory Series
    March 3, 2010 - 7:54 PM PST
    Thermaltake Launches Frio CPU Cooler
    March 3, 2010 - 3:45 PM PST
    AMD Unveils 890GX Chipset
    March 2, 2010 - 2:25 PM PST
    .:: More News ::.

    RSSLatest Content
    OCZ Z Series 850 W Power Supply Review
    HIS Radeon HD 5570 Fan Video Card Review
    Core i7-980X CPU Review
    Gelid Tranquillo CPU Cooler Review
    How to Discover Your Power Supply Real Manufacturer
    OCZ Z Series 1000 W Power Supply Review
    Amacrox Free Earth 85PLUS 650 W Power Supply Review
    ECS A890GXM-A Motherboard
    ASUS M4A89GTD PRO/USB3 Motherboard Review
    PC Power Supply Protections: They Won’t Always Protect You
    Huntkey Balance King 4500 450 W Power Supply Review
    Four Tech Movies Every IT Pro Should See
    AMD ATI Chips Comparison Table
    JVC Picsio GC-FM1 Camcorder Review
    OCZ ModXStream Pro 600 W Power Supply Review

    Our Most Popular Articles
    Maximum CPU Temperature
    1,149,223 views
    How to Find Out Your Motherboard Manufacturer and Model
    811,213 views
    nVidia Chips Comparison Table
    739,834 views
    Connecting Two PCs Using a USB-USB Cable
    668,016 views
    How To Correctly Apply Thermal Grease
    621,465 views
    AMD ATI Chips Comparison Table
    606,986 views
    ATI Radeon X1300 Pro Review
    505,544 views
    ATI Radeon X1600 XT Review
    493,355 views
    How To Perform a BIOS Upgrade
    440,407 views
    Understanding RAM Timings
    378,642 views

    Latest Threads in Our Forums
    PSU Wattage and Choice Help
    by Wolfgang
    OCZ Z Series 850 W Power Supply Review
    by Korot
    OCZ Z Series 1000 W Power Supply Review
    by Gabriel Torres
    rosewill libertas lib-800 review
    by nubjub
    Arctic Cooling Intros Cooler for Radeon HD 5970 and HD 5870
    by Hardware Secrets Team
    TV or Monitor
    by Olle P
    Gpu Fans.....
    by Olle P
    Lower power PSU recommendations
    by Olle P
    HIS Radeon HD 5570 Fan Video Card Review
    by Hardware Secrets Team
    Sansa clip plus battery
    by guitarist
    .:: Visit Our Forums ::.


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