Access to parallel port

How can I write to and read the parallel port, LPT1?

How can I look at the address 0x408 to find the address of LPT1?

Lewis Jones

This question has been asked and lots of answers given in other (and
maybe even this) newsgroup. I suggest doing a search of the groups using
‘parallel’ as a match term on the subject line. The group
‘qdn.public.qnxrtp.os’ isa good start. Basically access is via the
mmap_device_io() call…

Lewis Jones wrote:

How can I write to and read the parallel port, LPT1?

How can I look at the address 0x408 to find the address of LPT1?

Lewis Jones

John H. Zouck
The Johns Hopkins University
Applied Physics Laboratory

I’m looking for an answer to Lewis’ question, and for code that I can adapt
for an application that I’m testing before making the leap into the QNX
world.

The application will read from a 68HC11 connected to an ECP parallel port.
I would like to read up to 12 bytes from the port before processing the
data. I believe that by toggling the hostack/perifack bits and checking the
FIFO, that the host can read the 12 bytes from the port and then turn the
port back to the peripheral device.

Does anyone have code that they would be willing to share?

By the way, I have searched the newsgroups, but I’m unable to get to
anything before the beginning of this year.

Thanks
Bruce Casson


“Lewis Jones” <lewis@arcom.com.au> wrote in message
news:3AB9DE2D.BB963309@arcom.com.au

How can I write to and read the parallel port, LPT1?

How can I look at the address 0x408 to find the address of LPT1?

Lewis Jones