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.

关于LFXTOFFG置位的问题

Other Parts Discussed in Thread: MSP430FR5969

大家好!我用的是MSP430FR5969,目前遇到一个问题:

do {
CSCTL5 &= ~LFXTOFFG; // Clear XT1 fault flag
SFRIFG1 &= ~OFIFG;
} while (SFRIFG1 & OFIFG); // Test oscillator fault flag

程序到这里过不了,查看寄存器发现LFXTOFFG=1;注释这段代码后,能正常运行,请问什么原因?