debug.ini
来自「下载说明: 本光盘的所有代码均在Keil C51 7.0以上版本编译通过。读者的」· INI 代码 · 共 32 行
INI
32 行
/*---------------------------------------------------------
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 + =
减小字号Ctrl + -
显示快捷键?