请问大虾:#define ADC_RATIO ((uint16_t) 806) /*ADC_RATIO = ( 3.3 * 1000 * 1000)/4095*/
这是什么意思: /*ADC_RATIO = ( 3.3 * 1000 * 1000)/4095*/
voltage = ADC_GetConversionValue(ADC1);
voltage_tex = (uint32_t)((uint32_t)voltage * (uint32_t)ADC_RATIO) / 500;
voltage = voltage_tex; |