suvaraj
Member level 2
hi to all
in my project im using pic16f873a,hi-tech c compiler.im reading adc value data=ADRESH;.and
i
but the
adc i/p value 2v means 2000 mv/4.88mv=adc value is 409.
im use the 409 value means im not get o/p.
what i mistake in my program?
pls help me .
thanks in advance
in my project im using pic16f873a,hi-tech c compiler.im reading adc value data=ADRESH;.and
i
but the
adc i/p value 2v means 2000 mv/4.88mv=adc value is 409.
im use the 409 value means im not get o/p.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 if(data>=409) { led=0; led1=1; } again i divide 4 409/4=102 this value used means i get the out put in 2v. f(data>=102) { led=0; led1=1; }
what i mistake in my program?
pls help me .
thanks in advance
Last edited by a moderator: