ISendByte(0x94,0x8c); DelayNS(10); I2C_ReadNByte(0x94,1,0x00,data_buf1,0x02); DelayNS(10); adc_value1=data_buf1[0]<<8||data_buf1[1]; if(data_buf1[1]||0x80==1) { adc_value1=~adc_value1+1; } adc_value1=(adc_value1*2.048)/(32767*1); DelayNS(10); 大家帮我看看程序这样写有什么问题吗? |