Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Home » Tip Bank » C++
Language: C++
Expertise: Beginner
Mar 13, 1998

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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date