Click here to Skip to main content
15,907,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir,

I am trying to read a nibble into the status port.

The gateway laptop am using support output only, ecp, epp and bidirectional modes. I set the port to bidirectional mode.

I am doing a simple status port read of reading a latched data on a 74LS374 latch. Control bits of 2 was sent to the control port bit 1 of the control port to be written to the latch enable of the 74LS374. The problem is that the visual basic 2005 program sometimes reads a correct value on the latch, reads the old value when a new value is present or hang with a value of 255 and refuse to change the value until the system is restarted. what should I do to correct this problem.

Thanks.

Olakunle
Posted
Updated 2-Mar-11 7:59am
v2
Comments
Henry Minute 2-Mar-11 14:00pm    
Unless someone else has encountered exactly the same problem as yourself it is going to be very difficult for anybody to give a meaningful answer, without seeing the section of your code where the error occurs.

1 solution

I haven't played with the parallel port for a long while, but there is a complete article with source code here: Reading from Parallel Port using Inpout32.dll[^] which would probably be a good place to start.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900