msp430f149中xin引脚与xout引脚接8M晶振,但是8M晶振不起振
程序是这样的
#include <msp430x14x.h>
void main(void)
{
unsigned int i;
WDTCTL = WDTPW+WDTHOLD;
P5DIR =0X10;
P5SEL=0X10;
BCSCTL1&= XTS;
do{
IFG1 &= ~OFIFG;
for(i=0xff;i>0;i--);
}
while((IFG1&OFIFG)!=0);
BCSCTL2|=SELM1+SELM0;
for(;;);
} |