⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 double.lst

📁 华帮单片机双串口工作代码
💻 LST
字号:
C51 COMPILER V7.50   DOUBLE                                                                08/27/2008 19:27:07 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE DOUBLE
OBJECT MODULE PLACED IN double.OBJ
COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE double.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          #include "define_W77E058.h"
   2          
   3          /****************************************/
   4          // 主函数 for the Mode RS485/232
   5          /***************************************/
   6           void main()
   7          { 
   8   1        unsigned char code SendData1[10]={0xfd,0x05,0x01,0x01,0x2f,0x01,0x37,0xfc};
   9   1        //unsigned char code Txd0[12]     ={0xaa,0x05,0x02,0x01,0x0d,0x01,0x16,0x55};
  10   1        unsigned char data entry_first=1;
  11   1        buzzer=0;
  12   1        PMR=PMR|0X01;//允许访问华邦单片上的SRAM数据//
  13   1        SP=0x60;//椎栈指针必须重新设置,否则经常死机
  14   1      
  15   1        Initial_I2C();
  16   1        Serial_initial();//double Serial is Initial
  17   1        Watchdog_initial();//Watchdog is Initial
  18   1        Init_Main();
  19   1      
  20   1         RXDSuccess0=0; RXDSuccess1=0;
  21   1        
  22   1       // Serial1_Send(SendData1); 
  23   1        Disdata(4);Disdata(4);Disdata(4);Disdata(4);Disdata(12);delayms(1500);// while(CheckError);delayms(10);w
             -hile(!CheckError);
  24   1        
  25   1      /*******************************************************************/
  26   1      //check for RS485 Communication  underlay
  27   1      /*********************************************************************/
  28   1      while(1)
  29   1       {
  30   2       Disdata(5);Disdata(4);Disdata(3);Disdata(2);Disdata(1);delayms(1800);
  31   2       Disdata(7);Disdata(6);Disdata(5);Disdata(4);Disdata(3);delayms(1800);
  32   2       if(entry_first==1)
  33   2      {
  34   3         Serial1_Send(SendData1);
  35   3         Serial0_Send(SendData1);
  36   3         //Disdata(1);Disdata(1);Disdata(4);Disdata(4);Disdata(12); delayms(1110);//while(CheckError);delayms(10
             -);while(!CheckError);
  37   3         entry_first=0;
  38   3       }
  39   2      
  40   2      if(RXDSuccess0==1)
  41   2         {
  42   3           TranstoPC();   //发给主机的
  43   3           RXDSuccess0=0;
  44   3           //Serial1_Send(txdbuf0);//调试用
  45   3          // ClrRXD(rxdbuf0);
  46   3           //Disdata(0);Disdata(0);Disdata(0);Disdata(0);Disdata(10);delayms(1110); //while(CheckError);delayms(
             -20);while(!CheckError);
  47   3         }
  48   2      
  49   2      if(RXDSuccess1==1)// while(1)
  50   2         {
  51   3         TranstoMode();
  52   3         RXDSuccess1=0;
C51 COMPILER V7.50   DOUBLE                                                                08/27/2008 19:27:07 PAGE 2   

  53   3         //Serial1_Send(txdbuf1);//调试用
  54   3         //;
  55   3        // Disdata(1);Disdata(1);Disdata(1);Disdata(1);Disdata(11); delayms(1110);//while(CheckError);delayms(20
             -);while(!CheckError);
  56   3         }//Serial0_Send(Txd0);/
  57   2       
  58   2       }
  59   1        
  60   1      }
  61          
  62           
  63          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   2871    ----
   CONSTANT SIZE    =     40    ----
   XDATA SIZE       =      7      10
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----      19
   IDATA SIZE       =     30      32
   BIT SIZE         =      2       2
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -