资源简介

rs485多机通信,基于Proteus的,很生动详细,,看了就明白

资源截图

代码片段和文件信息


#include
#include
#include

unsigned char serial_receiver;

sbit P3_5=P3^5;

/****************************************

串行口中断子程序

****************************************/

void serial (void) interrupt 4 using 1
{
  ES=0;
RI=0;

if(SBUF==0x01)
{
  P3_5=1;
SM2=0;
P1=0x10;
SBUF=0x10;
while(TI!=1);TI=0;
}
SM2=1;
ES=1;
P3_5=0;
}

/*****************主程序******************/

void main(void)
{
 
  P1=0x00;
  TMOD=0x20;
  TL1=0xfd;
  TH1=0xfd;
  PCON=0x00;
  TR1=1;
  SCON=0xf0;
  EA=1;
  ES=1;
  P3_5=0;
  while(1)
  {
    _nop_();

  }

}














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

     文件       3316  2007-05-17 16:15  rs485多机通信\dizhi1#

     文件        713  2007-05-17 15:11  rs485多机通信\dizhi1#.c

     文件        287  2007-05-17 16:15  rs485多机通信\dizhi1#.hex

     文件         31  2007-05-17 16:15  rs485多机通信\dizhi1#.lnp

     文件       2911  2007-05-17 16:15  rs485多机通信\dizhi1#.LST

     文件       3817  2007-05-17 16:15  rs485多机通信\dizhi1#.M51

     文件       3432  2007-05-17 16:15  rs485多机通信\dizhi1#.OBJ

     文件        977  2007-05-28 22:24  rs485多机通信\dizhi1#.Opt

     文件        174  2007-05-28 22:24  rs485多机通信\dizhi1#.plg

     文件       2111  2007-05-14 16:02  rs485多机通信\dizhi1#.Uv2

     文件        976  2007-05-17 16:28  rs485多机通信\dizhi1#_Opt.Bak

     文件          0  2007-05-14 16:01  rs485多机通信\dizhi1#_Uv2.Bak

     文件       3316  2007-05-17 15:11  rs485多机通信\dizhi2#

     文件        709  2007-05-17 15:11  rs485多机通信\dizhi2#.c

     文件        287  2007-05-17 15:11  rs485多机通信\dizhi2#.hex

     文件         31  2007-05-17 15:11  rs485多机通信\dizhi2#.lnp

     文件       2863  2007-05-17 15:11  rs485多机通信\dizhi2#.LST

     文件       3817  2007-05-17 15:11  rs485多机通信\dizhi2#.M51

     文件       3432  2007-05-17 15:11  rs485多机通信\dizhi2#.OBJ

     文件        976  2007-05-17 22:25  rs485多机通信\dizhi2#.Opt

     文件        177  2007-05-17 22:25  rs485多机通信\dizhi2#.plg

     文件       2111  2007-05-14 16:04  rs485多机通信\dizhi2#.Uv2

     文件        976  2007-05-17 16:28  rs485多机通信\dizhi2#_Opt.Bak

     文件      80437  2007-05-16 23:13  rs485多机通信\Last Loaded 多机通信.DBK

     文件      78780  2008-11-30 12:30  rs485多机通信\rs485多机通信.jpg

     文件       3877  2007-05-17 15:11  rs485多机通信\zhuji

     文件        964  2007-05-17 15:11  rs485多机通信\zhuji.c

     文件        809  2007-05-17 15:11  rs485多机通信\zhuji.hex

     文件         27  2007-05-17 15:11  rs485多机通信\zhuji.lnp

     文件       3703  2007-05-17 15:11  rs485多机通信\zhuji.LST

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

评论

共有 条评论