I have received minimum 30µA current in the STM8L Halt Mode. How can I decrease this value to the below of 30µA.
Hello Guys,
I have a small problem in my STM8L device. My current remains in 30µA even in the halt mode (I would like to obtain 10-15µA). What are the ways to drop this value?
I have tried to put a serial resistor to increase the total resistance of the system and finally to obtain lower current. However, if I use a bigger resistor than the 500 Ohm, system will not work. Is it a good idea to connect a serial resistor to the microprocessor in order to decrease the current? Will it has an impact on a bad way?
I also tried to make some configuration changes in the code, like putting the halt mode or disabling the timers.
In the below, you can see my main code.
So, What do you suggest me to handle this problem?
#include "stm8l15x.h"
#include "stm8l15x_TIM2.h"
void main(void)
{
TIM2_CtrlPWMOutputs(DISABLE);
TIM2_Cmd(DISABLE);
TIM3_Cmd(DISABLE);
TIM4_Cmd(DISABLE);
ADC_Cmd(ADC1,DISABLE);
PWR_PVDCmd(DISABLE);
PWR_UltraLowPowerCmd(ENABLE);
enableInterrupts();
while (1)
{
halt();
}
}
#ifdef USE_FULL_ASSERT
void assert_failed(uint8_t* file, uint32_t line)
{
while (1)
{}
}
