Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Help: Reading from parallel port

  1. #1
    Maximum Bitrate
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    624

    Help: Reading from parallel port

    Hola

    I've been reading a little on the net on how to read values from the parallel port. Basically I want to be able to read voltages from the parallel port. Lets say I apply 5V to pin 1 and 0V to pin 2 and 5V to pin 3 etc, I want to be able to get something like "000101"

    The only thing I've come across is:
    http://www.zpeng.com/projects_tcl_page.htm

    I downloaded the zip file, and copied the .sys file into the /system32 directory as per instructions. But then I dont know where should I type these commands:
    load lpttcl
    puts [format "Current LPT is at base address 0x%X" [lpt_getba]]
    Do I open an ms-dos prompt and type these? I tried but it doesnt understand what "load" means. (I have emailed the writer but till today - no response)

    Perhaps some of the gurus here know more about .sys and .dll files that can give me a head start?

  2. #2
    FLAC Chairboy's Avatar
    Join Date
    Jan 2004
    Posts
    1,380
    That's assembly, you'd need to type 'debug' in dos first.

  3. #3
    Raw Wave Rob Withey's Avatar
    Join Date
    Apr 2000
    Location
    Bedfordshire, UK
    Posts
    2,139
    Looks like tcl to me.
    Old Systems retired due to new car
    New system at design/prototype stage on BeagleBoard.

  4. #4
    Maximum Bitrate
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    624
    assembly? tcl? is that english? =)

    what do I need to install first before i can install the prog above? (I cant even get past the installation and I still think I can do this reading from the lpt port - such ambition =P)

  5. #5
    Variable Bitrate Superduck's Avatar
    Join Date
    Oct 2003
    Location
    Vancouver BC
    Posts
    296
    TCL Tutorial
    Another One

    Otherwise, check out this site for more parallel port FAQ's and information.

    Gogle's got lots of information on parallel ports. There might even be something that's already been made for your application.

    Do you have any specifics? Is this data acquisition?

    Good luck,

    Kris

  6. #6
    Raw Wave Rob Withey's Avatar
    Join Date
    Apr 2000
    Location
    Bedfordshire, UK
    Posts
    2,139
    Quote Originally Posted by masch
    assembly? tcl? is that english? =)
    Nope. If you wanna program your computer in English, I'm afraid you're outta luck.

    Quote Originally Posted by masch
    what do I need to install first before i can install the prog above? (I cant even get past the installation and I still think I can do this reading from the lpt port - such ambition =P)
    Stop trying to use tcl commands to install stuff...! Install tcl, learn to program in tcl, then try again.

    Even better, get a book called PC Intern. It tells you how to read from the parallel port without needing to go through the hassle of learning tcl (which is like cracking a nut with a sledgehammer).
    Old Systems retired due to new car
    New system at design/prototype stage on BeagleBoard.

  7. #7
    Maximum Bitrate
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    624
    I havent visited superducks site yet, although by skimming it looks liek its not windows, but its UNIX? ack

    I did look at the links for M$ windows users, but are there any free ones there? Most are only shareware. I havent really explored it yet, mainly because of rob withey's comment: cracking a nut with a sledgehammer.

    All I want to do is have lets say 6 wires. Each wire can either be 0V or 12V. The parallel port should be able to listen to the 6 wires.. wire1, wire2, wire3, wire4 wire5 and wire6. If there's 12V on wire4, then i want the parallel port to return a value to the computer: 000100, and if theres 12V on wire4 and wire6, then the value should be 000101. I hope you get the idea.

    I dont know if this is even possible

  8. #8
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  9. #9
    Maximum Bitrate
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    624
    Hehe, thanks Frodo, great links. Too advanced for me really. The first one actually just tells me what I need to isntall to get port access from WinXP. The second would have been a great link, provided any of the links to the diy projects worked.

    This is actually harder than I thought? I first need to get an analog-digital converter?

  10. #10
    Maximum Bitrate
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    624
    btw, this schematic found on this page is how I got the idea I could use the parallel port to detect events and run different functions depending on which switch was flipped:

    http://www.fortunecity.com/bally/wex.../ximppar1.html

    There was no need for an analogue-digital converter for this no?

Page 1 of 3 123 LastLast

Similar Threads

  1. VOTE for parallel port relay control in ME
    By Mastero in forum ME Archive
    Replies: 60
    Last Post: 01-16-2004, 04:39 PM
  2. need a extra serial or parallel port?
    By Sway in forum Input Devices
    Replies: 2
    Last Post: 01-08-2004, 06:48 AM
  3. using parallel port lcd
    By mr0range in forum Software & Software Development
    Replies: 1
    Last Post: 10-29-2001, 10:30 PM
  4. LCD parallel cable Cross Talk and/or port speed problems?
    By digital chaos in forum General Hardware Discussion
    Replies: 1
    Last Post: 12-20-2000, 08:48 AM
  5. I need another parallel port
    By jasmar in forum General Hardware Discussion
    Replies: 7
    Last Post: 08-03-2000, 10:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •