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.

msp430g2211时钟问题



void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // 关闭看门狗
BCSCTL1 = CALBC1_1MHZ; //设定DCO 为1MHZ
DCOCTL = CALDCO_1MHZ;
BCSCTL3 |= LFXT1S_2;
IFG1 &= ~OFIFG;
BCSCTL2 &= ~SELS;
BCSCTL2 |= SELM_0+DIVM_0;
//FCTL2 = FWKEY + FSSEL0 + FN4 + FN3 +FN0;
RF24L01_IO_set();
init_NRF24L01();
read();
ccr();
while(1)
{
_BIS_SR(LPM3_bits);
}
}

这个是主函数内容就是对mclk不分频时不能上电后自动工作,要硬件复位后才可以。要是对mclk分频了就可以工作,不需要硬件复位,

请高手指导。