void main(void)
{
uchar i;
WDTCTL = WDTPW + WDTHOLD; // stop watch dog
BCSCTL1|=XT2OFF;
BCSCTL1|=XTS; //extern OSC
do
{
IFG1 &= ~OFIFG; // Clear OSCFault flag
for (i = 0xFF; i > 0; i--);// Time for flag to set
}
while ((IFG1 & OFIFG)); //OSCFault flag still set?
BCSCTL2|=SELM1;
Timer_Init();
}
怎么不能起振呢 |