Board index » delphi » I need help about Parallel port

I need help about Parallel port

Hi, I'm a young programmer, and i have create a software to control some
teather light with PC, using parallel port.
Now I'll want to upgrade my program using new parallel port standard like
ECP, EPP.
I have find a www site that explain the signal standard, bat don't explain
how to program them.
I hope someone want to help me!!!!

The www site is http://www.fapo.com/1284int.htm

 

Re:I need help about Parallel port


Simone Buzzi schrieb:

Quote

> Hi, I'm a young programmer, and i have create a software to control some
> teather light with PC, using parallel port.
> Now I'll want to upgrade my program using new parallel port standard like
> ECP, EPP.
> I have find a www site that explain the signal standard, bat don't explain
> how to program them.
> I hope someone want to help me!!!!

> The www site is http://www.fapo.com/1284int.htm

Ports are simply written bytewise with the
Port[nnn] := bb;
instruction.
and read with
cc := Port[nnn];

What you need is the information which port number nnn is used for the
printer ($378 = data, $379 = status/commands) and which bits in the
status / command byte are used for which purpose. This is a hardware
information and can be found in appropriate manuals.

You find the address of LPT1 data port in memory at $0040:$0008,
LPT2 at $0040:000A etc.

Franz Glaser
http://members.eunet.at/meg-glaser

Other Threads