cancel
Showing results for 
Search instead for 
Did you mean: 

ADC Low power - consumption

Artuan
Associate II

Hello,

I have a custom PCB with stm32L562 on it. I'm able to put it low power run mode.

My consumption is 0.2mA, but if I init ADC the consumption jums to 0.3mA.

I've tried to deinit it before going to stop 1 mode but it does not help

HAL_ADC_Stop(&hadc1);
HAL_ADC_DeInit(&hadc1);
HAL_ADCEx_RegularStop(&hadc1);
HAL_ADC_DeInit(&hadc1);

Can you please somebody help me how to completely deinit ADC?

Thank you

9 REPLIES 9
Artuan
Associate II

Hi,

Can somebody help me on this please.

Thank you

Mohamed Aymen HZAMI
ST Employee

Hello @Artuan​ ,

I will see this behavior.

Best Regards,

Mohamed Aymen.

Hi Mohamed,

Did you have time to check maybe?

Thank you

Hello @Artuan​,

Can you please share your project file in order to see the same behavior.

Thanks and Best Regards,

Mohamed Aymen.

Hi @Mohamed Aymen HZAMI​ ,

I'm attaching you a basic ADC with lprun program.

If you comment out ADC lines the consumption is around 0.2mA. If not 0.3mA.

I'm looking for a way to deinit ADC so I can put the consumption down to 0.2mA.

Thank you

Mohamed Aymen HZAMI
ST Employee

Hello @Artuan​,

I will check it and give you my feedback.

Best Regards,

Mohamed Aymen.

Mohamed Aymen HZAMI
ST Employee

Hello @Artuan​,

After verification :

  • With HAL_ADC_DeInit function the power consumption : 216 µA
  • without HAL_ADC_DeInit function the power consumption : 231 µA

What is the injected signal on the ADC Pin that you use ?

Best Regards,

Mohamed Aymen.

Hello @Mohamed Aymen HZAMI​ 

Thank you for your time.

On this pin I have a pull up which is not connected to anything right now. I removed the pull up and the results are the same.

Is possible somehow to completely deinit ADC ? Because if I don't init the ADC the consumption is ok. So if I can get this state after using the ADC it should work.

Thank you for your help

Mohamed Aymen HZAMI
ST Employee

Hello @Artuan​,

I test your code on Nucleo-L552ZE-Q Board :

  • without ADC Deinit : 398 µA
  • With ADC Deinit : 381 µA

I think you have a problem with your PCB, try to use an ST's board !

Thanks and Best Regards,

Mohamed Aymen.