I m using assembly language. Plz tell me how to read data pins of parallel port. wat shud be the status of control pins and status pins to make datapins bi-directional. Actually after reading from data pins I want to output the data (not the data which I read from datapins) on control pins.
basically the LPT or parallel port having different modes ECP EPP .... in normal mode in which the data port is only for the output port and status input port, control is the output port...
but in ECP mode u can use the data port as the input port so u have to configure the lpt port in the ECP then interface...
AA
If u know how to use debug utility of windows then
Try out the following
o 37A 20 // Sets the LPT1*(Data pins) in input mode
o 37A 80 // Sets the LPT1*(Data pins) in output mode
now
if
o 378 0xXX where XX is hexadecimal no 00-to-FF it outputs that 8-bit data
i 378 inputs the 8-bit data given on data pins if these are set in input mode