···············································································································
简单修改了下 main.c中代码,让其测电源压值 。
while(1)
{
/* Printf message with AD value to serial port every 1 second */
printf("\r\n****************************************************************\r\n");
AD_value_1 = ADC_ConvertedValue[0];
AD_value_1=(float) ADC_ConvertedValue[0]/4096*3.3;
printf("The current AD1 value = %f v\r\n",AD_value_1);
}