extern __IO uint16_t ADC_ConvertedValue;
float ADC_ConvertedValueLocal;
int main(void)
{
adc_init();
printf_init();
SysTick_Init(); //配置SysTick为1ms中断一次
while(1)
{
ADC_ConvertedValueLocal =(float) ADC_ConvertedValue/4096*3.3;
printf("The current AD value =0x%04X\n",ADC_ConvertedValue);
printf("The current AD value =%f V\n",ADC_ConvertedValueLocal);