2011-03-25 07:44 AM
Init internal clock in assembler
2011-05-17 06:12 AM
Hello Normand!
As the ''STM8L15x and STM8L16x microcontroller family'' reference manual says, the STM8L152 startup clock is HIS (16 MHz). However, the CLK_CKDIVR initial value is 3, so STM8L152 initially runs at 2 MHz. To run it at 16 Mhz, all you need is: CLR CLK_CKDIVR which sets HSI divider to 1. Regards EtaPhi