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
Bookmarks