2009-11-03 08:31 PM
LSE external crystal oscillator debug
2011-05-17 06:05 AM
Hello,
I am using STM8L152C6 along with LSE 32768Hz crystal external oscillator. For some reason (Crystal oscillator type? Recommended resistor/capacitor? Software procedure?) the signal is not seen by the microcontroller: - I first activate LSE oscillator and poll during xx seconds the LSERDY bit - I then initialize CLK_CRTCR after polling during xx seconds the RTCSWBSY bit - but then RTC and LCD ITs occur rarely: approx. one every minute. It looks like the external crystal oscillator is not seen. I have checked on the pin input/output of the LSE and the signal seems correct (0.5V amplitude with 0.6V offset). I have tried to change the serial resistor to a bigger value but result is the same. Do you have any suggestion that would help (HW/SW)? Thanks.