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.

MSP430FR5969 外部晶振量测不到信号

Other Parts Discussed in Thread: MSP430FR5969

使用MSP430FR5969 外部晶振(4M)量测不到输出clock,配置code如下:

void Init_Clock_exH(void)
{

// PJSEL0 |= BIT6 | BIT7; // For XT1 and XT2
GPIO_setAsPeripheralModuleFunctionInputPin(
GPIO_PORT_PJ,
GPIO_PIN6 + GPIO_PIN7,
GPIO_PRIMARY_MODULE_FUNCTION
);

// previously configured port settings
PM5CTL0 &= ~LOCKLPM5;

CS_setExternalClockSource(0, 4000000);

CS_turnOnHFXT(0);


// Set MCLK = DCO with frequency divider of 1
CS_initClockSignal(CS_MCLK, CS_HFXTCLK_SELECT, CS_CLOCK_DIVIDER_1);


// Set SMCLK = DCO with frequency divider of 1
CS_initClockSignal(CS_SMCLK, CS_HFXTCLK_SELECT, CS_CLOCK_DIVIDER_1);


}