zhi_yi
Full Member level 4
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
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