请帮忙看看,为什么分离不出正确的结果,现在分离结果的0.03, 我需要的是771
uchar adc_result;
uint adcresult_0,adcresult_1,adcresult_2;
adc_result = 771;
adcresult_0= (adc_result/100)%100;
adcresult_1= (adc_result/10)%10;
adcresult_2= adc_result%10;
DisplayData[0]=DIG_CODE[adcresult_0]|0x80;
DisplayData[1]=DIG_CODE[adcresult_1];
DisplayData[2]=DIG_CODE[adcresult_2];
|