Read 1-17 pins on LPT

Hello?.all,

I am trying to read parallel port, all the pins from 1-17. I am using libs Parapin

formatting link

Can some one agree with me that; it is possible to use all the pins on parallel port as an input pins 1-17????

I can able to read all the pins except 1, 11, 14, and 17

Any idea what can be the problem????

I tried using parapin input test program, but no luck.

So I just want to conform about reading all the pins on parallel port ??..

#include #include #include

#include "parapin.h"

int main(int argc, char *argv[]) { int i;

if (pin_init_user(LPT1) < 0) exit(0);

pin_input_mode(LP_DATA_PINS); pin_input_mode(LP_SWITCHABLE_PINS);

printf("\nstarting\n"); for (i = 1; i

Reply to
Rushi
Loading thread data ...

Hello?.all,

I am trying to read parallel port, all the pins from 1-17. I am using libs Parapin

formatting link

Can some one agree with me that; it is possible to use all the pins on parallel port as an input pins 1-17????

I can able to read all the pins except 1, 11, 14, and 17

Any idea what can be the problem????

I tried using parapin input test program, but no luck.

So I just want to conform about reading all the pins on parallel port ??..

#include #include #include

#include "parapin.h"

int main(int argc, char *argv[]) { int i;

if (pin_init_user(LPT1) < 0) exit(0);

pin_input_mode(LP_DATA_PINS); pin_input_mode(LP_SWITCHABLE_PINS);

printf("\nstarting\n"); for (i = 1; i

Reply to
Rushi

It's been a long time since i've done any lpt programming, but google just told me the lpt pin-outs are:

formatting link
1 STROBE (Strobe) active low output 11 BUSY (Busy) active low input 14 AUTO-FEED (Auto-Feed) active high output 17 SLCT IN (Select In) active low output

the different printer port modes change bi-directionality on the data pins, but i'm pretty sure those 4 stay the same, so you can't read 1, 14 or 17.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     damion@snapgear.com
SnapGear - A CyberGuard Company ---    ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.snapgear.org  ---
Reply to
Damion de Soto

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.