im trying to configure one analog pin in port a im using pic 16f877a ,the other pins i want to use them as digital input but once im turning on adc module,other pins doesnt work correctly idk why
here is a piece of my code;
trisa=0x3f;
ADCON0=0b11000001;
ADCON1=0b11001110;
even if tried
adc_init();
the same result
wlevel=adc_read(0);
im using mikroc
here is a piece of my code;
trisa=0x3f;
ADCON0=0b11000001;
ADCON1=0b11001110;
even if tried
adc_init();
the same result
wlevel=adc_read(0);
im using mikroc