- 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
原创力文档

文档评论(0)