Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Can I control the parallel port?

Original Message
Name: nsteinme
Date: February 13, 2008 at 22:28:10 Pacific
Subject: Can I control the parallel port?
OS: WinXP
CPU/Ram: 1.6ghz/512mb
Model/Manufacturer: IBM thinkpad
Comment:
Hi, I was wondering if there is a way to control the individual pins of the parallel port precisely. I simply want to read each pin (i.e. see if it is in up or down state) and also control them (move them to up or down state). It would be best if I could do this in java or c++. Thanks!

Nick


Report Offensive Message For Removal


Response Number 1
Name: Razor2.3
Date: February 14, 2008 at 00:40:05 Pacific
Subject: Can I control the parallel port?
Reply: (edit)
Pst! It's usually faster to check Google first.

Report Offensive Follow Up For Removal

Response Number 2
Name: nsteinme
Date: February 14, 2008 at 08:29:37 Pacific
Subject: Can I control the parallel port?
Reply: (edit)
I checked google and found a parallel port library for java before I posted here. The difference is that the library I found and everything else I can seem to find suggests that you can write one byte to the eight data pins and read one byte from the eight "status" pins, but I want to know if:
1) You can access the other eight pins (25 total - 1 gnd - 8 data - 8 status = 8 left)
2) You can read and write on any of them.

Basically I was hoping to find a library with two commands:
bool checkPin(int pinNum);
void writePin(int pinNum, bool newState);

This is what I couldn't find on google.

Thanks!

Nick


Report Offensive Follow Up For Removal

Response Number 3
Name: wizard-fred
Date: February 14, 2008 at 11:46:53 Pacific
Subject: Can I control the parallel port?
Reply: (edit)
The other pins are also ground. The status and data bytes can be read and write individually using bitwise operations.

Report Offensive Follow Up For Removal

Response Number 4
Name: geoshrad
Date: February 18, 2008 at 00:36:17 Pacific
Subject: Can I control the parallel port?
Reply: (edit)
That is it, they are ground

George

www.geoshrad.com


Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Can I control the parallel port?

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




how to setup call of duty to joytok

WindowsME / HotMail Problem

Corrupt memory

Convert fat32 to Ntfs

Best WinMo phone of 2008


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC