PDA

View Full Version : parallel port programming......



mathavan
09-11-2008, 01:49 AM
i tried the program given in the topics section(parallel port tutorial parallel I & II)....i connected 8 leds to the parallel port and compiled the program given there....but i couldn't get any changes....all leds are glowing...whatever input is......so what do i do to get the proper output for my input...help plz.....here is the program...

#include <stdio.h>
#include <dos.h>

void main(void)
{
while(1)
{
outportb(0x378,0xFF);
sleep(2);
outportb(0x378,0x00);
sleep(2);
}
}

vikas
09-11-2008, 02:01 AM
Did you install OS specific drivers. And used the specific API ?

Cause this will work only on DOS and windows 98 without them.

mathavan
09-11-2008, 02:05 AM
Did you install OS specific drivers. And used the specific API ?

Cause this will work only on DOS and windows 98 without them.


now i use xp ...wat i hav to install in my system ..

rao
09-11-2008, 09:00 AM
First off..

These questions have been replied over and over again..

Learn to search on the forums first and then ask.

ANSWER TO YOUR QUESTION

porttalk, iodll, beyondlogic

Rao

shobhitkukreti
09-11-2008, 10:44 PM
dude ??? a little more respectful tone would be better

mathavan
09-12-2008, 09:22 AM
SORRY BROTHER.....