void SysClk_Init() //初始化锁相环64MHz
{
CLKSEL=0x00; //disengage PLL to system
PLLCTL_PLLON=1; //turn on PLL
SYNR=3;
REFDV=1; //pllclock=2*osc*(1+SYNR)/(1+REFDV)=64MHz;
while(!(CRGFLG_LOCK==1)); //等待系统时钟稳定
CLKSEL_PLLSEL =1; //选择PLL时钟作为系统时钟now pll_clk=64M and the Bus clk=32M
}
void SysClk_Init() //初始化锁相环64MHz
{
CLKSEL=0x00; //disengage PLL to system
PLLCTL_PLLON=1; //turn on PLL
SYNR=7;
REFDV=3; //pllclock=2*osc*(1+SYNR)/(1+REFDV)=64MHz;
while(!(CRGFLG_LOCK==1)); //等待系统时钟稳定
CLKSEL_PLLSEL =1; //选择PLL时钟作为系统时钟now pll_clk=64M and the Bus clk=32M
}
这两种设置有差别吗?