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.

MSP430F6746: XT1 LF mode as FLL reference clock source

Part Number: MSP430F6746

Hi,

I have a question from my customer for UCS operation.
Suppose the UCS module is in the default configuration.

User's manual SLAU208Q section 5.2. says:
"When a 32768-Hz crystal is used for XT1CLK, the fault control logic immediately causes ACLK to be sourced by the
REFOCLK, because XT1 is not stable immediately (see Section 5.2.12). When crystal start-up is obtained
and settled, the FLL stabilizes MCLK and SMCLK to 1.048576 MHz and fDCO = 2.097152 MHz."

And section 5.2.12 says:
"When using XT1 operation in LF mode as the reference source into the FLL (SELREF = {0}), a crystal
fault automatically causes the FLL reference source, FLLREFCLK, to be sourced by the REFO.
XT1LFOFFG is set."

This means;
- FLL clock source is once switched to REFCLK as XT1 is not stable at device power-on.
- FLL clock source is automatically switched back to XT1 LF clock after XT1 is stabilized.
- Then MCLK (sourced from DCOCLKDIV) is stabilized to 1.048576MHz by FLL (reference clock sourced from XT1 LF).
Correct?

Thanks and regards,
Koichiro Tashiro

  • Hi Koichiro,

    yes and no.  You are correct if XT1 fails, REFO becomes the reference clock for the DCO.  But, after switched to REFO, if XT1 starts working, the clocks don’t automatically switch back to using XT1.  It is possible to monitor the state of the XT1 and manually switch it back though.

  • Hi Dennis,

    Thanks for your quick reply.

    But, after switched to REFO, if XT1 starts working, the clocks don’t automatically switch back to using XT1.  It is possible to monitor the state of the XT1 and manually switch it back though.

    So user needs to check XT1 status and manually switch FLL reference clock to XT1.
    I have two questions.
    1) To check XT1 status, the software once clears XT1LFOFFG, then checks XT1LFOFFG bit status?
    If set, XT1 is still in fault state. If not set, XT1 is now stable.
    2) I guess an oscillator fault does not change SELREF bit  setting in register, even the reference clock is switched to REFO. 
    So SELREF bit is still 000b(XT1CLK).
    To configure FLL reference clock manually, SELREF bit should be set 000b again?

    Thanks and regards,
    Koichiro Tashiro

  • Hi Koichiro,

    My guess would be if XT1 fails or fails to start, it won't suddenly start working some time later.  Typically, if XT1 fails, its probably due to a bad crystal and remains bad.

    What is the application?  Is there a reason the device can't operate on REFO ( other than it draws a few more uA)?

  • Hi Dennis,

    There is no such issue happens at customer. This is just a question for TRM description.
    As TRM section 5.2 says below, customer wonders what actions need to be taken by user software.
    "When a 32768-Hz crystal is used for XT1CLK, the fault control logic immediately causes ACLK to be sourced by the
    REFOCLK, because XT1 is not stable immediately (see Section 5.2.12). When crystal start-up is obtained
    and settled, the FLL stabilizes MCLK and SMCLK to 1.048576 MHz and fDCO = 2.097152 MHz."

    At power-up, XT1CLK needs sometime to get stabilized and REFOCLK is used as FLL reference clock, right?
    Then XT1CLK is stabilized in 500ms or 1000ms (according to Datasheet section 5.16).
    Customer wants to know whether user needs to switch back FLL reference clock to XT1CLK manually or not.
    And your answer below means "Yes"

    after switched to REFO, if XT1 starts working, the clocks don’t automatically switch back to using XT1.  It is possible to monitor the state of the XT1 and manually switch it back though.

    Now I have below questions. Please answer them. 

    1) To check XT1 status, the software once clears XT1LFOFFG, then checks XT1LFOFFG bit status?
    If set, XT1 is still in fault state. If not set, XT1 is now stable.
    2) I guess an oscillator fault does not change SELREF bit  setting in register, even the reference clock is switched to REFO. 
    So SELREF bit is still 000b(XT1CLK).
    To configure FLL reference clock manually, SELREF bit should be set 000b again?


    Thanks and regards,
    Koichiro Tashiro

  • Hi Koichiro,

    Yes, that all sounds correct.

**Attention** This is a public forum