devxlogo

Parallel port prgoramming

Parallel port prgoramming

Question:
How can I access the parallel port to control a car which can move in any direciton.I want to control each pin seperately. If you have any tutorial or information or source codeI would be really happy.

Answer:
Normally, you can use the C run-time library routines inp and outp, and inline assembler statements IN and OUT to access the parallel port. It depends on your hardware as to the exact values you must write.

However, under 32-bit Windows, you must make other considerations. Because other programs may access IO memory, you may run into trouble under Windows 95. Under NT, these statements are simply not supported and you will need some sort of device driver to access IO hardware.

See also  5 Tips for Working With an Onsite Interpreter
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist