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

📄 text_fun.lst

📁 液晶MGLS2401128TA的控制程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V7.50   TEXT_FUN                                                              09/09/2005 18:17:34 PAGE 1   


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

line level    source

   1          
   2          
   3          
   4          #include <AT89X51.H>
*** WARNING C318 IN LINE 4 OF text_fun.c: can't open file 'AT89X51.H'
   5          
   6          #include <intrins.h>
   7          #include <math.h>
   8          #define DATA_PORT P0
   9          
  10          sbit WR_PORT=P2^0 ;
*** ERROR C202 IN LINE 10 OF TEXT_FUN.C: 'P2': undefined identifier
  11          sbit RD_PORT=P2^1 ;
*** ERROR C202 IN LINE 11 OF TEXT_FUN.C: 'P2': undefined identifier
  12          sbit CE_PORT=P2^2 ;
*** ERROR C202 IN LINE 12 OF TEXT_FUN.C: 'P2': undefined identifier
  13          sbit CD_PORT=P2^3 ;
*** ERROR C202 IN LINE 13 OF TEXT_FUN.C: 'P2': undefined identifier
  14          
  15          
  16          code unsigned char tab2[][32]=
  17          {
  18              0x04,0x80,0x0E,0xA0,0x78,0x90,0x08,0x90,0x08,0x84,0xFF,0xFE,0x08,0x80,0x08,0x90,
  19              0x0A,0x90,0x0C,0x60,0x18,0x40,0x68,0xA0,0x09,0x20,0x0A,0x14,0x28,0x14,0x10,0x0C,
  20              /*以上为"我"的点阵*/
  21              0x00,0x00,0x00,0x04,0x7F,0xFE,0x40,0x04,0x40,0x44,0x47,0xE4,0x44,0x44,0x44,0x44,
  22              0x44,0x44,0x44,0x44,0x47,0xC4,0x44,0x44,0x40,0x04,0x7F,0xFC,0x40,0x04,0x00,0x00,
  23              /*以上为"回"的点阵*/
  24              0x01,0x00,0x01,0x00,0x01,0x08,0x7F,0xFC,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x04,
  25              0xFF,0xFE,0x02,0x00,0x02,0x00,0x04,0x40,0x08,0x20,0x10,0x10,0x3F,0xF8,0x00,0x08,
  26              /*以上为"去"的点阵*/
  27              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0xFF,0xFE,
  28              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  29              /*以上为"一"的点阵*/
  30              0x00,0x04,0xFF,0xFE,0x02,0x00,0x02,0x00,0x02,0x00,0x02,0x80,0x02,0x40,0x02,0x30,
  31              0x02,0x10,0x02,0x00,0x02,0x00,0x02,0x00,0x02,0x00,0x02,0x00,0x02,0x00,0x02,0x00,
  32              /*以上为"下"的点阵*/
  33              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFE,
  34              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  35              /*以上为"—"的点阵*/
  36              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFE,
  37              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  38              /*以上为"—"的点阵*/
  39              0x04,0x40,0x04,0x48,0x7F,0xFC,0x04,0x40,0x04,0x50,0x1F,0xF8,0x10,0x10,0x1F,0xF0,
  40              0x10,0x10,0x1F,0xF0,0x01,0x04,0xFF,0xFE,0x01,0x00,0x02,0x80,0x0C,0x60,0x70,0x1C,
  41              /*以上为"莫"的点阵*/
  42              0x08,0x40,0x1C,0x40,0xF0,0xFC,0x11,0x84,0x12,0x48,0xFC,0x30,0x10,0x60,0x39,0xA0,
  43              0x34,0x3E,0x54,0x42,0x90,0xC4,0x11,0x24,0x10,0x18,0x10,0x30,0x10,0xC0,0x17,0x00,
  44              /*以上为"移"的点阵*/
  45              0x10,0xA0,0x10,0xA0,0x10,0xA4,0x11,0x28,0xFD,0x30,0x13,0x60,0x35,0xA4,0x39,0x1C,
  46              0x55,0x40,0x50,0x44,0x97,0xFE,0x10,0x40,0x10,0x40,0x10,0x40,0x10,0x40,0x10,0x40,
  47              /*以上为"桦"的点阵*/
  48              
  49              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  50              0x00,0x00,0x00,0x00,0x18,0x00,0x18,0x00,0x10,0x00,0x20,0x00,0x00,0x00,0x00,0x00,
C51 COMPILER V7.50   TEXT_FUN                                                              09/09/2005 18:17:34 PAGE 2   

  51              /*以上为","的点阵*/
  52              0x11,0x00,0x11,0x00,0x11,0x00,0x23,0xFC,0x22,0x04,0x64,0x08,0xA8,0x40,0x20,0x40,
  53              0x21,0x50,0x21,0x48,0x22,0x4C,0x24,0x44,0x20,0x40,0x20,0x40,0x21,0x40,0x20,0x80,
  54              /*以上为"你"的点阵*/
  55              0x01,0x00,0x11,0x00,0x11,0x10,0x1F,0xF8,0x11,0x00,0x21,0x00,0x01,0x04,0xFF,0xFE,
  56              0x04,0x80,0x04,0x80,0x04,0x80,0x08,0x80,0x08,0x82,0x10,0x82,0x20,0x7E,0x40,0x00,
  57              /*以上为"先"的点阵*/
  58              0x10,0x20,0x12,0x20,0x12,0x20,0x22,0x24,0x3F,0xFE,0x62,0x84,0xA2,0x44,0x22,0x44,
  59              0x2F,0xC8,0x28,0xA8,0x28,0xA8,0x28,0x90,0x28,0xA8,0x2F,0xA8,0x28,0x46,0x20,0x84,
  60              /*以上为"做"的点阵*/
  61              0x01,0x04,0x3F,0x84,0x21,0x04,0x21,0x24,0x21,0x24,0x3F,0x24,0x28,0x24,0x09,0x24,
  62              0xFF,0xA4,0x09,0x24,0x09,0x24,0x11,0x24,0x11,0x04,0x25,0x04,0x42,0x14,0x00,0x08,
  63              /*以上为"别"的点阵*/
  64              0x10,0x40,0x10,0x40,0x22,0x44,0x7F,0x7E,0x42,0x84,0x43,0x04,0x42,0x04,0x42,0x84,
  65              0x7E,0x64,0x42,0x24,0x42,0x04,0x42,0x04,0x42,0x04,0x7E,0x04,0x42,0x28,0x00,0x10,
  66              /*以上为"的"的点阵*/
  67              0x00,0x00,0x01,0x80,0x03,0xC0,0x03,0xC0,0x03,0xC0,0x01,0x80,0x01,0x80,0x01,0x80,
  68              0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x80,0x00,0x00,0x00,0x00,
  69              /*以上为"!"的点阵*/
  70          0x08,0x40,0x08,0x40,0x0A,0x44,0x7F,0x7E,0x08,0x88,0x3F,0x08,0x08,0x48,0xFF,0x48,
  71          0x10,0x48,0x1E,0x50,0x12,0x50,0x22,0x20,0x22,0x50,0x54,0x88,0x89,0x0E,0x02,0x04,
  72          /*以上为"敖"的点阵*/
  73          0x10,0x10,0x08,0x20,0x04,0x40,0x00,0x10,0x1F,0xF8,0x10,0x10,0x10,0x10,0x10,0x10,
  74          0x1F,0xF0,0x10,0x10,0x02,0x00,0x51,0x84,0x50,0x92,0x90,0x12,0x0F,0xF0,0x00,0x00,
  75          /*以上为"总"的点阵*/
  76          0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  77          0x30,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x30,0x00,0x00,0x00,0x00,0x00,
  78          /*以上为":"的点阵*/
  79          }
  80          ;
  81          
  82          
  83          
  84          //-------------delay the time---------//
  85          //50us
  86          void delay(unsigned int a)
  87          {
  88   1          unsigned int i,j ;
  89   1          for(i=0;i<a;i++)
  90   1          for(j=0;j<6;j++);
  91   1      }
  92          
  93          //--------- LGD Read the Appearance from the lGD-------------//
  94          unsigned char read_Appearance(void)
  95          {
  96   1          unsigned char temp ;
  97   1          CE_PORT=1 ;
*** ERROR C202 IN LINE 97 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
  98   1          DATA_PORT=0XFF ;
*** ERROR C202 IN LINE 98 OF TEXT_FUN.C: 'P0': undefined identifier
  99   1          CE_PORT=0 ;
*** ERROR C202 IN LINE 99 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 100   1          CD_PORT=1 ;
*** ERROR C202 IN LINE 100 OF TEXT_FUN.C: 'CD_PORT': undefined identifier
 101   1          //READ CODE
 102   1          RD_PORT=0 ;
*** ERROR C202 IN LINE 102 OF TEXT_FUN.C: 'RD_PORT': undefined identifier
 103   1          temp=DATA_PORT ;
*** ERROR C202 IN LINE 103 OF TEXT_FUN.C: 'P0': undefined identifier
 104   1          RD_PORT=1 ;
*** ERROR C202 IN LINE 104 OF TEXT_FUN.C: 'RD_PORT': undefined identifier
 105   1          CE_PORT=1 ;
C51 COMPILER V7.50   TEXT_FUN                                                              09/09/2005 18:17:34 PAGE 3   

*** ERROR C202 IN LINE 105 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 106   1          //del the  Total line
 107   1          return temp ;
 108   1      }
 109          
 110          //--------LGD STA0-STA1--------//
 111          bit st00_st01(void)
 112          {
 113   1          unsigned char temp ;
 114   1          temp=read_Appearance();
 115   1          temp=temp&0x03 ;
 116   1          
 117   1          if(temp==0x03)return 1 ;
 118   1          
 119   1          return 0 ;
 120   1          
 121   1      }
 122          
 123          
 124          
 125          //----------LGD STA3--------//
 126          bit st03(void)
 127          {
 128   1          unsigned char temp ;
 129   1          temp=read_Appearance();
 130   1          temp=temp&0x08 ;
 131   1          
 132   1          if(temp==0x08)return 1 ;
 133   1          
 134   1          return 0 ;
 135   1          
 136   1      }
 137          /*
 138          //----------LGD STA2--------//
 139          bit st02(void)
 140          {
 141                  unsigned char temp;
 142          temp=read_Appearance();
 143          temp=temp&0x04;
 144          
 145          if(temp==0x04)return 1;
 146          
 147          return 0;
 148          
 149          }
 150          
 151          //---------LGD STA5--------//
 152          bit st05(void)
 153          {
 154          unsigned char temp;
 155          temp=read_Appearance();
 156          temp=temp&0x20;
 157          
 158          if(temp==0x20)return 1;
 159          
 160          return 0;
 161          
 162          }
 163          
 164          //--------LGD STA6--------//
 165          bit st06(void)
 166          {unsigned char temp;
C51 COMPILER V7.50   TEXT_FUN                                                              09/09/2005 18:17:34 PAGE 4   

 167          temp=read_Appearance();
 168          temp=temp&0x40;
 169          
 170          if(temp==0x40)return 1;
 171          
 172          return 0;
 173          
 174          }
 175          
 176          //--------LGD STA7-------//
 177          bit st07(void)
 178          {
 179          unsigned char temp;
 180          temp=read_Appearance();
 181          temp=temp&0x80;
 182          
 183          if(temp==0x80)return 1;
 184          
 185          return 0;
 186          
 187          
 188          }
 189          
 190          */
 191          //---------read data from the lgd--------//
 192          unsigned char read_from(void)
 193          {unsigned char temp;
 194   1      
 195   1              while(st00_st01()==0);
 196   1              CE_PORT=0;
*** ERROR C202 IN LINE 196 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 197   1              CD_PORT=0;//data 
*** ERROR C202 IN LINE 197 OF TEXT_FUN.C: 'CD_PORT': undefined identifier
 198   1              RD_PORT=0;      
*** ERROR C202 IN LINE 198 OF TEXT_FUN.C: 'RD_PORT': undefined identifier
 199   1              //temp1=DATA_PORT;
 200   1              temp=DATA_PORT; 
*** ERROR C202 IN LINE 200 OF TEXT_FUN.C: 'P0': undefined identifier
 201   1              RD_PORT=1;
*** ERROR C202 IN LINE 201 OF TEXT_FUN.C: 'RD_PORT': undefined identifier
 202   1              CE_PORT=1;
*** ERROR C202 IN LINE 202 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 203   1              return temp;
 204   1      }
 205          
 206          //------- Write 2 Number and 1 CODE to LCM ---------//
 207          void write_2_code(unsigned char a,unsigned char b,unsigned char c)
 208          {
 209   1          while(st00_st01()==0);
 210   1          CE_PORT=0 ;
*** ERROR C202 IN LINE 210 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 211   1          CD_PORT=0 ;
*** ERROR C202 IN LINE 211 OF TEXT_FUN.C: 'CD_PORT': undefined identifier
 212   1          //data      
 213   1          DATA_PORT=a ;
*** ERROR C202 IN LINE 213 OF TEXT_FUN.C: 'P0': undefined identifier
 214   1          WR_PORT=0 ;
*** ERROR C202 IN LINE 214 OF TEXT_FUN.C: 'WR_PORT': undefined identifier
 215   1          _nop_();
 216   1          WR_PORT=1 ;
*** ERROR C202 IN LINE 216 OF TEXT_FUN.C: 'WR_PORT': undefined identifier
 217   1          CE_PORT=1 ;
C51 COMPILER V7.50   TEXT_FUN                                                              09/09/2005 18:17:34 PAGE 5   

*** ERROR C202 IN LINE 217 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 218   1          
 219   1          while(st00_st01()==0);
 220   1          CE_PORT=0 ;
*** ERROR C202 IN LINE 220 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 221   1          CD_PORT=0 ;
*** ERROR C202 IN LINE 221 OF TEXT_FUN.C: 'CD_PORT': undefined identifier
 222   1          //data 
 223   1          DATA_PORT=b ;
*** ERROR C202 IN LINE 223 OF TEXT_FUN.C: 'P0': undefined identifier
 224   1          WR_PORT=0 ;
*** ERROR C202 IN LINE 224 OF TEXT_FUN.C: 'WR_PORT': undefined identifier
 225   1          _nop_();
 226   1          WR_PORT=1 ;
*** ERROR C202 IN LINE 226 OF TEXT_FUN.C: 'WR_PORT': undefined identifier
 227   1          CE_PORT=1 ;
*** ERROR C202 IN LINE 227 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 228   1          
 229   1          while(st00_st01()==0);
 230   1          CE_PORT=0 ;
*** ERROR C202 IN LINE 230 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 231   1          CD_PORT=1 ;
*** ERROR C202 IN LINE 231 OF TEXT_FUN.C: 'CD_PORT': undefined identifier
 232   1          //code 
 233   1          DATA_PORT=c ;
*** ERROR C202 IN LINE 233 OF TEXT_FUN.C: 'P0': undefined identifier
 234   1          WR_PORT=0 ;
*** ERROR C202 IN LINE 234 OF TEXT_FUN.C: 'WR_PORT': undefined identifier
 235   1          _nop_();
 236   1          WR_PORT=1 ;
*** ERROR C202 IN LINE 236 OF TEXT_FUN.C: 'WR_PORT': undefined identifier
 237   1          CE_PORT=1 ;
*** ERROR C202 IN LINE 237 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 238   1          
 239   1      }
 240          //---------write 1 data and 1 code  to the Lcm------//
 241          void write_1_code(unsigned char a,unsigned char c)
 242          {
 243   1          while(st00_st01()==0);
 244   1          CE_PORT=0 ;
*** ERROR C202 IN LINE 244 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 245   1          CD_PORT=0 ;
*** ERROR C202 IN LINE 245 OF TEXT_FUN.C: 'CD_PORT': undefined identifier
 246   1          //data 
 247   1          DATA_PORT=a ;
*** ERROR C202 IN LINE 247 OF TEXT_FUN.C: 'P0': undefined identifier
 248   1          WR_PORT=0 ;
*** ERROR C202 IN LINE 248 OF TEXT_FUN.C: 'WR_PORT': undefined identifier
 249   1          _nop_();
 250   1          WR_PORT=1 ;
*** ERROR C202 IN LINE 250 OF TEXT_FUN.C: 'WR_PORT': undefined identifier
 251   1          CE_PORT=1 ;
*** ERROR C202 IN LINE 251 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 252   1          
 253   1          while(st00_st01()==0);
 254   1          CE_PORT=0 ;
*** ERROR C202 IN LINE 254 OF TEXT_FUN.C: 'CE_PORT': undefined identifier
 255   1          CD_PORT=1 ;
*** ERROR C202 IN LINE 255 OF TEXT_FUN.C: 'CD_PORT': undefined identifier
 256   1          //code 
 257   1          DATA_PORT=c ;
*** ERROR C202 IN LINE 257 OF TEXT_FUN.C: 'P0': undefined identifier
C51 COMPILER V7.50   TEXT_FUN                                                              09/09/2005 18:17:34 PAGE 6   

 258   1          WR_PORT=0 ;
*** ERROR C202 IN LINE 258 OF TEXT_FUN.C: 'WR_PORT': undefined identifier

⌨️ 快捷键说明

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