setup_adc(ADC_CLOCK_Internal);
setup_adc_ports(ALL_ANALOG);
set_adc_channel(1);
delay_us(10);
while(1)
{
var1=read_adc();
........................
............................
..........................????
setup_adc_ports(ALL_ANALOG);
set_adc_channel(1);
delay_us(10);
while(1)
{
var1=read_adc();
........................
............................
..........................????