This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: How can I detect clock source LFXT fail??

Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi experts, 

I am using LFCLK with the clock source set to LFXT.

How can I detect if the LFXT has failed (e.g., due to an open crystal pin)? I have tried reading the status of the CLKSTATUS register, but the status does not change when I remove the crystal, and the TimerG0 interrupt still operates, but the interrupt timing is inaccurate.

Please provide the correct and detailed flowchart to check for LFXT failure so that I can perform a boot reset and switch to LFOSC.

Thanks and best regards,
             Son


  • Hi,

    The LFXTGOOD bit only indicates once the oscillator has started successfully, it doesn’t imply the clock has stabilized. One method, you can configure the clock output in the Sysconfig as shown below and detect the output waveform's frequency.

    Best Regards,
    Peter