You should be able to just open the device file (assuming you
have the device driver loaded) for the par port.  It's probably
/dev/lp0 or something similar.  Open just like a normal file and
you should be able to do read/writes just like a normal file.  To
change the parameters for the port you use ioctl calls.  These
ioctl calls should also let you do low level stuff like toggle/read
individual bits of the actual port.  Since it sounds like you don't
want to use the parallel port except as a simple io port with 8
lines.  Don't know about how to do ioctl()s with perl, but I did
a search for "ioctl parallel port"  on google.com/linux and the
very first hit was somewhat helpful.  Good luck.

weston

ps  I have used ioctl() calls to directly access the individual pins
     on a serial port for an IR interface project I did.  I borrowed
     the idea from the code for the X10 firecracker Linux driver.

Joe Knize wrote:
> Does anyone know how to program the parallel port?  Specifically, I'd like
> to be able to read and write TTL level signals through the various pins, 
> especially using Perl, but any leads on reading/writing would be
> appreciated.
> 
> Thanks,
> 
> jfk
> 
> 
> 
> ---------------------------------------------------------------------------
> Send administrative requests to [EMAIL PROTECTED]
> 
> 
> 


-- 
"Beware of he who would deny you access to information,
for in his heart, he dreams himself your master."

---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to