??? _asm(nop); //BUS CLOCK=88M ??? _asm(nop);
??? while(!(CRGFLG_LOCK==1)); //when pll is steady ,then use it; ??? CLKSEL_PLLSEL =1; //engage PLL to system; ??? } ???
??? void SetBusCLK_96M(void) ??? {
??? CLKSEL=0X00; //disengage PLL to system ??? PLLCTL_PLLON=1; //turn on PLL ??? SYNR =0xc0 | 0x0b; ??? REFDV=0x80 | 0x01;
??? POSTDIV=0x00; //pllclock=2*osc*(1+SYNR)/(1+REFDV)=192MHz; ??? _asm(nop); //BUS CLOCK=96M ??? _asm(nop);
??? while(!(CRGFLG_LOCK==1)); //when pll is steady ,then use it; ??? CLKSEL_PLLSEL =1; //engage PLL to system; ??? } ???
??? void SetBusCLK_104M(void) ??? {
??? CLKSEL=0X00; //disengage PLL to system ??? PLLCTL_PLLON=1; //turn on PLL ??? SYNR =0xc0 | 0x0c; ??? REFDV=0x80 | 0x01;
??? POSTDIV=0x00; //pllclock=2*osc*(1+SYNR)/(1+REFDV)=208MHz; ??? _asm(nop); //BUS CLOCK=104M ??? _asm(nop);
??? while(!(CRGFLG_LOCK==1)); //when pll is steady ,then use it; ??? CLKSEL_PLLSEL =1; //engage PLL to system; ??? } ???
??? void SetBusCLK_120M(void) ??? {
??? CLKSEL=0X00; //disengage PLL to system ??? PLLCTL_PLLON=1; //turn on PLL ??? SYNR =0xc0 | 0x0d; ??? REFDV=0x80 | 0x01;
??? POSTDIV=0x00; //pllclock=2*osc*(1+SYNR)/(1+REFDV)=240MHz; ??? _asm(nop); //BUS CLOCK=120M ??? _asm(nop);
??? while(!(CRGFLG_LOCK==1)); //when pll is steady ,then use it; ??? CLKSEL_PLLSEL =1; //engage PLL to system; ??? }
???
??? void main(void) ??? { ???
??? EnableInterrupts; ???
??? for(;;) ??? {
??? _asm(nop); ??? } ??? }
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库锁相环(2)在线全文阅读。
相关推荐: