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

📄 lcd2002.lst

📁 一个LCD2002液晶屏驱动程序,对于想对LCD想对LCD编程的朋友可以参考.
💻 LST
字号:
C51 COMPILER V8.08   LCD2002                                                               10/20/2008 08:40:52 PAGE 1   


C51 COMPILER V8.08, COMPILATION OF MODULE LCD2002
OBJECT MODULE PLACED IN LCD2002.OBJ
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE LCD2002.C BROWSE DEBUG OBJECTEXTEND

line level    source

   1          #ifndef  OS_MASTER_FILE
   2          #include "includes.h"
*** WARNING C318 IN LINE 2 OF LCD2002.C: can't open file 'includes.h'
   3          #endif
   4          
   5          //写命令
   6          #define  LCD2002_SEND_COMMAND(a)        \
   7                   LCDCOM = a;
   8          //写数据
   9          #define  LCD2002_SEND_DATA(a)           \
  10                   LCDDAT = a;
  11          
  12          void  Lcd2002Delay(void)
  13          {
  14   1          INT8U i;
*** ERROR C202 IN LINE 14 OF LCD2002.C: 'INT8U': undefined identifier
*** ERROR C141 IN LINE 14 OF LCD2002.C: syntax error near 'i'
  15   1      
  16   1          i = 300;
*** ERROR C202 IN LINE 16 OF LCD2002.C: 'i': undefined identifier
  17   1          do
  18   1          {
  19   2            ;
  20   2          } while (--i != 0);
*** ERROR C202 IN LINE 20 OF LCD2002.C: 'i': undefined identifier
  21   1      }
  22          
  23          void  Lcd2002SendComm(INT8U Command)
*** ERROR C141 IN LINE 23 OF LCD2002.C: syntax error near 'Command', expected ')'
  24          {
  25   1          Lcd2002Delay();
  26   1          LCD2002_SEND_COMMAND(Command);
*** ERROR C202 IN LINE 26 OF LCD2002.C: 'LCDCOM': undefined identifier
  27   1      }
  28          
  29          void  Lcd2002SendDate(INT8U Data)
*** ERROR C141 IN LINE 29 OF LCD2002.C: syntax error near 'Data', expected ')'
  30          {
  31   1          Lcd2002Delay();
  32   1          LCD2002_SEND_DATA(Data);
*** ERROR C202 IN LINE 32 OF LCD2002.C: 'LCDDAT': undefined identifier
  33   1      }
  34          
  35          void  Lcd2002DispStr(INT8U x, INT8U y, INT8S *Data)
*** ERROR C141 IN LINE 35 OF LCD2002.C: syntax error near 'x', expected ')'
  36          {
  37   1          if (y == 1)                                                 /* 在第一行显示 */
*** ERROR C202 IN LINE 37 OF LCD2002.C: 'y': undefined identifier
  38   1          {
  39   2              if (x < (20 + 1))                                       /* 有效的列号   */
*** ERROR C202 IN LINE 39 OF LCD2002.C: 'x': undefined identifier
  40   2              {
  41   3                  Lcd2002SendComm(LCD2002_LINE1 - 1 + x);             /* 设置显示地址 */
*** ERROR C202 IN LINE 41 OF LCD2002.C: 'LCD2002_LINE1': undefined identifier
  42   3                  for( ; x < (20 + 1) && *Data != '\0'; x++)          /* 显示到字符串结束 */
C51 COMPILER V8.08   LCD2002                                                               10/20/2008 08:40:52 PAGE 2   

*** ERROR C202 IN LINE 42 OF LCD2002.C: 'x': undefined identifier
  43   3                                                                      /* 或是行结束   */
  44   3                  {
  45   4                      Lcd2002SendDate(*Data++);                       /* 显示一个字符 */
*** ERROR C202 IN LINE 45 OF LCD2002.C: 'Data': undefined identifier
  46   4                  }
  47   3                  if (*Data != '\0')                                  /* 字符串没有结束 */
*** ERROR C202 IN LINE 47 OF LCD2002.C: 'Data': undefined identifier
  48   3                  {
  49   4                      x = 1;                                          /* 从第二行第一列 */
*** ERROR C202 IN LINE 49 OF LCD2002.C: 'x': undefined identifier
  50   4                      y = 2;                                          /* 继续显示       */
*** ERROR C202 IN LINE 50 OF LCD2002.C: 'y': undefined identifier
  51   4                  }
  52   3              }
  53   2          }
  54   1          if (y == 2)                                                 /* 在第二行显示 */
*** ERROR C202 IN LINE 54 OF LCD2002.C: 'y': undefined identifier
  55   1          {
  56   2              Lcd2002SendComm(LCD2002_LINE2 - 1 + x);                 /* 设置显示地址 */
*** ERROR C202 IN LINE 56 OF LCD2002.C: 'LCD2002_LINE2': undefined identifier
  57   2              for( ; x < (20 + 1) && *Data != '\0'; x++)              /* 显示到字符串结束 */
*** ERROR C202 IN LINE 57 OF LCD2002.C: 'x': undefined identifier
  58   2                                                                      /* 或是行结束   */
  59   2              {
  60   3                  Lcd2002SendDate(*Data++);                           /* 显示一个字符 */
*** ERROR C202 IN LINE 60 OF LCD2002.C: 'Data': undefined identifier
  61   3              }
  62   2          }
  63   1      }
  64          
  65          void  Lcd2002DispCha(INT8U x, INT8U y, INT8U Data)
