- 13
- 0
- 约1.15万字
- 约 29页
- 2017-06-10 发布于河南
- 举报
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
您可能关注的文档
最近下载
- (2026秋新版)教科版六年级科学上册《第四单元 计量时间》PPT课件.pptx
- (2026秋新版)教科版六年级科学上册《第三单元 地球的运动》PPT课件.pptx
- (2026秋新版)教科版六年级科学上册第3单元《 6地球的公转》PPT课件.pptx
- 人防技术交底(五篇范例).doc VIP
- 中力 电动搬运车 EPT20 -20RA 售后手册.pdf
- (2026秋新版)教科版六年级科学上册第2单元《光》PPT课件.pptx
- 国际经济法(法大)国际经济法简答题参考练习.doc VIP
- 熊芳芳《春》教学设计.docx VIP
- 第一单元 健康生活 单元教学课件 2026秋教科版科学六年级上册.pptx
- 大庆市中小学生第三十三届篮球比赛.doc VIP
原创力文档

文档评论(0)