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

📄 bao1.lst

📁 C51学习书
💻 LST
字号:
C51 COMPILER V7.50   BAO1                                                                  06/17/2006 21:02:47 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE BAO1
OBJECT MODULE PLACED IN bao1.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE bao1.c BROWSE DEBUG OBJECTEXTEND CODE LISTINCLUDE SYMBOLS PREPRINT

line level    source

   1          #include <AT89X51.H> //传动控制
*** WARNING C318 IN LINE 1 OF bao1.c: can't open file 'AT89X51.H'
   2            
   3          unsigned char code dispcode[]={0x3f,0x06,0x5b,0x4f, 
   4                                         0x66,0x6d,0x7d,0x07, 
   5                                         0x7f,0x6f,0x77,0x7c, 
   6                                         0x39,0x5e,0x79,0x71,0x00}; 
   7          unsigned char second; 
   8          unsigned char tcount; 
   9          
  10          void delay10ms(void)//延时10毫秒(2+2+248*2)*20+2=1002*12/12M=0.01S
  11          {
  12   1        for(i=20;i>0;i--)
*** ERROR C202 IN LINE 12 OF BAO1.C: 'i': undefined identifier
  13   1          for(j=248;j>0;j--)
*** ERROR C202 IN LINE 13 OF BAO1.C: 'j': undefined identifier
  14   1      }
*** ERROR C141 IN LINE 14 OF BAO1.C: syntax error near '}'
  15          void outsignal(void)//输出控制信号
  16          {
  17   1        settime=p_3/16*10+p_3%16;
*** ERROR C202 IN LINE 17 OF BAO1.C: 'settime': undefined identifier
  18   1        p4_0=1;//输出控制信号
*** ERROR C202 IN LINE 18 OF BAO1.C: 'p4_0': undefined identifier
  19   1        for(k=settime*10;k>0;K--)
*** ERROR C202 IN LINE 19 OF BAO1.C: 'k': undefined identifier
  20   1        for(i=20;i>0;i--)
*** ERROR C202 IN LINE 20 OF BAO1.C: 'i': undefined identifier
  21   1        for(j=248;j>0;j--)
*** ERROR C202 IN LINE 21 OF BAO1.C: 'j': undefined identifier
  22   1        P4_0=0;
*** ERROR C202 IN LINE 22 OF BAO1.C: 'P4_0': undefined identifier
  23   1      }  
  24          void main(void) 
  25          { 
  26   1        while(1)
  27   1        {
  28   2         setcount=p_0/16*10+p_0%16;
*** ERROR C202 IN LINE 28 OF BAO1.C: 'setcount': undefined identifier
  29   2      
  30   2         if p2_0==0//输检测信号
*** ERROR C141 IN LINE 30 OF BAO1.C: syntax error near 'p2_0', expected '('
*** ERROR C202 IN LINE 30 OF BAO1.C: 'p2_0': undefined identifier
  31   2          {
*** ERROR C141 IN LINE 31 OF BAO1.C: syntax error near '{'
  32   3            delay10ms();
  33   3            if(p2_0==0)
*** ERROR C202 IN LINE 33 OF BAO1.C: 'p2_0': undefined identifier
  34   3            {
  35   4               curcount++;
*** ERROR C202 IN LINE 35 OF BAO1.C: 'curcount': undefined identifier
  36   4               if(curcount==setcount)
*** ERROR C202 IN LINE 36 OF BAO1.C: 'curcount': undefined identifier
  37   4               {curcount=0;}
*** ERROR C202 IN LINE 37 OF BAO1.C: 'curcount': undefined identifier
C51 COMPILER V7.50   BAO1                                                                  06/17/2006 21:02:47 PAGE 2   

  38   4               while(p2_0==0); 
*** ERROR C202 IN LINE 38 OF BAO1.C: 'p2_0': undefined identifier
  39   4            }
  40   3          if p2_0==0
*** ERROR C141 IN LINE 40 OF BAO1.C: syntax error near 'p2_0', expected '('
*** ERROR C202 IN LINE 40 OF BAO1.C: 'p2_0': undefined identifier
  41   3          {
*** ERROR C141 IN LINE 41 OF BAO1.C: syntax error near '{'
  42   4            delay10ms();
  43   4            if(p2_0==0)
*** ERROR C202 IN LINE 43 OF BAO1.C: 'p2_0': undefined identifier
  44   4            {
  45   5               curcount++;
*** ERROR C202 IN LINE 45 OF BAO1.C: 'curcount': undefined identifier
  46   5               if(curcount==setcount)
*** ERROR C202 IN LINE 46 OF BAO1.C: 'curcount': undefined identifier
  47   5               outsignal();
  48   5               {curcount=0;}
*** ERROR C202 IN LINE 48 OF BAO1.C: 'curcount': undefined identifier
  49   5               while(p2_0==0); 
*** ERROR C202 IN LINE 49 OF BAO1.C: 'p2_0': undefined identifier
  50   5            }
  51   4       
  52   4      
  53   4      void t0(void) interrupt 1 using 0 
*** ERROR C141 IN LINE 53 OF BAO1.C: syntax error near 'void'
  54   4      { 
  55   4        tcount++; 
  56   4        if(tcount==20) 
  57   4          { 
  58   5            tcount=0; 
  59   5            second++; 
  60   5            if(second==60) 
  61   5              { 
  62   6                second=0; 
  63   6              } 
  64   5            P0=dispcode[second/10]; //
  65   5            P2=dispcode[second%10];              
  66   5          } 
  67   4        TH0=(65536-50000)/256; 
  68   4        TL0=(65536-50000)%256; 
  69   4      } 

C51 COMPILATION COMPLETE.  1 WARNING(S),  27 ERROR(S)

⌨️ 快捷键说明

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