Re: OT: DOS programming EPP




"PaulCsouls" <paulcsouls@xxxxxxxxxxxxxxxx> wrote in message
news:oga8t1pcukmjfpb952o9d1o40gf7h6473a@xxxxxxxxxx
> On Sun, 22 Jan 2006 22:05:27 GMT, "Robert" <Robert@xxxxxxxxx> wrote:
>
>>
>>"PaulCsouls" <paulcsouls@xxxxxxxxxxxxxxxx> wrote in message
>>news:sfh7t1hl57573mbnqbesvj9ktgdmufd82p@xxxxxxxxxx
>>> On Sun, 22 Jan 2006 03:14:06 GMT, Robert Baer
>>> <robertbaer@xxxxxxxxxxxxx> wrote:
>>>
>>>> I have done a websearch, and there is nothing available that
>>>>eXplicitly shows how to program a parallel port in the EPP mode, and how
>>>>to *safely* interface with it.
>>>> The best (incomplete) source i found was on the beyondlogic.org site.
>>>> However, no matter what i do, the nominally input printer pins (pin 1
>>>>= strobe, pin 13 = select and pin 15 = error bar) act like outputs.
>>>> Data lines when low safely sink 2mA (did not try more as i did not
>>>>want to zap the MB) R=45 ohms, and when high safely source 1mA (did not
>>>>try more R=2.2K).
>>>> "Strobe" line pin 1 was always high and safely sink 1.5mA R=730 ohms.
>>>> "Select" line pin 13 was always high and safely sink 1.0mA R=2.2K.
>>>>
>>>> There seems to be *no* specifications or equivalent circuits for the
>>>>parallel port as implemented on the ASICs used in modern PCs.
>>>> Therefore, it is completely unknown as to the maximum safe sink
>>>>current to a logic low pin or the maximum source current from a logic
>>>>high pin.
>>>> It is not wise to force a pin that is acting as an output, into the
>>>>opposite state; so the info is necessary for safety.
>>>>
>>>> I want and need to program this in DOS.
>>>>
>>>>** as an aside, it was interesting to see that when Windoz booted after
>>>>my fiddling, that i saw "detecting new hardware" etc.
>>>
>>> Go back to the beyond logic page and read the parallel port FAQ from
>>> the beginning. The EPP page assumes you did. You need to set up the
>>> extended control register (BASE + 0x400). In EPP mode Strobe is the
>>> WRITE/NOT READ bit and an output.
>>> I think you need to do some C or BASIC code to do any of this. I don't
>>> think you can just use DOS shell commands.
>>>
>>> Paul C
>>
>>Coming into this thread late but I've set the parallel port on my PC to
>>different modes through the BIOS.
>>
>>Robert
>>
> Okay, but then what do you do with it? I've always written C programs
> using inportb and outportb to read and write from the parallel port. I
> guess print will write a file to the port, but is there a command to
> read a file in?
>
> Paul C

Not that I'm aware of. Some are bidirectional and some get their inputs from
the control lines which can be read in.

See: http://www.beyondlogic.org/spp/parallel.htm

and others for details.

Robert


.



Relevant Pages

  • Re: Standby then printer problems
    ... Actually it will be through some other software as this is a Startech dual PCI parallel port card. ... Paul DS ... Windows Printing Team ... is there any way to make a printer that is in standby wake-up when another computer attempts to print a document to a shared printer on the first PC? ...
    (microsoft.public.windowsxp.print_fax)
  • Re: Thread Sheduling in Windows CE or Kernel Timer
    ... I agree with Paul on this, without interrupts you are going to face a real ... interrupt if your CPU has one that you can use. ... Actually Parallel port is interfaced with Dual Port RAM from which i ... missing the data from Parallel Port when doing some gui operations. ...
    (microsoft.public.windowsce.app.development)
  • Re: OT: DOS programming EPP
    ... >>eXplicitly shows how to program a parallel port in the EPP mode, ... >> However, no matter what i do, the nominally input printer pins (pin 1 ... >>parallel port as implemented on the ASICs used in modern PCs. ... > think you can just use DOS shell commands. ...
    (sci.electronics.design)
  • Re: Direct cable Connection
    ... By copying the desired files from the shared directory on the other PC ... to your local drive and vice versa. ... Paul wrote: ... > parallel port, ...
    (microsoft.public.win2000.networking)
  • Re: OT: DOS programming EPP
    ... >>>eXplicitly shows how to program a parallel port in the EPP mode, ... >>> However, no matter what i do, the nominally input printer pins (pin 1 ... >> Paul C ...
    (sci.electronics.design)

Loading