Parallel Port Programming (in C++)
Parallel Port Programming (in C++)
(OP)
Hallo! I've got a problem with parallel port programming.
I have to write to the LPT1 and then I must read from it. Writing is no problem, but I can`t read
If I write for example int 64 to the port and manipulate the pins by forcing the active high of a pin to ground and read in the new value which should have changed now, it still remains 64. How can I solve this problem?
I have to write to the LPT1 and then I must read from it. Writing is no problem, but I can`t read
If I write for example int 64 to the port and manipulate the pins by forcing the active high of a pin to ground and read in the new value which should have changed now, it still remains 64. How can I solve this problem?





RE: Parallel Port Programming (in C++)
RE: Parallel Port Programming (in C++)
melone is right, if markus3 is lucky to have a bidirectional parallel port (this is almost the case by the way), then he should activatd read mode by setting the SLCT IN (Pin 17) of parallel port, i.e bit 3 of Portadress + 2.
good luck!
RE: Parallel Port Programming (in C++)
Normally, it is off (read-mode) isn`t it? Meanwhile I
solved the problem by using the status register, especially Pin 15 (Error-Pin). That functions, too.