В документе RM0041 сказано:
Цитата
Note: 1 It is recommended to perform a calibration after each power-up.
2 Before starting a calibration the ADC must have been in power-off state (ADON bit = ‘0’) for
at least two ADC clock cycles.
А в примерах от ST запуск калибровки делается после установки ADON (фрагмент из STM32F10x_StdPeriph_Examples):
Цитата
/* Enable ADC1 */
ADC_Cmd(ADC1, ENABLE);
/* Enable ADC1 reset calibration register */
ADC_ResetCalibration(ADC1);
/* Check the end of ADC1 reset calibration register */
while(ADC_GetResetCalibrationStatus(ADC1));
/* Start ADC1 calibration */
ADC_StartCalibration(ADC1);
/* Check the end of ADC1 calibration */
while(ADC_GetCalibrationStatus(ADC1));
Как правильно?
Цитата
The calibration codes are stored in the ADC_DR as soon as the calibration phase ends.
Что с этими кодами дальше делать? Каков их физический смысл?