📄 define.h
字号:
#ifndef _DEFINE_H_
#define _DEFINE_H_
#include <C8051F040.h>
#define DELAY_LOOP 1906
#define OSCILLATOR 24813600L //1:24841000L 2:24410500L 3:24802000L
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned long ulong;
sfr16 RCAP2 = 0xca;
sfr16 RCAP3 = 0xca;
sfr16 RCAP4 = 0xca;
sfr16 TMR4 = 0xcc;
sfr16 TMR3 = 0xcc;
sfr16 TMR2 = 0xcc;
sfr16 PCA0CP0 = 0xfb;
sfr16 PCA0CP1 = 0xfd;
sfr16 PCA0CP2 = 0xe9;
sfr16 PCA0CP3 = 0xeb;
sfr16 PCA0CP4 = 0xed;
sfr16 PCA0CP5 = 0xe1;
sfr16 ADC0VAL = 0xbe;
sfr16 ADC0GT = 0xc4;
sfr16 ADC0LT = 0xc6;
sfr16 DAC0VAL = 0xd2;
sfr16 DAC1VAL = 0xd2;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -