Need to know which PIC chip you are using.
What other settings you have made. Such as ADCON HSERIN etc.
Need to know which PIC chip you are using.
What other settings you have made. Such as ADCON HSERIN etc.
Rob.
The moment after you press "Post" is the moment you actually see the typso
hello tasmod
When the potentiometer Reaches the end the servant is out of position
here s configuration Requested that I am using
thank you
DEFINE OSC 4
DEFINE HSER_TXSTA 20h
DEFINE HSER_BAUD 9600
DEFINE HSER_SPBRG 25
DEFINE HSER_CLROERR 1
DEFINE ADC_BITS 8
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50
ADCON1=%1001001
Please say which PIC you are using
Is it 16f88 or 16f877 or an 18f
Rob.
The moment after you press "Post" is the moment you actually see the typso
01 pic16f876a tx
01 pic16f876a rx
excuse me
Quick look shows ADCON0 doesn't have enough bits set. There's only 7
ADCON1 ??
Code:ADCON1 = %10000100 ' Set PORTA analog and RIGHT justify result
Rob.
The moment after you press "Post" is the moment you actually see the typso
I USE 5 pot
01 POT LEFT AND RIGHT
01 POT DOWN AND UP
01 SERVO POT
Bookmarks