cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L073CZ

richardaddy9
Associate II

Hi, I'm using the STM32L073CZ micro in a thermometer application.

I've used CubeMX to create the base code and adapted it.

I'm using ADC channel 1 for the temperature measurement, which is working correctly. I'm only initializing the ADC channel when its needed and then de-Initializing it after using HAL_ADC_DeInit(&hadc);

I'm also doing a battery voltage calculation using ADC channel 7 along with the internal reference measured on ADC channel 17. This is initialized with its own function.

This function is also working but......

When i de-Initializing it though i don't think i'm un-configuring the internal ref channel, which is causing an additional drain on the battery.

Please ask for any addition info.

Thanks in advance.

Regards

0 REPLIES 0