pll.c

来自「智能车测速程序 智能车测速程序 智能车测速程序」· C语言 代码 · 共 15 行

C
15
字号
#include <hidef.h>      /* common defines and macros */
#include <mc9s12dg128.h>     /* derivative information */

void PLL_Init(void) {
  REFDV=0x01; 
  SYNR=0x02;						    //Set the system clock 48MHz
}

void Start_PLL(void) {
  asm{
    BRCLR CRGFLG,#$08,*
    BSET CLKSEL,#$80
    }													  
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?