cancel
Showing results for 
Search instead for 
Did you mean: 

STM8L101F2 consumption in Halt mode

Hi,
i have STM8L101F2 at breadboard. Decoupling capacitors 100nF+22uF, supply voltage 3.3V from linear lab.power supply, nothing connected to any pin. Simple firmware (Cosmic compiler)

void main(void){
  GPIO_Init(GPIOA, GPIO_Pin_All,GPIO_Mode_In_PU_No_IT);
	GPIO_Init(GPIOB, GPIO_Pin_All,GPIO_Mode_In_PU_No_IT);
	GPIO_Init(GPIOC, GPIO_Pin_All,GPIO_Mode_In_PU_No_IT);
	GPIO_Init(GPIOD, GPIO_Pin_All,GPIO_Mode_In_PU_No_IT);
	halt();
    while (1)
    {

    }
}

and i've measured consumption about 16uA. Datasheet claims that MCU should take under 1uA. 
I've tried to remove electrolytic 22uF - no effect (its leakage current is negligible in this case)
I've also set option byte "IWDG stoped in halt", as expected it have also no effect (i did not start IWDG)
Am i missing something in SW ?

0 REPLIES 0