Skip to main content
Visitor II
November 4, 2009
Question

LSE external crystal oscillator debug

  • November 4, 2009
  • 1 reply
  • 518 views
Posted on November 04, 2009 at 05:31

LSE external crystal oscillator debug

    This topic has been closed for replies.

    1 reply

    mjobardAuthor
    Visitor II
    May 17, 2011
    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.