Description: #include <reg52.h>
#include <intrins.h>
#define ERROR 10 //允许出错次数
sbit SDA=P3^3
sbit SCL=P3^4
sbit LED=P1^7
enum eepromtype {AT2401,AT2402,AT2404,AT2408,AT2416,AT2432,AT2464,AT24128,AT24256}
enum eepromtype enumer
unsigned char code buf1 []={1,3,5,7,9,10,11,12} /* 发送缓冲区(记录八个小于等于255的数据)*/
unsigned char buf2 [8] /* 接收缓冲区(接收8个小于等于255的数据)*/
File list (Check if you may need any files):
24c256读写程序.txt