本内容提供了AT24C02B的数据写入读出程序-PIC单片机
#define SDA RC4
#define SCL RC3
bank1 unsigned char eeprom_xie_ru_shu_ju[]={8,0,0,1,24,5,30,0};
bank1 const unsigned char bcd[]={0X3F,0X06,0X5B,0X4F,
0X66,0X6D,0X7d,0X07,0X7F,0X6F,0x00};
const unsigned char bcd_dai_xiao_shu_dian[]={0XBF,0X86,0XDB,
0XCF,0XE6,0XED,0XFd,0X87,0XFF,0XEF,0x00};
bank1 unsigned int t,h;
bank1 unsigned char eeprom_du_chu_shu_ju[8],p=0,r5;
bank1 unsigned char m[2];
bank1 unsigned int siji;
bank1 unsigned char huanshub=0;
bank1 unsigned char daiabudi=1;
bank1 unsigned char kabi=0;
bank1 unsigned char j=0;
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