📄 main.c
字号:
#include <hidef.h> /* common defines and macros */
#include <mc9s12dg128.h> /* derivative information */
#include"PLL.h"
#include"testspeed.h"
#pragma LINK_INFO DERIVATIVE "mc9s12dg128b"
unsigned int speed_m=0;
//*测速模块.PT0
void main(void) {
/* put your own code here */
DisableInterrupts;
DDRH=0XFF; //输出设置
PTH=0x00;
PTH=0xff;
PLL_Init();
Start_PLL();
PaiInit();
RealTimer_Int();
EnableInterrupts;
for(;;) {} /* wait forever */
/* please make sure that you never leave this function */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -