Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Help !testport.bas
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 7th February 00:29
rocky
External User
 
Posts: 1
Default Help !testport.bas



Hi !

This program was working before and I was able to read any pin of my
parallel port with a pentium II . Now I have a P4 lpt connector on the
mother board, at address 378 (888) and nothing work anymore.
I test it on my ThinkPad same problem. Did I lost few lines in my prog or do
I have to Def something at the beginning

CLS
OUT 890, 0
DO

IN1 = -((INP(890) AND 1) = 0)
IN14 = -((INP(890) AND 2) = 0)
IN16 = -((INP(890) AND 4) = 4)
IN17 = -((INP(890) AND 8) = 0)
IN15 = -((INP(889) AND 8) = 8)
IN13 = -((INP(889) AND 16) = 16)
IN12 = -((INP(889) AND 32) = 32)
IN10 = -((INP(889) AND 64) = 64)
IN11 = -((INP(889) AND 128) = 128)
LOCATE 11, 1
PRINT "Pin #1 Adresse 890 (bit 0)="; IN1
PRINT "Pin #14 Adresse 890 (bit 1)="; IN14
PRINT "Pin #16 Adresse 890 (bit 2)="; IN16
PRINT "Pin #17 Adresse 890 (bit 3)="; IN17
PRINT "Pin #15 Adresse 889 (bit 3)="; IN15
PRINT "Pin #13 Adresse 889 (bit 4)="; IN13
PRINT "Pin #12 Adresse 889 (bit 5)="; IN12
PRINT "Pin #10 Adresse 889 (bit 6)="; IN10
PRINT "Pin #11 Adresse 889 (bit 7)="; IN11
PRINT INP(889)

LOOP


tks in advance

jyt
  Reply With Quote


  sponsored links


2 7th February 00:29
bob may
External User
 
Posts: 1
Default Help !testport.bas



Running WinXp now? If so, you can't do that anymore without doing some
other stuff first before you fire up the program.

--
There are more Democrats on the Calif. Special Election than Republicans!
Go count if you don't believe me!
Bob May
  Reply With Quote
3 7th February 00:29
shb*no*spam*
External User
 
Posts: 1
Default Help !testport.bas


If you are using NT/2K/XP, you will need to gain user level
access to the parallel port hardware. A program called userport
(search google for userport.zip) will do the trick.
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666