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

📄 debug.ini

📁 下载说明: 本光盘的所有代码均在Keil C51 7.0以上版本编译通过。读者的电脑只需要 能够运行Windows 98 以上版本的操作系统、并能够安装Keil C51 7.0以上版本
💻 INI
字号:
/*---------------------------------------------------------
Disable the timer 0 external gate so that the program works.
---------------------------------------------------------*/
PORT3 &= ~0x04;


/*---------------------------------------------------------
Create buttons for 10, 100, 1000, and 10,000 uSec pulses.
---------------------------------------------------------*/
define button "10 uSec Pulse" ,   "t0_gate (0.000010)"
define button "100 uSec Pulse" ,  "t0_gate (0.00010)"
define button "1 mSec Pulse" ,    "t0_gate (0.0010)"
define button "10 mSec Pulse" ,   "t0_gate (0.010)"
define button "5.011966 Sec Pulse" ,"t0_gate (5.0119660)"


/*---------------------------------------------------------
The following signal function creates a pulse on /INT0
that is secs long.  The function sets P3.2, waits secs,
and resets P3.2.
---------------------------------------------------------*/
signal void t0_gate (float secs) {
  PORT3 |= 0x04;
  swatch (secs);
  PORT3 &= ~0x04;
}

/*---------------------------------------------------------
---------------------------------------------------------*/


⌨️ 快捷键说明

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