Skip to main content
Artuan
Associate II
December 7, 2020
Question

ADC Low power - consumption

  • December 7, 2020
  • 9 replies
  • 2502 views

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

This topic has been closed for replies.

9 replies

Artuan
ArtuanAuthor
Associate II
December 8, 2020

Hi,

Can somebody help me on this please.

Thank you

Mohamed Aymen HZAMI
ST Employee
December 9, 2020

Hello @Artuan​ ,

I will see this behavior.

Best Regards,

Mohamed Aymen.

Artuan
ArtuanAuthor
Associate II
December 10, 2020

Hi Mohamed,

Did you have time to check maybe?

Thank you

Mohamed Aymen HZAMI
ST Employee
December 14, 2020

Hello @Artuan​,

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

Thanks and Best Regards,

Mohamed Aymen.

Mohamed Aymen HZAMI
ST Employee
December 15, 2020

Hello @Artuan​,

I will check it and give you my feedback.

Best Regards,

Mohamed Aymen.

Mohamed Aymen HZAMI
ST Employee
December 16, 2020

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.

Artuan
ArtuanAuthor
Associate II
December 18, 2020

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
December 24, 2020

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.