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

📄 initial.lst

📁 T103的开发程序 能兼容很多屏 可根据需要修改定义
💻 LST
字号:
C51 COMPILER V8.08   INITIAL                                                               11/23/2007 00:57:18 PAGE 1   


C51 COMPILER V8.08, COMPILATION OF MODULE INITIAL
OBJECT MODULE PLACED IN .\Object\Initial.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE SourceFile\Initial.C LARGE BROWSE INCDIR(.\IncludeFile;.\IncludeFile\Panel;
                    -.\IncludeFile\Font_Icon) DEFINE(T108) DEBUG OBJECTEXTEND PRINT(.\List\Initial.lst) OBJECT(.\Object\Initial.obj)

line level    source

   1          #include <reg51.h>
   2          #include "Common.h"
   3          #include "Global.h"
   4          #include "ICControl.h"
   5          #include "Initial.h"
   6          #include "TxxInitTable.h"
   7          #include "TWICreg.h"
   8          #include "System.h"
   9          #include "OSD1_Define.h"
  10          #include "OSD2_Define.h"
  11          #include "OSD1_Logo.h"
  12          #include "AU_7_a.h"
  13          #include "SRC_ctrl.h"
  14          #include "OSD1CSL.h"
  15          #include "OSD2CSL.h"
  16          //#define  _Myson8957_
  17          #include "Myson8957.h"
  18          #ifdef DEBUG_MODE
              #include "com.h" // kenny 20070126
              #endif
  21          extern void enablecache(void);
  22          void Initial(void)
  23          {
  24   1      #ifdef T128
                      enablecache();
              #endif
  27   1              ClosePanel(0, 0x80, 0x80);
  28   1              OSD1Disable();
  29   1              OSD2Disable();
  30   1          SysInit();
  31   1              IR_Init();
  32   1      #ifdef TCON
  33   1                      TconInit();
  34   1      #endif
  35   1              // kenny 20070126
  36   1      #ifdef DEBUG_MODE
                      UartInit();
                      ShowMsg("UART Init'd\n\0");
              #endif
  40   1              
  41   1              //LoadGammaTable(0);            
  42   1              OSDLogo(); 
  43   1              OSD1Init();
  44   1              OSD2Init();  
  45   1              
  46   1      }
  47          void SysInit(void)
  48          {
  49   1              P0=0xff;
  50   1              P1=0xff;
  51   1              P2=0xff;
  52   1              P3=0xff;
  53   1      
  54   1              //8051Register Set
C51 COMPILER V8.08   INITIAL                                                               11/23/2007 00:57:18 PAGE 2   

  55   1              IE      = 0;    // disable all interrupt
  56   1              TMOD    = 0x11;  // Timer1 Mode 1, Timer0 Mode 1;
  57   1              //TMOD  = 0x01; // Timer0 Mode 1;
  58   1              EX0     = 0;     // disable external interrupt 0, IE[0]
  59   1              EX1             = 0;
  60   1              //ET0   = 1;    // enable bTimer 0
  61   1              IT0     = 0;     // rising endge generate interrupt, TCON[0]
  62   1              INT0    = 1;
  63   1              IT1     = 1;     // falling endge generate interrupt, TCON[0]
  64   1              INT1    = 1;
  65   1      
  66   1              
  67   1      #ifdef LOADFILTER
                      LoadFilter(3);//3
              #endif
  70   1      
  71   1              InitT1xx();
  72   1      /*#ifdef NVRAM
  73   1              #ifdef RESET_EEPROM
  74   1                      InitEEPRom();
  75   1              #else
  76   1                      EEPLoadPubData();
  77   1                      OSDLoadALLData();
  78   1              #endif
  79   1      #endif
  80   1        */
  81   1      
  82   1              m_bPanelClose = 1;
  83   1              m_cCurreKey=0;
  84   1              m_bBKPowerOn=0;
  85   1              m_bKyPowerOn=1;
  86   1              m_bChipPowerOn=1;
  87   1              //m_cStandard=0xff; //sm061014
  88   1              //m_cChroma=0xff;
  89   1              m_cStandard=S_NTSC;
  90   1              m_cChroma=S_NTSC;
  91   1              m_cScaleratio=ScaleFULL;
  92   1      }
  93          
  94          void InitT1xx(void)
  95          {
  96   1              
  97   1              m_cBuff[0]=0;
  98   1              m_cBuff[1]=0;
  99   1              m_cBuff[0]=stInitT10xP0[0].ucRegAdr;
 100   1              while (m_cBuff[0] != 0xFF)              
 101   1              {
 102   2                      if(m_cBuff[0]==0x30){
 103   3                              IC_WritByte(TWIC_P0,m_cBuff[0],(IC_ReadByte(TWIC_P0,0x30)|0x01));  // enable Shadow
 104   3                              IC_WritByte(TWIC_P0,m_cBuff[0],(IC_ReadByte(TWIC_P0,0x30)&(~0x02))| DEINTERLACE); 
 105   3                      }
 106   2                      else{
 107   3                              IC_WritByte(TWIC_P0,m_cBuff[0],stInitT10xP0[m_cBuff[1]].ucRegVal);
 108   3                      }
 109   2                      m_cBuff[0]=stInitT10xP0[++m_cBuff[1]].ucRegAdr;
 110   2              }
 111   1      
 112   1              m_cBuff[1]=0;
 113   1              m_cBuff[0]=stInitT10xP1[0].ucRegAdr;
 114   1              while (m_cBuff[0] != 0xFF)              
 115   1              {
 116   2                      IC_WritByte(TWIC_P1,m_cBuff[0],stInitT10xP1[m_cBuff[1]].ucRegVal);
C51 COMPILER V8.08   INITIAL                                                               11/23/2007 00:57:18 PAGE 3   

 117   2                      m_cBuff[0]=stInitT10xP1[++m_cBuff[1]].ucRegAdr;
 118   2              }
 119   1      
 120   1              m_cBuff[1]=0;
 121   1              m_cBuff[0]=stInitT10xP2[0].ucRegAdr;
 122   1              while (m_cBuff[0] != 0xFF)              
 123   1              {
 124   2                      if(m_cBuff[0]==0x01)
 125   2                              IC_WritByte(TWIC_P2,m_cBuff[0],(IC_ReadByte(TWIC_P2,0x01)|0x01));// enable black level correction for 1
             -0 blank-to-black pedestal
 126   2                      else
 127   2                              IC_WritByte(TWIC_P2,m_cBuff[0],stInitT10xP2[m_cBuff[1]].ucRegVal);
 128   2                      m_cBuff[0]=stInitT10xP2[++m_cBuff[1]].ucRegAdr;
 129   2              }
 130   1              //=========================================================================
 131   1              // Panel specified register settings
 132   1              //=========================================================================
 133   1      
 134   1              for(m_cBuff[1]=0;m_cBuff[1] < PanelSpecP0Cnt;m_cBuff[1]++)
 135   1              {
 136   2                      IC_WritByte(TWIC_P0,ucaPanelSpecAdrP0[m_cBuff[1]],ucaPanelSpecDataP0[m_cBuff[1]]);
 137   2          }
 138   1      
 139   1      
 140   1              for(m_cBuff[1]=0;m_cBuff[1] < PanelSpecP2Cnt;m_cBuff[1]++)
 141   1              {
 142   2                      IC_WritByte(TWIC_P0,ucaPanelSpecAdrP2[m_cBuff[1]],ucaPanelSpecDataP2[m_cBuff[1]]);
 143   2          }
 144   1      
 145   1      /*      #ifdef ROTATE
 146   1                      SET_Dismod();
 147   1              #endif
 148   1      
 149   1      
 150   1              #ifdef IR_DECODE
 151   1                      IR_Init();
 152   1              #endif                  */
 153   1      
 154   1      }
 155          #ifdef TCON
 156          void TconInit(void)
 157          {
 158   1              m_cBuff[0]=0;
 159   1      
 160   1              for(m_cBuff[0]=0;m_cBuff[0] < P1TconCnt;m_cBuff[0]++)
 161   1                      IC_WritByte(TWIC_P1, TconAddress+m_cBuff[0], TconP1Data[m_cBuff[0]]);
 162   1      }
 163          #endif
 164          void IR_Init(void)
 165          {
 166   1              IC_WritByte(TWIC_P1, 0x40, 0x10);         // NEC RemoteController 3B10
 167   1              IC_WritByte(TWIC_P1, 0x41, 0x3B);
 168   1              IC_WritByte(TWIC_P1, 0x47, 0x80);         // IR_Enable
 169   1      
 170   1              // turn on IR intterrupt
 171   1              IC_WritByte(TWIC_P0, INTMASK_REG, IC_ReadByte(TWIC_P0, INTMASK_REG) & 0x7F);
 172   1              //IC_WritByte(TWIC_P0, INTSTS_REG, IC_ReadByte(TWIC_P0, INTSTS_REG) & 0xFF);
 173   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    563    ----
C51 COMPILER V8.08   INITIAL                                                               11/23/2007 00:57:18 PAGE 4   

   CONSTANT SIZE    =   ----    ----
   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 + -