iic总线读写程序(IIC bus read and write program).docVIP

  • 6
  • 0
  • 约3.15千字
  • 约 13页
  • 2017-09-05 发布于河南
  • 举报

iic总线读写程序(IIC bus read and write program).doc

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 //--------------------

文档评论(0)

1亿VIP精品文档

相关文档