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.

MSP430F6779A: Controller boots up despite no external oscillator

Part Number: MSP430F6779A
Other Parts Discussed in Thread: MSP430F6779

Tool/software:

Hi,

I am using msp430f6779 and generated a code for energy metering using emdc gui. Even if my external oscillator(32.768khz) is not selected my MCU boot's up.

I am attaching the auto generated clock init code.

//*****************************************************************************
//
//! Initializes the system clocks
//!
//! This function initializes crystals, DCO and ACLK,SMCLK,MCLK
//!
//! \return none
//
// *****************************************************************************
static void hal_system_ClockInit(uint32_t mclkFreq)
{

//    PJDIR |= BIT0 | BIT1 | BIT3;           // ACLK, MCLK, SMCLK set out to pins
//    PJSEL |= BIT0 | BIT1 | BIT3;           // PJ.0,1,3 for debugging purposes.
    PMM_setVCore(PMM_CORE_LEVEL_3);

    UCS_turnOnLFXT1(XT1DRIVE_0, UCS_XCAP_0);
//    UCS_turnOnLFXT1(XT1DRIVE_0, UCS_XCAP_3);

    UCS_initClockSignal(
       UCS_FLLREF,
       UCS_XT1CLK_SELECT,
       UCS_CLOCK_DIVIDER_1);

    UCS_initClockSignal(
       UCS_ACLK,
       UCS_XT1CLK_SELECT,
       UCS_CLOCK_DIVIDER_1);

    UCS_initFLLSettle(
        mclkFreq/1000,
        mclkFreq/32768);
}


How to detect if there is an issue with crystal

**Attention** This is a public forum