Accessing/Programming the parallel port

blahblah99

Platinum Member
Oct 10, 2000
2,689
0
0
Are there any FREE library drivers for win2k for programming the parallel port? I have data from a micro-controller that needs to be sent into a computer through that port. I know mode SPP is uni-directional, while EPP is bi-directional. I found device drivers for the parallel port but every company that has it wants an arm and a leg for their drivers.

I am no programmer, but do know C/C++ and some ASM. Is programming my own driver in EPP mode feasible? I just need an interrupt pin on the parallel port (to interrupt the program and go to my interrupt function) and 8 data bits.

Also, I only have about 150 usec to transfer no more than 30 bytes of data - which the parallel port can do, correct?

Basically, I want something exactly like this.

Sigh, another reason why Linux is so much better.
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
Please clarify whether you are looking for a actual Parallel Port driver (Device Driver), or just code showing how to use them?

Here is a free class. You will need to install a free driver available on the same page that will let you access hardware directly. Read up and see if it will fit your needs.
 

Codewiz

Diamond Member
Jan 23, 2002
5,758
0
76
Originally posted by: singh
Please clarify whether you are looking for a actual Parallel Port driver (Device Driver), or just code showing how to use them?

Here is a free class. You will need to install a free driver available on the same page that will let you access hardware directly. Read up and see if it will fit your needs.

That is a nice class. Another option is if you want to use java. Java has a parallel port class that allows you to send data easily.
 

blahblah99

Platinum Member
Oct 10, 2000
2,689
0
0
Please clarify whether you are looking for a actual Parallel Port driver (Device Driver), or just code showing how to use them?

I need an actual parallel port driver that also can handle interrupts.

Basically, I have about 4 bytes of data coming into the parallel port at a rate of every 1msec. The C++ program needs to be interrupted and get the data when the interrupt pin on the parallel port (which pin is that?) is set high.

All data is received from the parallel port - none is sent out.

Here is a free class. You will need to install a free driver available on the same page that will let you access hardware directly. Read up and see if it will fit your needs.

That's what I was looking for! thanks! :)

EDIT: I got the port working.. now I need another advice from you guys. How can I program an interrupt service routine in my program in windows 2000? I already set the interrupt enable on the parallel port to ON and would like my program to jump to my function get data.