51读写串行EEPROM芯片at2402程序(国外英文资料).docVIP

  • 11
  • 0
  • 约1.15万字
  • 约 29页
  • 2017-06-10 发布于河南
  • 举报

51读写串行EEPROM芯片at2402程序(国外英文资料).doc

51读写串行EEPROM芯片at2402程序(国外英文资料)

51读写串行EEPROM芯片at2402程序(国外英文资料) Read and write serial EEPROM chip at2402 (C) / * Name: the read-write program for AT24C02, which USES the I2C bus and has a relatively independent I2C bus read and write function * / # include # include # include # define DELAY_TIME 60 / *, no less than 50! Otherwise, there may be a sequence of confusion 1 # define TRUE # define FALSE 0 Sbit SCL = P1 ^ 7; / * suppose P1.7 and P1.6 control * / Sbit SDA = P1 ^ 6; The Function Definition of a Function Definition is * * * * * * Void DELAY (unsigned int t) / * DELAY function * / { While (t! = 0) T --; } Void I2C_Start

文档评论(0)

1亿VIP精品文档

相关文档