best view in 1024x768 resolution
Stuffs
About Site
Projects
Thesis
Photos
News
Links
Electronics
Downloads
Contact Page
Using Pc Parallel Ports and Delphi commands

 

USING DELPHI :

To use Delphi for port operations you have to write some simple procedures given below.

 procedure PortOut(IOport:word; Value:byte); assembler; 

asm

   xchg ax,dx 

   out dx,al 

end;

 

function PortIn(IOport:word):byte; assembler; 

asm

   mov dx,ax 

   in al,dx 

end;

After that you should easily send and receive information...

For example :  PortOut( 888 , 2 )  to send  5 Volts to Pin3. You can use variables ,too.

Like PortOut ( 888 , X )   X: integer,byte,word vs...

 

The program given below can help you to create your own animations and change the data pins  from 2 to 9    

Click here to download...    Port.zip (189Kb)    

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   
 
 Contact with us |  MakaledoN News |
 ©2003 MakaledoN EngineerinG. All rights reserved.

Designed by MistyFuture

Hosted by www.Geocities.ws

1