cancel
Showing results for 
Search instead for 
Did you mean: 

LSE external crystal oscillator debug

mjobard
Associate
Posted on November 04, 2009 at 05:31

LSE external crystal oscillator debug

1 REPLY 1
mjobard
Associate
Posted on May 17, 2011 at 15:05

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.