资源简介

利用51单片机俩个引脚,制作的类IIC多机通信 资源含有proteus电路仿真图,拥有三个工程源码,分别是主机和俩个从机。

资源截图

代码片段和文件信息

#include “IIC_8051.h“

sbit s = P1^0;

void main()
{
   char datas01[] = {0x010x020x03};
   char datas02[] = {0x020x030x04};
   int i = 0;
   
   while ( 1 )
   {
   IIC_Start();
   IIC_Send( datas01 3 );

   /* 屏蔽此段时主机只和从机通信 */
   //IIC_Start();
   //IIC_Send( datas02 3 );
   }
  
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1332  2013-05-14 16:52  8051多机通信\IIC_8051(SLAVE001)\main.LST

     文件         38  2013-05-14 17:15  8051多机通信\IIC_8051(SLAVE001)\IIC_8051.__i

     文件       6938  2013-05-14 17:15  8051多机通信\IIC_8051(SLAVE001)\IIC_8051.LST

     文件        758  2013-05-14 09:52  8051多机通信\IIC_8051(SLAVE001)\STARTUP.OBJ

     文件        472  2013-05-14 16:49  8051多机通信\IIC_8051(SLAVE001)\IIC_8051.H

     文件       3003  2013-05-14 17:15  8051多机通信\IIC_8051(SLAVE001)\IIC_8051.C

     文件       6376  2009-05-07 14:37  8051多机通信\IIC_8051(SLAVE001)\STARTUP.A51

     文件       1755  2013-05-14 17:17  8051多机通信\IIC_8051(SLAVE001)\IIC_8051(SLAVE).plg

     文件        258  2013-05-14 16:52  8051多机通信\IIC_8051(SLAVE001)\main.c

     文件       2318  2013-05-14 16:52  8051多机通信\IIC_8051(SLAVE001)\main.OBJ

     文件       5317  2013-05-14 17:15  8051多机通信\IIC_8051(SLAVE001)\IIC_8051.OBJ

     文件      14066  2013-05-14 09:52  8051多机通信\IIC_8051(SLAVE001)\STARTUP.LST

     文件         84  2013-05-14 17:15  8051多机通信\IIC_8051(SLAVE001)\IIC_8051(SLAVE).lnp

     文件      10268  2013-05-14 17:15  8051多机通信\IIC_8051(SLAVE001)\IIC_8051(SLAVE).M51

     文件         34  2013-05-14 16:52  8051多机通信\IIC_8051(SLAVE001)\main.__i

     文件       1161  2013-05-14 17:15  8051多机通信\IIC_8051(SLAVE001)\IIC_8051(SLAVE).hex

     文件       7222  2013-05-14 17:15  8051多机通信\IIC_8051(SLAVE001)\IIC_8051(SLAVE)

    .......     56962  2013-05-14 17:16  8051多机通信\IIC_8051(SLAVE001)\IIC_8051(SLAVE).uvopt

    .......     13607  2013-05-13 14:26  8051多机通信\IIC_8051(SLAVE001)\IIC_8051(SLAVE).uvproj

    .......     13437  2013-05-07 18:52  8051多机通信\IIC_8051(SLAVE001)\IIC_8051(SLAVE)_uvproj.bak

    .......     56944  2013-05-14 17:08  8051多机通信\IIC_8051(SLAVE001)\IIC_8051(SLAVE)_uvopt.bak

     文件       1471  2013-05-14 17:16  8051多机通信\IIC_8051\main.LST

     文件         34  2013-05-14 17:16  8051多机通信\IIC_8051\main.__i

     文件       6728  2013-05-14 17:07  8051多机通信\IIC_8051\IIC_8051.LST

     文件        485  2013-05-14 16:51  8051多机通信\IIC_8051\IIC_8051.H

     文件       2939  2013-05-14 17:07  8051多机通信\IIC_8051\IIC_8051.C

     文件         38  2013-05-14 17:07  8051多机通信\IIC_8051\IIC_8051.__i

    .......         0  2013-05-07 14:05  8051多机通信\IIC_8051\S_uvproj.bak

    .......     56956  2013-05-14 17:16  8051多机通信\IIC_8051\IIC_8051.uvopt

     文件        758  2013-05-13 12:55  8051多机通信\IIC_8051\STARTUP.OBJ

............此处省略49个文件信息

评论

共有 条评论