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

📄 键盘.lst

📁 单片机的人机接口
💻 LST
字号:
C51 COMPILER V7.09   键臺                                                                  10/28/2007 15:48:12 PAGE 1   


C51 COMPILER V7.09, COMPILATION OF MODULE 键臺
OBJECT MODULE PLACED IN 键盘.OBJ
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE 键盘.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1           #include <reg51.h> 
   2           #include <1602.c>
   3           unsigned char a[16]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,},b[
             -4],c=0x01;
   4           unsigned int jianzhi;
   5           void key(void)
   6          {
   7   1       unsigned int hengzhi,leizhi=0,n,r=0x01;
   8   1      
   9   1       if(P3_0==0)
*** ERROR C202 IN LINE 9 OF 键盘.C: 'P3_0': undefined identifier
  10   1       hengzhi=0;
  11   1       if(P3_1==0)
*** ERROR C202 IN LINE 11 OF 键盘.C: 'P3_1': undefined identifier
  12   1       hengzhi=1;
  13   1       if(P3_2==0)
*** ERROR C202 IN LINE 13 OF 键盘.C: 'P3_2': undefined identifier
  14   1       hengzhi=2;
  15   1       if(P3_3==0)
*** ERROR C202 IN LINE 15 OF 键盘.C: 'P3_3': undefined identifier
  16   1       hengzhi=3;
  17   1       for(n=0;n<4;n++)
  18   1       {
  19   2        P1=~(r<<n);
  20   2       if((P3_0&&P3_1&&P3_2&&P3_3)!=1)
*** ERROR C202 IN LINE 20 OF 键盘.C: 'P3_0': undefined identifier
  21   2        leizhi=n;
  22   2       }
  23   1               
  24   1        jianzhi=hengzhi*4+leizhi;
  25   1       
  26   1       }
  27          
  28           void main(void) 
  29          {
  30   1       uchar i;
  31   1       chushihua();
  32   1       Delay1ms(10);
  33   1       wzhilin(0x80|0x00);
  34   1       i=0x00;
  35   1       while(i!=0x010)
  36   1       {
  37   2        wshuju(lcd1[i]);
  38   2        i++;
  39   2        }
  40   1       while(1)
  41   1       {
  42   2      
  43   2       P1=0x00;
  44   2       jianche:
  45   2       while((P3_0&&P3_1&&P3_2&&P3_3)==1)
*** ERROR C202 IN LINE 45 OF 键盘.C: 'P3_0': undefined identifier
  46   2       {
  47   3              wzhilin(0x80|0x40);
  48   3         wshuju(lcd3[jianzhi]);
C51 COMPILER V7.09   键臺                                                                  10/28/2007 15:48:12 PAGE 2   

  49   3       }
  50   2       Delay1ms(10);
  51   2       if((P3_0&&P3_1&&P3_2&&P3_3)==1)
*** ERROR C202 IN LINE 51 OF 键盘.C: 'P3_0': undefined identifier
  52   2       goto jianche;
  53   2        
  54   2        key();
  55   2        
  56   2        while((P3_0&&P3_1&&P3_2&&P3_3)!=1)
*** ERROR C202 IN LINE 56 OF 键盘.C: 'P3_0': undefined identifier
  57   2         {
  58   3              wzhilin(0x80|0x40);
  59   3         wshuju(lcd3[jianzhi]);
  60   3         }
  61   2        
  62   2        }
  63   1      }
  64          
  65          

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

⌨️ 快捷键说明

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