+ Post New Thread
Results 1 to 9 of 9
  1. #1
    Full Member level 4
    Points: 3,042, Level: 12

    Join Date
    Feb 2005
    Posts
    196
    Helped
    0 / 0
    Points
    3,042
    Level
    12

    input to parallel port

    hi there, please help me, how to read input of parallel port using status register??

    i tried to test it using push button, i've made the pcb without anti bouncing circuit on it (i forgot to place it). can it work? one of the push button's pin is connect to the Vcc, and another one is connect to the input of the parallel port, if i press the push button, the Vcc will go through into the parallel port, i tried it, but it can't work, please help me out, where is the problems?

    can the code below works?

    while(1){
    a = inportb(status);
    printf("%x",a);
    if(kbhit()) _exit(0);
    }

    i tried it, but it can't work, please help me..


    thank you.. :)
    zhi yi

  2. #2
    Full Member level 3
    Points: 4,634, Level: 16

    Join Date
    Apr 2001
    Location
    California, USA
    Posts
    188
    Helped
    25 / 25
    Points
    4,634
    Level
    16

    Re: input to parallel port

    If you are trying this on WinXP or Win2000 it will not work, because you don't have direct access to the hardware. Try this on DOS. For Windows XP or 2000 you will need a device driver. Search previous posts.



    •   AltAdvertisement

        
       

  3. #3
    Newbie level 4
    Points: 1,257, Level: 8

    Join Date
    Mar 2006
    Posts
    7
    Helped
    0 / 0
    Points
    1,257
    Level
    8

    input to parallel port

    there is a parallel port programming library "parapin" for linux ... extremely simple to use, and it works



  4. #4
    Full Member level 4
    Points: 3,042, Level: 12

    Join Date
    Feb 2005
    Posts
    196
    Helped
    0 / 0
    Points
    3,042
    Level
    12

    Re: input to parallel port

    okay, thank you very much :)

    i try it in win98, i think it's work on windows 98, by the way, where to download the device driver for windows xp? and also the parapin?

    i thought i know where is my mistake, the status port is normally set to high, if i give signal high to it, of course nothing would change, i thought i should change the circuit, first i connect the push button to the Vcc, if the push button is pressed, it would short to ground, therefore the input to status port would changed, is it right?



    •   AltAdvertisement

        
       

  5. #5
    Member level 2
    Points: 2,174, Level: 10

    Join Date
    Sep 2004
    Posts
    46
    Helped
    14 / 14
    Points
    2,174
    Level
    10

    Re: input to parallel port

    Quote Originally Posted by zhi_yi
    where to download the device driver for windows xp?
    Again, I recommend porttalk driver, because it's very simple for use and you have some examples how to communicate with parallel port. I try it and it works fine.

    Code:
    http://www.beyondlogic.org/porttalk/porttalk.htm



  6. #6
    Full Member level 3
    Points: 2,810, Level: 12
    fireplus's Avatar
    Join Date
    Oct 2003
    Posts
    182
    Helped
    8 / 8
    Points
    2,810
    Level
    12

    Re: input to parallel port

    Hi,
    try parallel port complete

    https://www.edaboard.com/viewtopic.p...+port+complete

    Fire in The Wire



  7. #7
    Full Member level 4
    Points: 3,042, Level: 12

    Join Date
    Feb 2005
    Posts
    196
    Helped
    0 / 0
    Points
    3,042
    Level
    12

    Re: input to parallel port

    hi, thank you all.. :)

    i am sorry, i am not yet read the articles at beyondlogic about the driver for windows XP, can you please kindly make a summary for me? :b what i need to do? is it i just need to download the software, and then run the software, and then it's all accomplished so i can access the i/o port through windows XP? please give me the steps to do it.. thank you very much.. :)



  8. #8
    Full Member level 3
    Points: 4,634, Level: 16

    Join Date
    Apr 2001
    Location
    California, USA
    Posts
    188
    Helped
    25 / 25
    Points
    4,634
    Level
    16

    Re: input to parallel port

    Download winio.zip from http://www.internals.com/. It contains examples on how to use it.



    •   AltAdvertisement

        
       

  9. #9
    Full Member level 6
    Points: 3,526, Level: 13

    Join Date
    Jan 2005
    Posts
    339
    Helped
    22 / 22
    Points
    3,526
    Level
    13

    input to parallel port

    You can work with WindowsXP for parallel port interfacing. I have done in C and Java.Only u have to install userport.zip. Then everything will work fine.

    You can get the codes and tutorials from my book
    MY EXPERIENCE IN PARALLEL PORT INTERFACING
    you can get it from yahoo group-booksbybibin
    http://groups.yahoo.com/group/booksbybibin/



--[[ ]]--