Announcement

Collapse
No announcement yet.

Help: Reading from parallel port

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?
    New Lilliput EBY701 For Sale http://www.nusantech.com/index.asp?c...at=TOUCHSCREEN
    SiRF3 Bluetooth GPS http://www.nusantech.com/index.asp?cat=GPS

  • #2
    That's assembly, you'd need to type 'debug' in dos first.
    Chrysler 300 - Fabricating
    http://hallert.net/

    Comment


    • #3
      Looks like tcl to me.
      Old Systems retired due to new car
      New system at design/prototype stage on BeagleBoard.

      Comment


      • #4
        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)
        New Lilliput EBY701 For Sale http://www.nusantech.com/index.asp?c...at=TOUCHSCREEN
        SiRF3 Bluetooth GPS http://www.nusantech.com/index.asp?cat=GPS

        Comment


        • #5
          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
          How Much Horsepower Can I have And Still Go To Heaven?

          Comment


          • #6
            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.

            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.

            Comment


            • #7
              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
              New Lilliput EBY701 For Sale http://www.nusantech.com/index.asp?c...at=TOUCHSCREEN
              SiRF3 Bluetooth GPS http://www.nusantech.com/index.asp?cat=GPS

              Comment


              • #8
                http://beyondlogic.org/porttalk/porttalk.htm
                http://hjem.get2net.dk/villy/vje_vbio.htm
                [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!

                Comment


                • #9
                  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?
                  New Lilliput EBY701 For Sale http://www.nusantech.com/index.asp?c...at=TOUCHSCREEN
                  SiRF3 Bluetooth GPS http://www.nusantech.com/index.asp?cat=GPS

                  Comment


                  • #10
                    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?
                    New Lilliput EBY701 For Sale http://www.nusantech.com/index.asp?c...at=TOUCHSCREEN
                    SiRF3 Bluetooth GPS http://www.nusantech.com/index.asp?cat=GPS

                    Comment


                    • #11
                      Originally posted by masch
                      This is actually harder than I thought? I first need to get an analog-digital converter?

                      For digital data you should not need an ADC.
                      [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!

                      Comment


                      • #12
                        I understand that frodo.. but what does digital data really mean? The values at the pins before its latched into the computer as information, are they 1V? 2V? 5V? 12V or what? The binary "high" or "1" - its actual value in voltage is what?
                        New Lilliput EBY701 For Sale http://www.nusantech.com/index.asp?c...at=TOUCHSCREEN
                        SiRF3 Bluetooth GPS http://www.nusantech.com/index.asp?cat=GPS

                        Comment


                        • #13
                          Digital will tell you is the cat on the mat?
                          Analog will tell you how fat the cat on the mat is.
                          2001 Pontiac Grand Prix GTP Sedan (Sold)
                          2007 Scion tC
                          WhereIsMyGPS.net Online Tracker
                          http://www.cardomain.com/id/leddy

                          Comment


                          • #14
                            Hehe, thanks Leddy.. I'm sure you mean well. I know that part.

                            But realyl what I meant was, what does a value have to be on pin 1 of the LPT port (for example) for the computer to understand that pin1 has a binary value of 1 and not a 0? That actual value on the pin, is it voltage? amp? ohm? and is it specifically 5V? 12?.. basically.. how do I tell the computer that theres a value of 1 on pin1 of the LPT port.

                            Its hard for me to explain what I want because I dont really know this stuff or the terminologies associated with it
                            New Lilliput EBY701 For Sale http://www.nusantech.com/index.asp?c...at=TOUCHSCREEN
                            SiRF3 Bluetooth GPS http://www.nusantech.com/index.asp?cat=GPS

                            Comment


                            • #15
                              Originally posted by masch
                              Hehe, thanks Leddy.. I'm sure you mean well. I know that part.

                              But realyl what I meant was, what does a value have to be on pin 1 of the LPT port (for example) for the computer to understand that pin1 has a binary value of 1 and not a 0? That actual value on the pin, is it voltage? amp? ohm? and is it specifically 5V? 12?.. basically.. how do I tell the computer that theres a value of 1 on pin1 of the LPT port.

                              Its hard for me to explain what I want because I dont really know this stuff or the terminologies associated with it
                              Parallel ports are TTL (Transistor Transistor Logic) levels (0v = 0, 5v = 1).Unless you pick an inverted input in which case they are reversed (inverted inputs are usually denoted by a line above the signal name).
                              Old Systems retired due to new car
                              New system at design/prototype stage on BeagleBoard.

                              Comment

                              Working...
                              X