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

📄 plc64i32.lst

📁 64输入32输出单片机程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V7.06   PLC64I32                                                              01/26/2004 20:24:41 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE PLC64I32
OBJECT MODULE PLACED IN PLC64I32.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE PLC64I32.C BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          //-------------------------------------------------------------------------
   2          //      Filename :  PC64I32O.C
   3          //      Language :  C for AT89S8252
   4          //      Revision :  1.0
   5          //  Initial Date :  07/10/2000
   6          //   Last Modify :
   7          //  System clock :  24.00MHZ
   8          //   Description :  C program for test Plc64i32o.pcb
   9          //-------------------------------------------------------------------------
  10          #define _PLC6432B_H_
  11          #include <reg8252.h>
*** WARNING C318 IN LINE 11 OF PLC64I32.C: can't open file 'reg8252.h'
  12          #include "PLC64I32.h"
  13          #undef _PLC6432B_H_
  14          extern bit spray_end,blow_end,heat1_end,heat2_end,alarm_flag,comm_load_end;
  15          extern heat1_time,heat2_time,run_time,comm_load_time;
  16          extern spray_time,blow_time;
  17          enum{INDUCTIN1=4,MAGFRCE1=10,MAGFRCE2=12,INDUCTIN2=27};
  18          //-------------------------------------------------------------------------
  19          #pragma OPTIMIZE(4)
  20          //-------------------------------------------------------------------------
  21          #define MSB_PERIOD  -20000/256
  22          #define LSB_PERIOD  -20000%256
  23          //--------------------------------------------------------------------------
  24          // CLOCK = P0.2 DATA = P0.3 ST1 = P0.7 ST2 = P0.6
  25          //       ST3 = P0.5 ST4 = P0.4  EN = P3.7
  26          sbit CLK = P0^2;
*** ERROR C202 IN LINE 26 OF PLC64I32.C: 'P0': undefined identifier
  27          sbit DATA = P0^3;
*** ERROR C202 IN LINE 27 OF PLC64I32.C: 'P0': undefined identifier
  28          sbit ST1 = P0^7;
*** ERROR C202 IN LINE 28 OF PLC64I32.C: 'P0': undefined identifier
  29          sbit ST2 = P0^6;
*** ERROR C202 IN LINE 29 OF PLC64I32.C: 'P0': undefined identifier
  30          sbit ST3 = P0^5;
*** ERROR C202 IN LINE 30 OF PLC64I32.C: 'P0': undefined identifier
  31          sbit ST4 = P0^4;
*** ERROR C202 IN LINE 31 OF PLC64I32.C: 'P0': undefined identifier
  32          sbit OE = P3^3;
*** ERROR C202 IN LINE 32 OF PLC64I32.C: 'P3': undefined identifier
  33          sbit OST = P3^4;
*** ERROR C202 IN LINE 33 OF PLC64I32.C: 'P3': undefined identifier
  34          sbit INR = P3^5;
*** ERROR C202 IN LINE 34 OF PLC64I32.C: 'P3': undefined identifier
  35          sbit ENOUTPUT = P3^7;
