单片机与AT24C02

时间:2017-05-17 15:12:32
【文件属性】:

文件名称:单片机与AT24C02

文件大小:3KB

文件格式:C

更新时间:2017-05-17 15:12:32

I2C

#include #include #define uint unsigned int #define uchar unsigned char unsigned char sec; //定义计数值,每过1秒,sec加1 unsigned int tcnt; //定时中断次数 bit write=0; //写24C08的标志; sbit sda=P2^0; //IO口定义 sbit scl=P2^1;


网友评论