short Get_Adc_Value()
{
short value = 0;
ADCIF = 0;
ADCCON3 = 0xB0; //参考电压3.3V,512位抽取率
while(!ADCIF);
value = ADCH;
value = value << 8;
value += ADCL;
value /= 4;
return value;
}
short Get_Adc_Value()
{
short value = 0;
ADCIF = 0;
ADCCON3 = 0xB0; //参考电压3.3V,512位抽取率
while(!ADCIF);
value = ADCH;
value = value << 8;
value += ADCL;
value /= 4;
return value;
}