Actually i m using adc0804 as input to port 1 and and i want to drive motor to another port according to adc input. But the problem is how to give condition in c Suppose that i have adc output 11001100, and i want to rotate motor to particular angle then i m giving conditio as folows:
if(P1==0xCC) { mmotor1(); }
In this i am not getting motor movement. Plzzz tell me the right if condition.
there is no matter behind this....this is simple
if(P1==0XCC) { P2^0=1;//POSITIVE TERMINAL OF MOTOR P2^1=0;//NEGATIVE TERMINAL OF MOTOR }
plz check your infinite loop.....
That's all................