Re: Access to parallel port in Linux and WinXP

From: Walter Roberson (roberson_at_ibd.nrc-cnrc.gc.ca)
Date: 10/20/04


Date: 20 Oct 2004 01:00:22 GMT

In article <547d92f1.0410191321.29104ac6@posting.google.com>,
karan <karan@iitk.ac.in> wrote:
:Is it possible to make a program which can write to that parallel port
:buffer/register which stores the input data to the parallel port (from
:the printer). In effect, I am trying to manipulate the data registers
:of the parallel port.

That would probably depend on the exact chip used to impliment
the parallel port. Generally speaking, modern parallel ports are
designed to be bidirectional, so data written the I/O port would
not be read back when a read is done against the same port number,
with the chip looking at the read/write request to determine whether
to buffer in or out of the chip.

There isn't any reason why someone could not design the I/O registers
so that the reads had to be done to a different port number than was
used for the writes: it is more a convention than a requirement.
Looping back is not the normal mode of operation of a parallel port
chip, and designers often prefer to minimize the number of different
dataports needed rather than separate functionalities cleanly,
so the tendancy is to a single data port with a series of control
ports, and not to an input data port separate from the output data
port and separate from all of the control ports.

-- 
   Reviewers should be required to produce a certain number of
   negative reviews - like police given quotas for handing out
   speeding tickets.                        -- The Audio Anarchist


Relevant Pages

  • Re: Printer port confusion
    ... indicates that pins 10 and 15 are inverted inputs, ... PC Parallel Port Mini-FAQ ... The data register is at IOBase+0. ...
    (sci.electronics.basics)
  • Re: Why are laptops no longer made with serial ports?
    ... >> have much more use for a serial port than a parallel port so how is it ... > The parallel port is still very useful for other things apart from printers. ... My calculator watch is Solar... ... which involves simultaneous simulation of multiple universes (To see ...
    (sci.geo.satellite-nav)
  • Re: Cant print with Epson Stylus COLOR 600 on XP.
    ... The Epson Stylus 600 works fairly well with XP. ... a parallel port, usually LPT1 ... setting is best set for standard parallel port, SPP, bi-directional port ... The Epson LQ-860 drivers, and a few others, can be used. ...
    (microsoft.public.windowsxp.print_fax)
  • Re: Auction: SCSI and Startech adapter
    ... UARTs, one non-bi-di parallel port. ... 16C552 datasheet it marked pin 1 to ...
    (comp.sys.ibm.ps2.hardware)
  • Re: Need to choose economical Laser Printer and Router.
    ... look at the smc barricade ..it is a router with a parallel port for print ... >>I read that Parallel port connection prints much slower than Ethernet ... I assume USB is also fast, ...
    (microsoft.public.windowsxp.print_fax)