*** ERROR C141 IN LINE 65 OF LCD2002.C: syntax error near 'x', expected ')'
  66          {
  67   1          if (y == 1)                                                 /* 在第一行显示 */
*** ERROR C202 IN LINE 67 OF LCD2002.C: 'y': undefined identifier
  68   1          {
  69   2              if (x < (20 + 1))                                       /* 有效的列号   */
*** ERROR C202 IN LINE 69 OF LCD2002.C: 'x': undefined identifier
  70   2              {
  71   3                 Lcd2002SendComm(LCD2002_LINE1 - 1 + x);              /* 设置显示地址 */
*** ERROR C202 IN LINE 71 OF LCD2002.C: 'LCD2002_LINE1': undefined identifier
  72   3                  Lcd2002SendDate(Data);                              /* 显示一个字符 */
*** ERROR C202 IN LINE 72 OF LCD2002.C: 'Data': undefined identifier
  73   3              }
  74   2          }
  75   1          if (y == 2)                                                 /* 在第二行显示 */
*** ERROR C202 IN LINE 75 OF LCD2002.C: 'y': undefined identifier
  76   1          {
  77   2              Lcd2002SendComm(LCD2002_LINE2 - 1 + x);                 /* 设置显示地址 */
*** ERROR C202 IN LINE 77 OF LCD2002.C: 'LCD2002_LINE2': undefined identifier
  78   2              
  79   2                  Lcd2002SendDate(Data);                              /* 显示一个字符 */
*** ERROR C202 IN LINE 79 OF LCD2002.C: 'Data': undefined identifier
  80   2          }
  81   1      }
  82          
  83          void Lcd2002Clr(INT8U y)
*** ERROR C141 IN LINE 83 OF LCD2002.C: syntax error near 'y', expected ')'
  84          {
  85   1          INT8U i;
*** ERROR C141 IN LINE 85 OF LCD2002.C: syntax error near 'i'
C51 COMPILER V8.08   LCD2002                                                               10/20/2008 08:40:52 PAGE 3   

*** ERROR C202 IN LINE 85 OF LCD2002.C: 'i': undefined identifier
  86   1          
  87   1          if(y==1)
*** ERROR C202 IN LINE 87 OF LCD2002.C: 'y': undefined identifier
  88   1          {
  89   2              Lcd2002SendComm(LCD2002_LINE1);
*** ERROR C202 IN LINE 89 OF LCD2002.C: 'LCD2002_LINE1': undefined identifier
  90   2          }
  91   1          if(y==2)
*** ERROR C202 IN LINE 91 OF LCD2002.C: 'y': undefined identifier
  92   1          {
  93   2              Lcd2002SendComm(LCD2002_LINE2);
*** ERROR C202 IN LINE 93 OF LCD2002.C: 'LCD2002_LINE2': undefined identifier
  94   2          }
  95   1          for(i=0;i<20;i++)  
*** ERROR C202 IN LINE 95 OF LCD2002.C: 'i': undefined identifier
  96   1            {
  97   2                Lcd2002SendDate(' ');
  98   2            }
  99   1      }
 100          
 101          void  Lcd2002Init(void)
 102          {
 103   1          Lcd2002SendComm(LCD2002_MODE);          // 设置LCM模式(系统方式设置)
*** ERROR C202 IN LINE 103 OF LCD2002.C: 'LCD2002_MODE': undefined identifier
 104   1          Lcd2002SendComm(LCD2002_NO_FLASH);      // 打开LCM显示,无光标
*** ERROR C202 IN LINE 104 OF LCD2002.C: 'LCD2002_NO_FLASH': undefined identifier
 105   1          Lcd2002SendComm(LCD2002_NO_SHIFT);      // 字符向地址递增,光标移动
*** ERROR C202 IN LINE 105 OF LCD2002.C: 'LCD2002_NO_SHIFT': undefined identifier
 106   1          Lcd2002SendComm(LCD2002_SH);            // 重新设为光标移动,向右移
*** ERROR C202 IN LINE 106 OF LCD2002.C: 'LCD2002_SH': undefined identifier
 107   1          Lcd2002Clr(1);                          // 清屏
 108   1          Lcd2002Clr(2);
 109   1      }
 110          

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

⌨️ 快捷键说明

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