while (1)
{
ADC_ConvertedValueLocal = (float) ADC_ConvertedValue/4096*3.3; 、
Delay(0xffffee); // ???±
printf("\r\n The current AD value = 0x%04X \r\n", ADC_ConvertedValue);
printf("\r\n The current AD value = %f V \r\n",ADC_ConvertedValueLocal);
}
以上是循环语句
The current AD value = 0.000000 V
The current AD value = 0x04B1
The current AD value = 0.000000 V
The current AD value = 0x04B0
The current AD value = 0.000000 V
The current AD value = 0x04B0
The current AD value = 0.000000 V
The current AD value = 0x04B1
The current AD value = 0.000000 V
The current AD value = 0x04B0
The current AD value = 0.000000 V
以上是转换出来的值
求问哪里出错了
|