2011-04-10 12:59 AM
STM8L HSE Clock issues
2011-05-17 06:12 AM
Hello Marc.
There is a simpler way of testing STM8L clock frequency. Every STM8L microcontroller has got a Configurable Clock Output (CCO). The CLK_CCOR peripheral register controls the clock source and its prescaler. If you write 0x08 to CLK_CCOR, the CCO pin will output the HSE clock frequency. The frequency which your code outputs is slower because the STM8 code executes some instructions which take some clock cycles to execute. If you want an exact count, please, have a look at the compiler output. Regards EtaPhi2011-05-17 06:12 AM
Thanks,
I've checked the clock output. The clock works fine.