www.pudn.com > 6B595.rar > Init_Clock_.h, change:2011-05-20,size:327b


/************************ 
Bus Clock 
************************/ 
 
void Init_Clock()  
{      
  CLKSEL=0x00; 
  PLLCTL_PLLON=1;   //  on PLL 
 
  SYNR =0xc0 | 0x09;  //80M 
  //SYNR =0xc0 | 0x01;//Ϊ16MHz                      
  REFDV=0x80 | 0x01; 
 
  POSTDIV=0x00; 
  while(CRGFLG_LOCK!=1); 
  CLKSEL_PLLSEL=0x01; 
}