没有合适的资源?快使用搜索试试~ 我知道了~
only_long_press_key.txt
需积分: 8 0 下载量 119 浏览量
2013-12-14
13:13:24
上传
评论
收藏 22KB TXT 举报
温馨提示
试读
22页
Mcu:s3f84A5 internal 4Mhz ,no rest . Date:2012-10-28 Program function: 1:long press the hot water key ,the hot water vlave works,longly press again shut off hot water valve 2:long the cold water key,the cold water vlave works,longly press it again shut off the cold vlave
资源推荐
资源详情
资源评论
/***********************************************************************
Item :GR306A key Deal with
Mcu:s3f84A5 internal 4Mhz ,no rest .
Date:2012-10-28
Program function:
1:long press the hot water key ,the hot water vlave works,longly press again
shut off hot water valve
2:long the cold water key,the cold water vlave works,longly press it again
shut off the cold vlave
***********************************************************************/
/***********************************************************************
define using head files
***********************************************************************/
#include "ioS3F84A5.h"
#include "intrinsics.h"//包含内部函数
/***********************************************************************
define using marcos
***********************************************************************/
#define uchar unsigned char
#define uint unsigned int
#define _clrwdt() WDTE=0xac
#define _DI() asm("di")
#define _EI() asm("ei")
#define _NOP() asm("nop");asm("nop")
#define SETBIT(Port,Bit) (Port|=(1<<Bit)) //位置1
#define CLRBIT(Port,Bit) (Port&=~(1<<Bit)) //位清零
Item :GR306A key Deal with
Mcu:s3f84A5 internal 4Mhz ,no rest .
Date:2012-10-28
Program function:
1:long press the hot water key ,the hot water vlave works,longly press again
shut off hot water valve
2:long the cold water key,the cold water vlave works,longly press it again
shut off the cold vlave
***********************************************************************/
/***********************************************************************
define using head files
***********************************************************************/
#include "ioS3F84A5.h"
#include "intrinsics.h"//包含内部函数
/***********************************************************************
define using marcos
***********************************************************************/
#define uchar unsigned char
#define uint unsigned int
#define _clrwdt() WDTE=0xac
#define _DI() asm("di")
#define _EI() asm("ei")
#define _NOP() asm("nop");asm("nop")
#define SETBIT(Port,Bit) (Port|=(1<<Bit)) //位置1
#define CLRBIT(Port,Bit) (Port&=~(1<<Bit)) //位清零
#define XORBIT(Port,Bit) (Port^=(1<<Bit)) //位取反
#define TSTBIT(Port,Bit) (Port&(1<<Bit)) //位测试
#define bit0 (1<<0)
#define bit1 (1<<1)
#define bit2 (1<<2)
#define bit3 (1<<3)
#define bit4 (1<<4)
#define bit5 (1<<5)
#define bit6 (1<<6)
#define bit7 (1<<7)
#define bit8 (1<<8)
#define bit9 (1<<9)
#define bit10 (1<<10)
#define bit11 (1<<11)
#define bit12 (1<<12)
#define bit13 (1<<13)
#define bit14 (1<<14)
#define bit15 (1<<15)
#define AD_EndBit bit3 //AD转换结束标志
/*************************************************************************
定义9454的SMART OPTION值****
003CH,must be initialized to 0
003DH,must be initialized to 0
003EH,enable LVR(2.3V)
003FH,internal RC(3.2MHZ in Vdd=5V)
*************************************************************************/
__root const volatile uchar SmartOption[4] @0x003c = {0xff,0xff,0xff,0x98};
#define TSTBIT(Port,Bit) (Port&(1<<Bit)) //位测试
#define bit0 (1<<0)
#define bit1 (1<<1)
#define bit2 (1<<2)
#define bit3 (1<<3)
#define bit4 (1<<4)
#define bit5 (1<<5)
#define bit6 (1<<6)
#define bit7 (1<<7)
#define bit8 (1<<8)
#define bit9 (1<<9)
#define bit10 (1<<10)
#define bit11 (1<<11)
#define bit12 (1<<12)
#define bit13 (1<<13)
#define bit14 (1<<14)
#define bit15 (1<<15)
#define AD_EndBit bit3 //AD转换结束标志
/*************************************************************************
定义9454的SMART OPTION值****
003CH,must be initialized to 0
003DH,must be initialized to 0
003EH,enable LVR(2.3V)
003FH,internal RC(3.2MHZ in Vdd=5V)
*************************************************************************/
__root const volatile uchar SmartOption[4] @0x003c = {0xff,0xff,0xff,0x98};
剩余21页未读,继续阅读
资源评论
pzymcuccc
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 背景music,用作业网轮地址
- comment_6e56cd5d6e140046ef1cd248910ea5ca.png
- 基于卷积神经网络的自动驾驶系统的设计与实现
- MySQL的执行原理-2.md
- 基于 FCN 网络对无人机俯拍下的生活场景语义分割(12类别)【包含数据集、完整代码、训练好的结果、权重文件等等】
- CISCN2024-re3-rust-baby(Frida多字节程序插桩爆破)
- soft:磁盘清理工具
- .netcore控制台使用Nssm打包windows服务,加winform管理服务界面
- db-college.sql
- wpf-dragdrop-treeview(WPF较好拖拽效果).7z
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功