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

📄 main.lst

📁 NT68521源代码
💻 LST
字号:
C51 COMPILER V7.50   MAIN                                                                  03/18/2008 22:04:55 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN .\BIN\MAIN.obj
COMPILER INVOKED BY: D:\设计软件\Keil\C51\BIN\C51.EXE SRC\MAIN.C BROWSE DEBUG OBJECTEXTEND PRINT(.\LST\MAIN.lst) OBJECT(
                    -.\BIN\MAIN.obj)

line level    source

   1          #include "MCU.H"
   2          #include "stdio.h"
   3          #include "8051.H"
   4          #include "RAM.H"
   5          #include "IIC.H"
   6          #include "MyDef.H"
   7          #include "F63REG.H"
   8          #include "UserAdj.H"
   9          #include "ModeHandle.H"
  10          #include "Scaler.H"
  11          #include "OSD.H"
  12          #include "AutoAdj.H"
  13          #include "sRGB.H"
  14          #include "SAA7114.H"
  15          #include "IRCode.H"
  16          #include "TUNER.H"
  17          
  18          void main(void);
  19          
  20          void main(void) using 0
  21          {
  22   1      ReStart:
  23   1              EA = 0;
  24   1              USB_CON = 0;
  25   1              InitMCU();
  26   1              CLRWDT = 0x55;
  27   1              flag1 = 0;
  28   1              flag2 = 0;
  29   1              OSD_Type = 0;
  30   1              KeyBuffer = 0xff;
  31   1              Timer3 = 10;
  32   1              
  33   1              while(Timer3 != 0)
  34   1              {
  35   2                      ResetOn();
  36   2                      Sleep(12);
  37   2                      ResetOff();
  38   2                      Sleep(12);
  39   2                      ADC_CON = 0x17;         //Channel;  // Start AD Convert
  40   2                      ADC_CON = 0x97;         //Channel;  // Start AD Convert
  41   2                      while((ADC_REG[3] & BIT_7) == 0)
  42   2                      {};
  43   2                      if((ADC_REG[2] & 0x7f) < 0x38)
  44   2                      {
  45   3                              Timer3 = 25;
  46   3                      }
  47   2              }
  48   1              //Sleep(50);
  49   1              if(Read24C16(0xe8) != 0x55)
  50   1              {
  51   2                      if((flag3 & BIT_2) != 0x00)
  52   2                              printf("1. Reload EEPROM Data\r\n");
  53   2                      InitEEPROM();
  54   2              }
C51 COMPILER V7.50   MAIN                                                                  03/18/2008 22:04:55 PAGE 2   

  55   1              if(Read24C16(0xe9) != 0xaa)
  56   1              {
  57   2                      if((flag3 & BIT_2) != 0x00)
  58   2                              printf("2. Reload EEPROM Data\r\n");
  59   2                      InitEEPROM();
  60   2              }
  61   1              if(Read24C16(0xea) != Version)
  62   1              {
  63   2                      if((flag3 & BIT_2) != 0x00)
  64   2                              printf("3. Reload EEPROM Data\r\n");
  65   2                      ResetEEPROM();
  66   2              }
  67   1              if(Read24C16(0xeb) != Reversion)
  68   1              {
  69   2                      if((flag3 & BIT_2) != 0x00)
  70   2                              printf("4. Reload EEPROM Data\r\n");
  71   2                      ResetEEPROM();
  72   2              }
  73   1              CheckDevice();
  74   1              LoadModeIndependentSettings();
  75   1              PanelPowerOn();
  76   1              InitScaler();
  77   1              CLRWDT = 0x55;
  78   1              LoadFont();
  79   1              OSD_Point1 = 0;
  80   1              OSD_Point2 = 0;
  81   1              OSD_Type = 0;
  82   1              OsdInit();
  83   1              if((flag3 & BIT_2) != 0x00)
  84   1                      printf("Start Program\r\n");
  85   1              SyncMode = 0;
  86   1              PoSvTimer = 500;
  87   1              Timer2 = (unsigned short)OSD_Timer * 100;
  88   1              PowerStatus = Read24C16(0xcc);
  89   1              PowerStatus |= 0x80;
  90   1      //      PowerStatus = 0x80;
  91   1      //      Write24C16(0xcc,PowerStatus);
  92   1      //      MirrorPanel(Read24C16(0x450));  //gan
  93   1      //      FlipPanel(Read24C16(0x451));
  94   1      
  95   1      //      HTotal = Read24C16(0x452);   //Read game or pc
  96   1      //      HTotal = HTotal * 256 + Read24C16(0x453);
  97   1      //      HP_Start = Read24C16(454);
  98   1      //      HP_Start = HP_Start * 256 + Read24C16(455);
  99   1      
 100   1              if((PowerStatus & BIT_7)== 0)
 101   1              {
 102   2                      PowerSaving();          //power saving befor power off
 103   2                      LED_RedOn();
 104   2                      LED_GrnOff();
 105   2              }
 106   1              else
 107   1              {
 108   2                      AMP_On();
 109   2                      if((Read24C16(0xcd) & BIT_0) == 0x01)
 110   2                      {
 111   3                              flag3 |= BIT_0;
 112   3                              flag2 &= BIT_5;
 113   3                              if((flag3 & BIT_2) != 0x00)
 114   3                                      printf("Factory mode\r\n");
 115   3                      }
 116   2                      LED_RedOff();
C51 COMPILER V7.50   MAIN                                                                  03/18/2008 22:04:55 PAGE 3   

 117   2                      LED_GrnOn();
 118   2              }
 119   1              rwbuf = 0;
 120   1              SetInverter();
 121   1              LoadADC_Gain();
 122   1              H_SYNC_Temp = 0xffff;
 123   1              V_SYNC_Temp = 0xffff;
 124   1              SetBrightness();
 125   1              sRGB();
 126   1                      
 127   1              SourceSelect();
 128   1      
 129   1              while((flag1 & BIT_7) == 0)
 130   1              {
 131   2                      CheckIRKey();
 132   2              CheckSerialPort();
 133   2              CheckKey();
 134   2                      CLRWDT = 0x55;
 135   2                      CheckRCV();
 136   2                      CheckDDC2Bi();
 137   2              
 138   2                      if((flag1 & BIT_7) != 0)                //Exit
 139   2                              break;
 140   2                      if(PowerStatus == 0x80)
 141   2                      {
 142   3                              CLRWDT = 0x55;
 143   3                              CheckFreq();
 144   3                              SyncSource();
 145   3                      }
 146   2                      else if(PowerStatus > 0x80)
 147   2                      {
 148   3                              CheckVideo();
 149   3                              CLRWDT = 0x55;
 150   3                      flag2 &= ~BIT_0;
 151   3      /*
 152   3                              if(OSD_Type == 6)
 153   3                              {
 154   3                                      if((Timer2 == 0)&&(OSD_Timer != 0x00))
 155   3                                      {
 156   3                                              if((flag2 & BIT_1) != 0)
 157   3                                              {
 158   3                                                      flag1 &= ~BIT_1;
 159   3                                                      ForceToBackground(1);
 160   3                                              }
 161   3                                      }
 162   3                              } */
 163   3                      }
 164   2                      if((OSD_Type < 4)||(OSD_Type == 6))
 165   2                      {
 166   3                              if((Timer2 == 0)&&(OSD_Timer != 0x00))
 167   3                              {
 168   4                                      OSD_OFF();
 169   4                                      SelVideoMenu=0;OSD_Point2=0;
 170   4                              }
 171   3                      }
 172   2                      if(MuteTimer != 0){
 173   3                              if(--MuteTimer == 0)
 174   3                                      BackLightOn();
 175   3                      }
 176   2              }
 177   1              if((flag3 & BIT_2) != 0x00)
 178   1                      printf("GoTo Restart\r\n");
C51 COMPILER V7.50   MAIN                                                                  03/18/2008 22:04:55 PAGE 4   

 179   1              goto ReStart;
 180   1      }
 181          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    546    ----
   CONSTANT SIZE    =    142    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   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 + -