Connect with us

unable to receive data from parallel port

Discussion in 'Electronic Basics' started by brazingo, Feb 3, 2006.

Scroll to continue with content
  1. brazingo

    brazingo Guest

    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.
     
  2. Chris

    Chris Guest

    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
     
  3. Si Ballenger

    Si Ballenger Guest

    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
     
  4. brazingo

    brazingo Guest

    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.
     
  5. Sjouke Burry

    Sjouke Burry Guest

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

    brazingo Guest

    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.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-