Quote Originally Posted by rsocor01 View Post
It is always a good idea to check that the PIC settings are correct by implementing a blinking LED before you do anything else. Also, in your code I don't see any WHILE....WEND loop to check if the ADCON0.1 has changed it's status. I haven't checked the datasheet for your PIC, so you might want to double check if the ADCON0.1 is the correct bit.
i am glad i did find the answer !!After very long time of searching!!
The problem is : when i want to convert 8 bits: ADC_bits = 8 then I must declare the var in ADCin as a byte (8 bits) otherwise it do not work
i did find out to use the ADRESH and ADRESL registers
I thank you for for qiuck answer for my problem !!
It is solved and I can go on with my work after several days of searching
have a nice day