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);
}
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.
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?
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.
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..
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 https://groups.yahoo.com/group/booksbybibin/