⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.h

📁 正交信号源的单片机和cpld源码
💻 H
字号:
/*------------------------------------------*-

   Main.H (v1.00)

  --------------------------------------------
   
   'Project Header' 

   COPYRIGHT
   ---------

   This code is associated with the electronic Clock

   This code is copyright by .

-*-------------------------------------------*/
#ifndef _MAIN_H
#define _MAIN_H

//------------------------------------------------------------------
// WILL NEED TO EDIT THIS SECTION FOR EVERY PROJECT!!!!!!!!
//------------------------------------------------------------------

// Must include the appropriate microcontroller 
//header file here
#include <reg52.h>
#include<absacc.h>

// Oscillator / resonator frequency (in Hz) 
//e.g. (11059200UL)
//#define OSC_FREQ (12000000UL)


// Number of oscillations per instruction (12, etc)
//#define OSC_PER_INST (12)

//----------------------------------------------
// SHOULD NOT NEED TO EDIT THE SECTIONS BELOW
//----------------------------------------------

// Type define   
typedef unsigned char uchar; 
typedef unsigned int uint; 
typedef unsigned long ulong; 

// Interrupts  
#define INT_T0_Overflow 1
#define INT_T1_Overflow 3
#define INT_T2_Overflow 5
//#define ture  1
//#define false 0



#endif

/*----------------------------------------------*-
  ---- END OF FILE -------------------------------
-*----------------------------------------------*/ 

⌨️ 快捷键说明

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