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

📄 page.lst

📁 用51单片机实现的在屏幕上显视文字,外接一颗MT230OSDIC
💻 LST
字号:
C51 COMPILER V7.07   PAGE                                                                  12/01/2003 15:27:31 PAGE 1   


C51 COMPILER V7.07, COMPILATION OF MODULE PAGE
OBJECT MODULE PLACED IN Page.OBJ
COMPILER INVOKED BY: D:\Keil\C51\BIN\c51.exe Page.c DB OE SMALL ROM(LARGE)

stmt level    source

   1          #include "golbal.h"
   2          
   3          BYTE data MaxValue;
   4          BYTE data MinValue;
   5          BYTE data WorkValue;
   6          
   7          enum MODE
   8          {
   9            Brightness=1,
  10            Color,
  11            Contrast,
  12            Tint,
  13            DisplayMode
  14          };
  15          
  16          BYTE code Mode[5][13]=
  17          {
  18            {_B,_r,_g,_h,_t,_n,_e,_s,_s,__,__,__,DataEnd},
  19            {_C,_o,_l,_o,_r,__,__,__,__,__,__,__,DataEnd},
  20            {_C,_o,_n,_t,_r,_a,_s,_t,__,__,__,__,DataEnd},
  21            {_T,_i,_n,_t,__,__,__,__,__,__,__,__,DataEnd},
  22            {_D,_i,_s,_p,_l,_a,_y,__,_M,_o,_d,_e,DataEnd}
  23          };
  24          
  25          BYTE code FactoryMode[12][17]=
  26          {
  27            {_O,_u,_t,_UNDERLINE,_L,_i,_m,_i,_t,__,__,__,__,__,__,__,DataEnd},
  28            {_S,_u,_b,_UNDERLINE,_B,_r,_i,_g,_h,_t,_UNDERLINE,_R,_SLASH,_B,__,DataEnd},
  29            {_C,_o,_m,_UNDERLINE,_A,_m,_p,__,__,__,__,__,__,__,__,DataEnd},
  30            {_D,_A,_C,_UNDERLINE,_O,_u,_t,__,__,__,__,__,__,__,__,DataEnd},
  31            {_R,_G,_B,_UNDERLINE,_A,_m,_p,__,__,__,__,__,__,__,__,DataEnd},
  32            {_G,_a,_m,_m,_a,__,__,__,__,__,__,__,__,__,__,DataEnd},
  33            {_C,_o,_m,_UNDERLINE,_B,_l,_a,_c,_k,_UNDERLINE,_L,_e,_v,_e,_l,DataEnd},
  34            {_P,_h,_a,_s,_e,__,__,__,__,__,__,__,__,__,__,DataEnd},
  35            {_B,_r,_i,_g,_h,_t,__,__,__,__,__,__,__,__,__,DataEnd},
  36            {_C,_o,_l,_o,_r,__,__,__,__,__,__,__,__,__,__,DataEnd},
  37            {_C,_o,_n,_t,_r,_a,_s,_t,__,__,__,__,__,__,__,DataEnd},
  38            {_P,_i,_c,_t,_u,_r,_e,__,__,__,__,__,__,__,__,DataEnd}
  39          };
  40          
  41          BYTE code Display_Mode[2][5]=
  42          {
  43          {_1,_6,_COM,_9,DataEnd},
  44          {_4,_COM,_3,__,DataEnd}
  45          };
  46          
  47          void ModeSelect()
  48          {
  49   1        ModePressCount++;
  50   1      
  51   1        if(ModePressCount>DisplayMode)
  52   1              {
  53   2              ModePressCount=0;
  54   2              CloseOSD();
  55   2              } 
C51 COMPILER V7.07   PAGE                                                                  12/01/2003 15:27:31 PAGE 2   

  56   1      
  57   1        if(ModePressCount!=0)
  58   1        {
  59   2         SetWindow(0, 23, 6, 9, cyan, 1);  
  60   2        gotoxy(1,7);
  61   2        switch(ModePressCount)        
  62   2              {
  63   3              case Brightness:                
  64   3                      PrintChar(_Brightness_L, red, 0);
  65   3                      PrintChar(_Brightness_R, red, 0);
  66   3                      PrintString(Mode[0], yellow);
  67   3                      
  68   3                      //IICRead(BYTE slave, BYTE address, BYTE count)
  69   3                      break;
  70   3      
  71   3              case Color:
  72   3                      PrintChar(_Color_L, red, 0);
  73   3                      PrintChar(_Color_R, red, 0);
  74   3                      PrintString(Mode[1], yellow);
  75   3                      
  76   3                      //IICRead(BYTE slave, BYTE address, BYTE count)         
  77   3                      break;
  78   3                      
  79   3              case Contrast:
  80   3                      PrintChar(_Contrast_L, red, 0);
  81   3                      PrintChar(_Contrast_R, red, 0);
  82   3                      PrintString(Mode[2], yellow);
  83   3                      
  84   3                      //IICRead(BYTE slave, BYTE address, BYTE count)
  85   3                      break;
  86   3      
  87   3              case Tint:
  88   3                      PrintChar(_Tint_L, red, 0);
  89   3                      PrintChar(_Tint_R, red, 0);
  90   3                      PrintString(Mode[3], yellow);
  91   3                      
  92   3                      //IICRead(BYTE slave, BYTE address, BYTE count)
  93   3                      break;
  94   3      
  95   3              case DisplayMode:
  96   3                      
  97   3                      PrintString(Display_Mode[0], yellow);
  98   3                      
  99   3                      //IICRead(BYTE slave, BYTE address, BYTE count)
 100   3                      break;
 101   3      
 102   3              default:
 103   3                      break;
 104   3              }
 105   2              
 106   2              WorkValue=IICBuf.ByteArray[0];  
 107   2              PrintOneBar(1, 8, green);       
 108   2              
 109   2          }
 110   1      
 111   1      
 112   1      }
 113          
 114          void ValueAdjust()
 115          {
 116   1         if((KeyCode==Up_Key)&&(ModePressCount!=0))
 117   1              {
C51 COMPILER V7.07   PAGE                                                                  12/01/2003 15:27:31 PAGE 3   

 118   2              WorkValue++;
 119   2              }
 120   1        else
 121   1              if((KeyCode==Down_Key)&&(ModePressCount!=0))
 122   1                      {
 123   2                      WorkValue--;
 124   2                      }  
 125   1        
 126   1        PrintOneBar(1, 8, green);     
 127   1      
 128   1        switch(ModePressCount)
 129   1              {
 130   2              case Brightness:
 131   2                      IICWrite(EEPROM_ADDRESS, Brightness_add, 1);
 132   2                      IICBuf.ByteArray[0]=WorkValue;
 133   2                      break;
 134   2      
 135   2              case Color:
 136   2                      IICWrite(EEPROM_ADDRESS,  Color_add, 1);
 137   2                      IICBuf.ByteArray[0]=WorkValue;
 138   2                      break;
 139   2      
 140   2              case Contrast:
 141   2                      IICWrite(EEPROM_ADDRESS, Contrast_add, 1);
 142   2                      IICBuf.ByteArray[0]=WorkValue;
 143   2                      break;
 144   2      
 145   2              case Tint:
 146   2                      IICWrite(EEPROM_ADDRESS,  Tint_add, 1);
 147   2                      IICBuf.ByteArray[0]=WorkValue;
 148   2                      break;
 149   2      
 150   2              case DisplayMode:
 151   2                      IICWrite(EEPROM_ADDRESS,  DisplayMode_add, 1);
 152   2                      IICBuf.ByteArray[0]=WorkValue;
 153   2                      break;
 154   2      
 155   2              default:
 156   2                      break;
 157   2              
 158   2              }
 159   1      }
 160          
 161          void BrightnessAdjust()
 162          {   
 163   1              ModePressCount=1;
 164   1              
 165   1              SetWindow(0, 23, 6, 9, cyan, 1);  
 166   1              gotoxy(1,7);
 167   1              PrintChar(_Brightness_L, red, 0);
 168   1              PrintChar(_Brightness_R, red, 0);
 169   1              PrintString(Mode[0], yellow);
 170   1      
 171   1              //IICRead(BYTE slave, BYTE address, BYTE count)
 172   1              
 173   1              WorkValue=IICBuf.ByteArray[0];  
 174   1              PrintOneBar(1, 8, green);       
 175   1      }
 176          
 177          void ContrastAdjust()
 178          {   
 179   1              ModePressCount=3;
C51 COMPILER V7.07   PAGE                                                                  12/01/2003 15:27:31 PAGE 4   

 180   1              
 181   1              SetWindow(0, 23, 6, 9, cyan, 1);  
 182   1              gotoxy(1,7);
 183   1              PrintChar(_Contrast_L, red, 0);
 184   1              PrintChar(_Contrast_R, red, 0);
 185   1              PrintString(Mode[2], yellow);
 186   1                      
 187   1              //IICRead(BYTE slave, BYTE address, BYTE count)
 188   1              
 189   1              WorkValue=IICBuf.ByteArray[0];  
 190   1              PrintOneBar(1, 8, green);               
 191   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    406    ----
   CONSTANT SIZE    =    279    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =      3    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


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

⌨️ 快捷键说明

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