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.
XT2外接的是8MHz晶振,33pF电容
按照资料都是这样配置的:
BCSCTL1 &= ~XT2OFF; // XT2有效
do
{
IFG1 &= ~OFIFG; //清除振荡器失效标志
for (i = 0xFF; i > 0; i--); // 稳定时间
}
while (IFG1 & OFIFG); // 如果振荡器失效标志存在
BCSCTL2 = SELM_2 + SELS; // MCLK = XT2
结果程序就陷在while循环中了、
把8M的晶振和起振电容都换新了,还是不行,请问如何解决?