基于STC单片机的虚拟IIC软件包(改自周立功软件包)(国外英文资料).docVIP

  • 7
  • 0
  • 约6.24万字
  • 约 15页
  • 2017-06-05 发布于河南
  • 举报

基于STC单片机的虚拟IIC软件包(改自周立功软件包)(国外英文资料).doc

基于STC单片机的虚拟IIC软件包(改自周立功软件包)(国外英文资料)

基于STC单片机的虚拟IIC软件包(改自周立功软件包) # include reg51. H # include intrins. H # define uchar unsigned char / * macro defines * / Pound sign define uint unsigned int Extern void Delay1us (unsigned char); Sbit SDA = P1 ^ 6; / * simulate I2C data transfer bit * / Sbit SCL = P1 ^ 7; / * simulate the I2C clock control bit * / An ack bit; / * reply mark bit * / / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Starting bus function Function prototype: void Start_I2c (); Function: start the I2C bus, which is the I2C star

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档