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:即使没有外部振荡器、控制器也能启动

Guru**** 2489685 points
Other Parts Discussed in Thread: MSP430F6779

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1552438/msp430f6779a-controller-boots-up-despite-no-external-oscillator

部件号:MSP430F6779A
主题中讨论的其他器件:MSP430F6779

工具/软件:

您好、

我正在使用 msp430f6779、并使用 emdc GUI 生成了一个电能计量代码。 即使未选择外部振荡器 (32.768kHz)、也可以启动 MCU。

我附加了自动生成的时钟初始化代码。

//*****************************************************************************
//
//! 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);
}


如何检测晶体是否有问题