?? system.h
字號:
void InitPLL(void);
void InitPLL(void)
{
// for 20MHz to 192MHz R=96-1 0x5f N=10-1 0x09
PLLNDIV=0x09; //set N
PLLRDIV=0x5f;
PLLCON=(PLLRDIV&0x03)<<6; //set R0..1
PLLRDIV=PLLRDIV>>2; //set R2..9
PLLCON=PLLCON&0xf7; //clear PLLRES bit
PLLCON=PLLCON|0x02; //set PLLEN bit
#ifdef DEBUG
printf("waiting for PLL running...");
#endif
while (!(PLLCON&0x01));
#ifdef DEBUG
printf("ok\n");
#endif
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -