pp99
Newbie level 3
ADC configuration code meaning in 16F877A
May I know what's are the meaning for each row code as below:
adcon0=0x00;
adcon1=0x00;
set_bit(adcon0,0);
set_bit(adcon0,2);
if(!(adcon0&4))
{
portb=adresh;
set_bit(adcon0,2);
}
and why need to change LVP_OFF to LVP_ON?
Thanks.
May I know what's are the meaning for each row code as below:
adcon0=0x00;
adcon1=0x00;
set_bit(adcon0,0);
set_bit(adcon0,2);
if(!(adcon0&4))
{
portb=adresh;
set_bit(adcon0,2);
}
and why need to change LVP_OFF to LVP_ON?
Thanks.