单片机读写 24C01~24C16程序 51 单片机 2009-08-14 10:13 阅读150 评论0 字号: 大 中 小 单片机读写24C01~ 24C16 程序 AT89S52 晶振频率为11
0592MHz 指令周期:1
0852us 功能说明:24C01-16 程序,能读写:24C01、24C02、24C04、24C08、24C16 读出的数据 送 P1 口显示 #include "reg52
h" #include "intrins
h" #define uchar unsigned char #define uint unsigned int sbit sda=P3^7;//;模拟 I2C 数据传送位 sbit scl=P3^6;//;模拟 I2C 时钟控制状态标志 void delay1(uint z)//延时为 1ms { uchar x,x1; for(;z>0;z--) { for(x=0;x