pp99
Newbie level 3
- Joined
- Jun 16, 2011
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,303
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.