cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F051's ADC Auto-off mode & HAL_ADCEx_Calibration_Start()

Tung Chang Wu
Associate
Posted on June 02, 2017 at 05:49

Hi all,

      I used the STM32F051's ADC function. If I Enable the Auto-off mode (AUTOFF), in the power-off state, the calibration value that produced from HAL_ADCEx_Calibration_Start() will be deleted ?  

#stm32f051 #stm32-adc
1 REPLY 1
Amel NASRI
ST Employee
Posted on June 08, 2017 at 15:46

Hi

Wu.Tung_Chang

‌,

Based on RM0091:

  • 'The calibration factor is lost each time power is removed from the ADC (for example when the product enters STANDBY mode).'
  • 'The internal analog calibration is kept if the ADC is disabled (ADEN=0).'

As ADC power is not removed by ADEN bit nor the auto-off mode, once calibration was done, auto-off mode does not require re-calibration.

But during the time (auto-off enabled), if the STM32F051 MCU enters the standby mode, supply voltage will be removed from VDD/VDDA connected to ADC. So calibration will be required.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.