?? config.h
字號:
/*
*********************************************************************************************************
* File Name:Config.h
*
* Last Modified Data:2006-08-10
*
* Last Version:V1.0
*
* Description:軟件配置
*
*********************************************************************************************************
*/
#include "..\Inc\W78E516B.h"
sbit wr = P1^0;
sbit rd = P1^1;
sbit cd = P1^2;
sbit STC = P1^3;
sbit BEEP = P1^4;
sbit dclk1 = P1^5;
sbit dclk2 = P1^6;
sbit dclk3 = P1^7;
sbit off = P3^2;
sbit POWER_ON_OFF = P3^3;
sbit SCLK_1 = P3^4; // AD 轉化控制
sbit SCLK_2 = P3^5;
sbit SDA_1 = P3^6;
sbit DIN_1 = P3^7;
#define BEEP_ON 0
#define BEEP_OFF 1
#define ON 1
#define OFF 0 // 855.1 2112.2 1470
#define LCD_LED 0x04
#define PGA204 0x03
#define OUT_12V 0x08
#define OUT_100V 0xF0
#define MinI (100)
#define TPH0 0xD8
#define TPL0 0xF0
//#define TPH1 0xD8
//#define TPL1 0xF0
#define NO_KEY_DOWN 0xff
#define I2C_YEAR 0x0000
#define I2C_ANJIANYIN 0x0001
#define I2C_XIANLU_QUANCHANG 0x0002
#define I2C_FenDuan 0x0004
#define MAX_OLDDATA_SUN (20)
#define OLDDATA_BYTE (12)
#define I2C_OLDDATA 0x0100
#define MAX_JUEYUAN (999900)// 絕緣電阻最大值 999.9M
#define MIN_JUEYUAN (400) // 絕緣電阻最小值,用于區分絕緣還是環阻
// 大于該值認為絕緣,小于該值認為環阻
#define MAX_HLR (99999)
#define PLUS1 {dclk1=0;dclk1=1;dclk1=0;Delay(100);}
#define PLUS2 {dclk2=0;dclk2=1;dclk2=0;Delay(100);}
#define PLUS3 {dclk3=0;dclk3=1;dclk3=0;Delay(100);}
#define Beep(ms) {BEEP = BEEP_ON; Delay(ms); BEEP = BEEP_OFF;}
#define USE_ON_CHIP_XRAM {CHPENR = 0x87; CHPENR = 0x59; CHPCON = 0x10; CHPENR = 0x00;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -