Question
HSI Power Down
Posted on June 10, 2013 at 16:48
Hello everybody,
I'm programming a STM8L152C6 on the STM8L-discovery. Wanting to improve the consomption I tri to power down the HSI. For that I use the instruction// Clock source
CLK_LSICmd(ENABLE);
CLK_SYSCLKSourceConfig(CLK_SYSCLKSource_LSI); while(((CLK->ICKCR) && CLK_ICKCR_LSIRDY)==0); CLK_SYSCLKSourceSwitchCmd(ENABLE); CLK_HSICmd(DISABLE); CLK_SYSCLKDivConfig(CLK_SYSCLKDiv_1);What seems to work for some people according to the topics I read on this site. I'm switching the clock source perfectly and the HSION bit in the CLK_ICKCR is 0. But the HSIRDY in the CLK_ICKCR is steel to 1 and the HSIPD in the CLK_REGCSR is to 0. I'm not using any peripheral for the moment.
Am I doing something wrong? What could avoid the HSI to turn down?I hope someone can help me. Thank you very much. #stm8l-hsi