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




Recommended Book
Parallel Port Complete: Programming, Interfacing, & Using the PC's Parallel Printer Port
By Jan Axelson
Lakeview Research
Price: $18.77

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 LaCie USB 2.0 PCI Card (107435) Serial Adapter $
HP Small/Medium Business: $29.51 Compuvest: $464.49
Jr: $469.99 Pcnation: $406.80

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 (1)

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

  • Recommended Deals
    Adaptec USB2connect™ 4000 (2000300) Serial Adapter


    A Matter of Fax: $141.41 PriceLess InkJet: $126.97
    Suppliesguys: $138.78 Partstore: $153.34
    Thenerds: $114.99
    CMS (USB2-CONT) Serial Adapter


    TECHONWEB: $65.97 Dell: $59.99
    Supermicro (SYS-5035G-TB) (SYS5035GTB) Server


    Server Supply: $695.00 Amazon: $624.99
    TECHONWEB: $581.82 A Matter of Fax: $586.86
    PCNation: $588.34 MacMall: $763.99
    Supermicro SuperServer 5025M-i (SYS5025MIB)


    Amazon: $1005.74 NEQX: $699.00
    Serversandparts: $647.00
    IBM eServer xSeries 225 8649 (86495bx)


    Server Supply: $1050.00 Micropartsusa: $78.00

    RSSLatest News
    Elpida Develops 65-nm Memory Chips
    October 6, 2008 - 11:10 AM PST
    Transcend Launches T5 Flash Memory
    October 3, 2008 - 11:50 AM PST
    Thermaltake Announces BigTyp14 Pro CPU Cooler
    October 3, 2008 - 11:28 AM PST
    A-Data Announces Triple-Channel DDR3 kits for Core i7 Processors
    October 3, 2008 - 11:17 AM PST
    EVGA Launches nForce 790i SLI FTW Mainboard
    October 3, 2008 - 11:07 AM PST
    GlacialPower Launches 650 W PSU
    October 2, 2008 - 9:56 AM PST
    Manufacturers Launch Radeon HD 4550 and HD 4350 Cards
    October 1, 2008 - 9:51 AM PST
    AMD/ATI Launches Radeon HD 4550 and HD 4350
    September 30, 2008 - 9:25 AM PST
    Buffalo Announces DDR3-2400
    September 29, 2008 - 8:00 AM PST
    OCZ Launches HydroFlow Processor Water Block
    September 26, 2008 - 11:52 AM PST
    .:: More News ::.

    RSSLatest Content
    Kingwin Mach 1 ABT-700MA1S 700 W Power Supply Review
    Thermaltake V9 Case Review
    OCZ Dominatrix Gaming Mouse Review
    Rosewill Wind Ryder RZLS142-AP Case Review
    AeroCool AeroRacer Pro Case Review
    iPod Touch 2nd Generation Review
    Olympus SP-570UZ Digital Camera Review
    Zalman ZM600-HP 600 W Power Supply Review
    Tagan A+ Curbic Case Review
    Everything You Need to Know About The Motherboard Voltage Regulator Circuit
    Inside Atom Architecture
    ECS A790GXM-A Black Series Motherboard Review
    AMD ATI Chips Comparison Table
    All Core 2 Models
    All Celeron Models

    Our Most Popular Articles
    Maximum CPU Temperature
    792,405 views
    nVidia Chips Comparison Table
    493,105 views
    AMD ATI Chips Comparison Table
    435,983 views
    ATI Radeon X1300 Pro Review
    419,813 views
    ATI Radeon X1600 XT Review
    413,994 views
    How to Find Out Your Motherboard Manufacturer and Model
    403,721 views
    Connecting Two PCs Using a USB-USB Cable
    362,548 views
    How To Correctly Apply Thermal Grease
    347,123 views
    Sempron vs. Athlon XP
    283,908 views
    Sempron 3400+ Review
    274,720 views

    Latest Threads in Our Forums
    Budget Gaming PC
    by kiddmanty
    Elpida Develops 65-nm Memory Chips
    by Hardware Secrets Team
    Need advices with a 512 kbps internet connection
    by Gamer Z
    creative x fi elite pro spdif output
    by Gamer Z
    Everything you Need to Know About ATA-66, ATA-100 and ATA-133 Hard Disks
    by aopen
    Recovering Hard Disks with Bad Blocks
    by aopen
    Anatomy of a Hard Disk Drive
    by aopen
    need subject about pcb for hardisk --mr Gabriel Torres
    by aopen
    Kingwin Mach 1 ABT-700MA1S 700 W Power Supply Review
    by C.Gajo
    Mobo faulty
    by Gabriel Torres
    .:: Visit Our Forums ::.


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