blueroomelectronics
Well-Known Member
engkhlaif said:ok i will try
i want to ask also is that right to write ADCON1=14 as i just need A0 to be analog input as i think if i write ADCON1=0 i set all of them analog and i just want to use A0 !!!!!]
ADCON1 = 0x0E will make only RA0 analog, try to avoid decimal when setting SFRs. Use binary or hex.
ADCON1 also sets the conversion speed and left or right justification. Make sure it matches your project.
Last edited: