- 0
- 0
- 约1.91万字
- 约 28页
- 2020-04-09 发布于湖北
- 举报
1 -
对采油系统在采油时的拉力载荷监测程序清单
#include REG52.H
#include math.H
#define uint unsigned int
#define uchar unsigned char
/***************************************************************/
/* 命令常量定义 */
#define CMD_START_DS12C887 0x20 /* 开启时钟芯片 */
#define CMD_START_OSCILLATOR 0x70 /* 开启振荡器,处于抑制状态 */
#define CMD_CLOSE_DS12C887 0x30 /* 关掉时钟芯片 */
/* 所有的置位使用或操作,清除使用与操作 */
#define MASK_SETB_SET 0x80 /* 禁止刷新80 */
#define MASK_CLR_SET 0x7f /* 使能刷新 */
#define MASK_SETB_DM 0x04 /* 使用HEX格式 */
#define MASK_CLR_DM
原创力文档

文档评论(0)