24c16读写驱动程序.docxVIP

  • 158
  • 0
  • 约2.83千字
  • 约 6页
  • 2021-04-19 发布于天津
  • 举报
24cl6读写驱动程序 电子发烧友电子技术论坛 //////////////////////////////////////////////////////////////// //24cl6读写驱动程序, 〃二 /*模块调用: 读数据:read (unsigned int address) 写数据:write (unsigned int address, unsigned char dd) dd 为要写的 数据字节*/ // sbitsda=P30;sbitscl二P31;sbitaO=ACC0; //定义ACC的位,利用ACC操作 速度最快sbital二ACC1;sbita2=ACC sbit sda=P3 0; sbit scl二P3 1; sbit aO=ACC 0; //定义ACC的位,利用ACC操作 速度最快 sbit al二ACC 1; sbit a2=ACC 2; sbit a3=ACC 3; sbit a4=ACC 4; sbit ao=ACC 5; 6;sbit 6; sbit a7=ACC 7; #pragma disable void s24(void) //起始函数 { _nop_(); scl二0; sda=l; scl=l; _nop_(); sda=0; _nop_(); _nop_(); scl二0; _nop_(); _nop_(); sda=

文档评论(0)

1亿VIP精品文档

相关文档