*** ERROR C202 IN LINE 35 OF PLC64I32.C: 'P3': undefined identifier
  36          unsigned char sel_byte = 0x01;
  37          unsigned char in_ptr = OFF;
  38          unsigned char out_ptr = OFF;
  39          unsigned char inp_buf[8];
  40          unsigned char idata inp_buf1[8];
  41          unsigned char idata inc_ref;
  42          //-------------------------------------------------------------------------
  43          void _set_delay (char delay)
  44          {
C51 COMPILER V7.06   PLC64I32                                                              01/26/2004 20:24:41 PAGE 2   

  45   1          unsigned tick;
  46   1          tick = tick_clock+delay;
  47   1          while (tick != tick_clock);
  48   1      }
  49          //-------------------------------------------------------------------------
  50          void _scand_inport (void) using 2
  51          {
  52   1          INR = OFF;
*** ERROR C202 IN LINE 52 OF PLC64I32.C: 'INR': undefined identifier
  53   1          if (inp_buf1[in_ptr] == P2)
*** ERROR C202 IN LINE 53 OF PLC64I32.C: 'P2': undefined identifier
  54   1              inp_buf[in_ptr] = inp_buf1[in_ptr];
  55   1          else
  56   1              inp_buf1[in_ptr] = P2;
*** ERROR C202 IN LINE 56 OF PLC64I32.C: 'P2': undefined identifier
  57   1          OE = ON;
*** ERROR C202 IN LINE 57 OF PLC64I32.C: 'OE': undefined identifier
  58   1          INR = ON;
*** ERROR C202 IN LINE 58 OF PLC64I32.C: 'INR': undefined identifier
  59   1          OST = OFF;
*** ERROR C202 IN LINE 59 OF PLC64I32.C: 'OST': undefined identifier
  60   1          sel_byte <<= 1;
  61   1          in_ptr++;
  62   1          if (!sel_byte){
  63   2              sel_byte = 0x01;
  64   2              in_ptr = OFF;
  65   2          }
  66   1          P2 = sel_byte;
*** ERROR C202 IN LINE 66 OF PLC64I32.C: 'P2': undefined identifier
  67   1          OE = OFF;
*** ERROR C202 IN LINE 67 OF PLC64I32.C: 'OE': undefined identifier
  68   1          OST = ON;
*** ERROR C202 IN LINE 68 OF PLC64I32.C: 'OST': undefined identifier
  69   1      }
  70          //-------------------------------------------------------------------------
  71          void _send_outport (void) using 2
  72          {
  73   1          unsigned char digit;
  74   1          unsigned char chanel;
  75   1          ST1 = OFF;
*** ERROR C202 IN LINE 75 OF PLC64I32.C: 'ST1': undefined identifier
  76   1          ST2 = OFF;
*** ERROR C202 IN LINE 76 OF PLC64I32.C: 'ST2': undefined identifier
  77   1          ST3 = OFF;
*** ERROR C202 IN LINE 77 OF PLC64I32.C: 'ST3': undefined identifier
  78   1          ST4 = OFF;
*** ERROR C202 IN LINE 78 OF PLC64I32.C: 'ST4': undefined identifier
  79   1          CLK = OFF;
*** ERROR C202 IN LINE 79 OF PLC64I32.C: 'CLK': undefined identifier
  80   1          digit = outp_buf[out_ptr];
  81   1          for (chanel=0;chanel<8;chanel++){
  82   2              DATA = digit & 0x01;
*** ERROR C202 IN LINE 82 OF PLC64I32.C: 'DATA': undefined identifier
  83   2              CLK = ON;
*** ERROR C202 IN LINE 83 OF PLC64I32.C: 'CLK': undefined identifier
  84   2              digit >>= 1;
  85   2              CLK = OFF;
*** ERROR C202 IN LINE 85 OF PLC64I32.C: 'CLK': undefined identifier
  86   2              }
  87   1          switch (out_ptr){
  88   2              case 0 :
  89   2                  ST1 = ON;
C51 COMPILER V7.06   PLC64I32                                                              01/26/2004 20:24:41 PAGE 3   

*** ERROR C202 IN LINE 89 OF PLC64I32.C: 'ST1': undefined identifier
  90   2                  ST1 = OFF;
*** ERROR C202 IN LINE 90 OF PLC64I32.C: 'ST1': undefined identifier
  91   2                  break;
  92   2              case 1 :
  93   2                  ST2 = ON;
*** ERROR C202 IN LINE 93 OF PLC64I32.C: 'ST2': undefined identifier
  94   2                  ST2 = OFF;
*** ERROR C202 IN LINE 94 OF PLC64I32.C: 'ST2': undefined identifier
  95   2                  break;
  96   2              case 2 :
  97   2                  ST3 = ON;
*** ERROR C202 IN LINE 97 OF PLC64I32.C: 'ST3': undefined identifier
  98   2                  ST3 = OFF;
*** ERROR C202 IN LINE 98 OF PLC64I32.C: 'ST3': undefined identifier
  99   2                  break;
 100   2              case 3 :
 101   2                  ST4 = ON;
*** ERROR C202 IN LINE 101 OF PLC64I32.C: 'ST4': undefined identifier
 102   2                  ST4 = OFF;
*** ERROR C202 IN LINE 102 OF PLC64I32.C: 'ST4': undefined identifier
 103   2          }
 104   1          if (++out_ptr==4)
 105   1              out_ptr = OFF;
 106   1      }
 107          //-------------------------------------------------------------------------
 108          char _inp_port (char address)
 109          {
 110   1          char status;
 111   1          switch (address){
 112   2              case 0x80 :
 113   2                  status = inp_buf[0];
 114   2                  break;
 115   2              case 0x81 :
 116   2                  status = inp_buf[1];
 117   2                  break;
 118   2              case 0x82 :
 119   2                  status = inp_buf[2];
 120   2                  break;
 121   2              case 0x83 :
 122   2                  status = inp_buf[3];
 123   2                  break;
 124   2              case 0x84 :
 125   2                  status = inp_buf[4];
 126   2                  break;
 127   2              case 0x85 :
 128   2                  status = inp_buf[5];
 129   2                  break;
 130   2              case 0x86 :
 131   2                  status = inp_buf[6];
 132   2                  break;
 133   2              case 0x87 :
 134   2                  status = inp_buf[7];
 135   2                  break;
 136   2              default   :
 137   2                  status = OFF;
 138   2          }
 139   1          return status;
 140   1      }
 141          //-------------------------------------------------------------------------
 142          void _outp_port (char address, char status)
 143          {
C51 COMPILER V7.06   PLC64I32                                                              01/26/2004 20:24:41 PAGE 4   

 144   1          switch (address){
 145   2              case 0x88 :
 146   2                  outp_buf[0] = status;
 147   2                  break;
 148   2              case 0x89 :
 149   2                  outp_buf[1] = status;
 150   2                  break;

⌨️ 快捷键说明

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