ADS8345返回的结果不是很准确
void ADS8345_start(void){ DCLK = 0; CS = 1; DIN1 = 1;// DOUT = 0; DCLK =1 ; CS = 0;// BUSY = 0;} void ADS8345_WR(uchar d...
void ADS8345_start(void){ DCLK = 0; CS = 1; DIN1 = 1;// DOUT = 0; DCLK =1 ; CS = 0;// BUSY = 0;} void ADS8345_WR(uchar d...
代码如下: __idata float ad_conv_voltage(__idata uint16_t twosCCode) { twosCCode=twosCCode<<1; ...
问题1: switch(temp) { case 0: tempk = 0x...