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.

MSP430F5659: RTC not working

Part Number: MSP430F5659


Hi TI Teams,

Our customer feedback that the RTC will not working when MSP430F5659 is turned on again after being shut down for a long period of time. At this time, the external 32.768KHz crystal oscillator vibrates. It also does not working by restarting the device again and only work normal by remove the battery and then powered the device again.

The schematic is as below:

MSP430F5659_SCH.pdf

Can u give us some suggestion for this problem?

Thanks,

Kind Regards

  • Hi Lumina,

    Is the crystal work normal during shutdown mode?

    B.R.

    Sal

  • Hi Sal,

    The crystal works normal during shutdown mode.

    Thanks,

    Kind Regards

  • Hi Sal,

    The waveform of the 32.768KHz crystal is show as below:

    The RTC time is not update even the 4G module have synchronized the system clock. Only after the battery was removed and then powered the device again, the RTC time will working normally.

    Thanks,

    Kind Regards

  • hi Lumina,

    Thanks for the information. RTC is stuck according your information.

    Can you share what your low power configuration about msp430, mainly includes below:

    turned on again after being shut down for a long period of time

    1.What is your low power mode in shutdown?  does it happen for a short period of time? How you turn on it from shutdown mode?

    The RTC time is not update even the 4G module have synchronized the system clock.

    2.Does any of other module work abnormal when it turned on?

    Meanwhile, there is a description in Errata. You can check whether it will happen in customer usage.

    B.R.

    Sal

  • //***********************************************************************************
    // Configures the system clocks:
    // MCLK = SMCLK = DCO/FLL = mclkFreq (expected to be expressed in Hz)
    // ACLK = FLLref = XT1 = 32.768kHz
    //
    // XT2 is not configured here. Instead, the USB API automatically starts XT2
    // when beginning USB communication, and optionally disables it during USB
    // suspend. It's left running after the USB host is disconnected, at which
    // point you're free to disable it. You need to configure the XT2 frequency
    // in the Descriptor Tool (currently set to 4MHz in this example).
    // See the Programmer's Guide for more information.
    //***********************************************************************************

    #define MCU_MCLK 20000000
    #define XT1_CLK 32768
    #define XT2_CLK 24000000

    void Sys_init_clocks(uint32_t mclkFreq)
    {

    while(BAKCTL & LOCKBAK) // Unlock XT1 pins for operation
    BAKCTL &= ~(LOCKBAK);
    UCS_turnOnLFXT1(UCS_XT1_DRIVE_0, UCS_XCAP_3); // UCS_XCAP_3
    UCS_initClockSignal(UCS_ACLK, UCS_XT1CLK_SELECT, UCS_CLOCK_DIVIDER_1);
    UCS_initClockSignal(UCS_FLLREF, UCS_XT1CLK_SELECT, UCS_CLOCK_DIVIDER_1);
    UCS_initFLLSettle(mclkFreq/1000, mclkFreq/32768);
    UCS_setExternalClockSource(XT1_CLK, XT2_CLK);
    PMM_disableSvsLSvmL();
    //PMM_disableSvsHSvmH();

    // UCS_enableClockRequest(UCS_SMCLK);
    //P3SEL|=BIT4; //P1.0鏉堟挸鍤瑼CLK
    // P3DIR|=BIT4;

    }

    Sys_init_clocks(MCU_MCLK);

**Attention** This is a public forum