Re: OT: DOS programming EPP
- From: PaulCsouls <paulcsouls@xxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jan 2006 01:04:01 GMT
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
.
- Follow-Ups:
- Re: OT: DOS programming EPP
- From: Robert
- Re: OT: DOS programming EPP
- References:
- OT: DOS programming EPP
- From: Robert Baer
- Re: OT: DOS programming EPP
- From: PaulCsouls
- Re: OT: DOS programming EPP
- From: Robert
- OT: DOS programming EPP
- Prev by Date: Re: Favorite electronics movies
- Next by Date: Re: small signal NPN transitor for muting microphone
- Previous by thread: Re: OT: DOS programming EPP
- Next by thread: Re: OT: DOS programming EPP
- Index(es):
Relevant Pages
|