/******************************倍频*****************************************/
void PLLInit(void)
{ //BUS-CLOCK=PLL-CLOCK/2=24M
REFDV = 1;
SYNR =2;
while (!CRGFLG_LOCK); // wait here till the PLL is locked.
CLKSEL|=0x80; // switch the bus clock to the PLL.
}
/***************************IO口初始化************************************/
void IOPortInit(void)
{
DDRB=0X00;