Maker Pro
Maker Pro

unable to receive data from parallel port

B

brazingo

Jan 1, 1970
0
hi,
i'm using parallel port for simple interfacing. i am able to output
data to parallel port. But i'm unable to receive data from the port. I
tried making C5 = 1(loaded 20h into 37Ah), but when i read back from
the port, i got C5=0 (0C0h back). Unable to change C5 bit.
How can i receive data ? I'm using Win2k and the parallel port is
in ECP mode. I'm unable to modify ECR register of ECP. I also have
userport that enables me to access the ports in win2k.
 
C

Chris

Jan 1, 1970
0
brazingo said:
hi,
i'm using parallel port for simple interfacing. i am able to output
data to parallel port. But i'm unable to receive data from the port. I
tried making C5 = 1(loaded 20h into 37Ah), but when i read back from
the port, i got C5=0 (0C0h back). Unable to change C5 bit.
How can i receive data ? I'm using Win2k and the parallel port is
in ECP mode. I'm unable to modify ECR register of ECP. I also have
userport that enables me to access the ports in win2k.

It seems your problem might be with Win2K. Try looking at the links on
this page:

http://www.lvr.com/parport.htm

And see if you can get "Parallel Port Complete" by Axelson. The book
and accompanying source code/drivers/libraries will help to make your
project a success.

Chris
 
S

Si Ballenger

Jan 1, 1970
0
hi,
i'm using parallel port for simple interfacing. i am able to output
data to parallel port. But i'm unable to receive data from the port. I
tried making C5 = 1(loaded 20h into 37Ah), but when i read back from
the port, i got C5=0 (0C0h back). Unable to change C5 bit.
How can i receive data ? I'm using Win2k and the parallel port is
in ECP mode. I'm unable to modify ECR register of ECP. I also have
userport that enables me to access the ports in win2k.

I've got a page below showing some simple parallel port I/O
setups that might be of interest. You need to pull the status
pins low to get them to change state (I use a 330 ohm resistor to
ground). Note that one of them may be inverted.

http://www.geocities.com/zoomkat/status.htm
 
B

brazingo

Jan 1, 1970
0
I was able to run the same program on DOS and I got the expected
results. So problem seems to be with Win2k altough I have Userport
which enables me to access the ports. But the problem with this
software is, it doesn't allow me to go beyond 0x3FF. Are there other
softwares like Userport.
 
S

Sjouke Burry

Jan 1, 1970
0
brazingo said:
I was able to run the same program on DOS and I got the expected
results. So problem seems to be with Win2k altough I have Userport
which enables me to access the ports. But the problem with this
software is, it doesn't allow me to go beyond 0x3FF. Are there other
softwares like Userport.
Google for userport.zip,a package to open access
to any i/o port.
 
B

brazingo

Jan 1, 1970
0
I mentioned about using Userport in the first message. But userport
restricts the access to only a certain range of ports. It doesn't allow
to go beyond 0x3ff. I wanted access to 0x37A+0x402 = 0x77c. So i've
switched over to DOS.
 
Top