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

📄 user.h

📁 带遥控的液晶显示程序
💻 H
字号:

#ifndef USER_C51_DEFINE_2003_7_21
#define USER_C51_DEFINE_2003_7_21

//#include <REGX52.H>
#include <intrins.h>
#include <Absacc.h>

 
#define  byte  unsigned char                                               
#define  word  unsigned int                                                
#define  uchar unsigned char                                               
#define  uint  unsigned int                                                
                                                                            
#define  Delay5us();  _nop_(); _nop_(); _nop_(); _nop_(); _nop_();         
#define  Delay4us();  _nop_(); _nop_(); _nop_(); _nop_();                  
#define  Delay3us();  _nop_(); _nop_(); _nop_();                           
#define  Delay2us();  _nop_(); _nop_();                                    
#define  Delay1us();  _nop_();                                             
                                                                            
#ifndef  TRUE
#define  TRUE                      1
#endif
#ifndef  FALSE
#define  FALSE                     0
#endif
#ifndef  NULL
#define  NULL                      0
#endif

#ifdef _Delay50us
void Delay50us(unsigned int count)
{
	unsigned int i,j;
	for(i=0;i<count;i++)
	for(j=0;j<6;j++);
}
#endif

void Delay1ms(unsigned int count)
{
	unsigned int i,j;
	for(i=0;i<count;i++)
	for(j=0;j<120;j++);
}

#endif

⌨️ 快捷键说明

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