#include <msp430xG46x.h>
#include "delay.h"
void uart_send(unsigned char data_point[],unsigned char n);
void Intial_CPU()
{
unsigned int i;
WDTCTL=WDTPW+WDTHOLD; //开机复位前要先关看门狗,WDTPW=0x5a00;
FLL_CTL0 |= XCAP14PF; // Configure load caps
FLL_CTL1 &= ~XT2OFF; // Clear bit = HFXT2 on
do
{
IFG1 &= ~OFIFG; // Clear OSCFault flag
for (i = 0x47FF; i > 0; i--); // Time for flag to set
}
while ((IFG1 & OFIFG)); // OSCFault flag still set?
FLL_CTL1 |= SELM_XT2; // MCLK = XT2
_EINT();
}