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);
}
Susan Yang:
您是否有使用下面链接内的例程?
dev.ti.com/…/node