- 6
- 0
- 约3.15千字
- 约 13页
- 2017-09-05 发布于河南
- 举报
iic总线读写程序(IIC bus read and write program)
iic总线读写程序(IIC bus read and write program)
//----------------------- function declarations, variable definition --------------------------------------------------------
#include reg51.h
#include intrins.h
Sbit SDA=P1^0; / / P1.0 analog data port
Sbit SCL=P1^1; / / P1.1 port analog clock port
#define NUM 10 / / send and receive buffer depth
#define (delayNOP); {_nop_ (_nop_); (_nop_); (_nop_); ();};
Unsigned char IData sendbuf[NUM]; / / data sending buffer
Unsigned char IData receivebuf[NUM]; / / buffer to receive data
Bit bdata SystemError; / / from the machine error flag
//--------------------
您可能关注的文档
- ercp(ERCP).doc
- erp课程学习方法(ERP Course Learning Methods).doc
- erp项目成功的关键在于团队建设(The key to the success of the ERP project is team building).doc
- etl流程调度设计(ETL process scheduling design).doc
- ettercap简要原理介绍以及使用说明(Ettercap brief introduction to the principle and instructions for use).doc
- erp渠道定位三大能力(ERP channel positioning three capabilities).doc
- eve专业术语(Eve terminology).doc
- eclipseme插件下载与使用(Eclipseme plug-in download and use).doc
- eve名词解释(Eve noun interpretation).doc
- eq调校(EQ calibration).doc
- 专题党课:立德树人担使命+培根铸魂育新人.docx
- 新课改-高中物理-选修第3册(10讲)教师版06 B波粒二象性 中档版17.docx
- 新课改-高中物理-选修第3册(10讲)教师版09 A人工核反 基础版25.docx
- 2025-2026年部编版高一历史第8单元中国近代史测试卷.docx
- 2025-2026年部编版高中语文高二下册第7单元课后练习.docx
- 2026-2027年湖南省常德市中考物理高频错题专题卷(有解析).docx
- 2026-2027年湖南省常宁市中考物理易错点专题突破卷(有解析).docx
- 2026-2027年湖南省长沙市中考物理全真仿真测评卷(有解析).docx
- 2026-2027年湖南省株洲市中考物理能力提升模拟卷(有解析).docx
- 2026年中国水平压力叶片过滤器行业市场规模及投资前景预测分析报告.pdf
原创力文档

文档评论(0)