unable to receive data from parallel port

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.

Reply to
brazingo
Loading thread data ...

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

formatting link

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

Reply to
Chris

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.

formatting link

Reply to
Si Ballenger

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.

Reply to
brazingo

Google for userport.zip,a package to open access to any i/o port.

Reply to
Sjouke Burry

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.

Reply to
brazingo

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.