Advertisement

AT89C51中断模板的宏定义

阅读量:

头文件

复制代码
    /********************************* 山东交通学院 **************************************** * 实 验 名 :中断模板
    * 实验平台 :Proteus
    * 时     间:2022年5月12日10:40:11
    * 作    者 :Color Stripes   QQ :1401724065
    ****************************************************************************************/
    #include<reg51.h>
    #include<intrins.h>

延迟函数及时钟定义

复制代码
    #define FOSC 11059200L //晶振设置,默认使用11.0592M Hz
    //#define FOSC 12000000L //晶振设置,使用12M Hz
    //#define FOSC 24000000L //晶振设置,使用24M Hz
    void Delayms(unsigned int ms)	     //延迟函数		   
    {
    	unsigned int i,j;

全部评论 (0)

还没有任何评论哟~