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

📄 scaler.lst

📁 NOVATEK公司的LCD_CONTROLLER源代码 液晶显示器驱动板源代码NT68521
💻 LST
📖 第 1 页 / 共 5 页
字号:
C51 COMPILER V7.20   SCALER                                                                09/14/2004 12:21:11 PAGE 1   


C51 COMPILER V7.20, COMPILATION OF MODULE SCALER
OBJECT MODULE PLACED IN .\BIN\Scaler.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE SRC\Scaler.C OPTIMIZE(9,SPEED) BROWSE DEBUG OBJECTEXTEND CODE LISTINCLUDE S
                    -YMBOLS PRINT(.\LST\Scaler.lst) PREPRINT(.\LST\Scaler.i) OBJECT(.\BIN\Scaler.obj)

line level    source

   1          #include "Scaler.H"
   1      =1  #ifndef _Scaler_H
   2      =1  #define _Scaler_H
   3      =1  
   4      =1  #define DTF8 7
   5      =1  //#define DT01 0x00             //0x00:disbale 10 to 8 dither
   6      =1  #define DT01 0x01               //0x01:enabale 10 to 8 dither
   7      =1  
   8      =1  extern code unsigned char TCON_Tab[];
   9      =1  extern code unsigned short H_ActiveTab[];
  10      =1  extern code unsigned short V_ActiveTab[];
  11      =1  extern code unsigned char PhaseTable[];
  12      =1  
  13      =1  void InitScaler(void);
  14      =1  void TCONInit(void);
  15      =1  void UpdatePresetData(void);
  16      =1  void SetADC_Phase(void);
  17      =1  void SetADC_PLL(void);
  18      =1  void SetScaler(void);
  19      =1  void SetScalerAV(void);
  20      =1  void ForceToBackground(unsigned char color);
  21      =1  void SetDisplayNormal(void);
  22      =1  void PowerSaving(void);
  23      =1  void ScalerPowerDown(void);
  24      =1  void ScalerPowerUp(void);
  25      =1  void SetHP(void);
  26      =1  void SetVP(void);
  27      =1  void SetDPLL(unsigned long dclk);
  28      =1  void SetSharpness(void);
  29      =1  void SetContrast(void);
  30      =1  void SetBrightness(void);
  31      =1  void SetInverter(void);
  32      =1  void LoadADC_Gain(void);
  33      =1  void SetVolume(void);
  34      =1  void SetStartDPLL(unsigned long dclk);
  35      =1  void WritePageScaler(unsigned char addr1,unsigned char addr2,unsigned char *p);
  36      =1  void SetScalerAV(void);
  37      =1  
  38      =1  #endif
   2          #include "MCU.H"
   1      =1  #ifndef _MCU_H_
   2      =1  #define  _MCU_H_
   3      =1  
   4      =1  extern code unsigned char KeyTab[];
   5      =1  
   6      =1  void InitMCU(void);
   7      =1  //void Timer0(void);
   8      =1  void Sleep(unsigned short time);
   9      =1  void CheckKey(void);
  10      =1  void LED_GrnOn(void);
  11      =1  void LED_GrnOff(void);
  12      =1  void LED_RedOn(void);
  13      =1  void LED_RedOff(void);
  14      =1  void BackLightOn(void);
C51 COMPILER V7.20   SCALER                                                                09/14/2004 12:21:11 PAGE 2   

  15      =1  void BackLightOff(void);
  16      =1  void PanelPowerOff(void);
  17      =1  void PanelPowerOn(void);
  18      =1  void ResetOff(void);
  19      =1  void ResetOn(void);
  20      =1  void AUDIO_MUTE(void);
  21      =1  void AUDIO_On(void);
  22      =1  void DVI_On(void);
  23      =1  void DIV_PWND(void);
  24      =1  void AMP_STBY(void);
  25      =1  void AMP_On(void);
  26      =1  void DIG_SEL(void);
  27      =1  void DIG_Off(void);
  28      =1  void CheckDDC2Bi(void);
  29      =1  void ScanKeyPad(void);
  30      =1  void WaitSetup(unsigned short time);
  31      =1  void VideoEnable(void);
  32      =1  void VideoDisable(void);
  33      =1  
  34      =1  #endif
   3          #include "UserAdj.H"
   1      =1  #ifndef _UserAdj_H_
   2      =1  #define  _UserAdj_H_
   3      =1  
   4      =1  extern code unsigned char ColorTab[];
   5      =1  
   6      =1  void BrightnessUp(void);
   7      =1  void BrightnessDown(void);
   8      =1  void LoadModeIndependentSettings(void);
   9      =1  void LoadModeDependentSettings(void);
  10      =1  void SaveModeDependentSettings(void);
  11      =1  void ContrastUp(void);
  12      =1  void ContrastDown(void);
  13      =1  void ClockUp(void);
  14      =1  void ClockDown(void);
  15      =1  void PhaseUp(void);
  16      =1  void PhaseDown(void);
  17      =1  void HP_Up(void);
  18      =1  void HP_Down(void);
  19      =1  void VP_Up(void);
  20      =1  void VP_Down(void);
  21      =1  void Recall(void);
  22      =1  void OSD_X_Up(void);
  23      =1  void OSD_X_Down(void);
  24      =1  void OSD_Y_Up(void);
  25      =1  void OSD_Y_Down(void);
  26      =1  void SharpnessUp(void);
  27      =1  void SharpnessDown(void);
  28      =1  void RGB_Up(void);
  29      =1  void RGB_Down(void);
  30      =1  void OSD_TimerUp(void);
  31      =1  void OSD_TimerDown(void);
  32      =1  void ColorTempUp(void);
  33      =1  void ColorTempDown(void);
  34      =1  void LanguageUp(void);
  35      =1  void LanguageDown(void);
  36      =1  void ResetEEPROM(void);
  37      =1  void SaturationUp(void);
  38      =1  void SaturationDown(void);
  39      =1  void TintUp(void);
  40      =1  void TintDown(void);
  41      =1  void SharpnessDown(void);
C51 COMPILER V7.20   SCALER                                                                09/14/2004 12:21:11 PAGE 3   

  42      =1  void CH_SystemUp(void);
  43      =1  void CH_SystemDown(void);
  44      =1  void InverterUp(void);
  45      =1  void InverterDown(void);
  46      =1  void SourceSelect(void);
  47      =1  
  48      =1  #endif
   4          #include "MyDef.H"
   1      =1  #ifndef _MyDef_H
   2      =1  #define  _MyDef_H
   3      =1  
   4      =1  #define BIT_0   0x01
   5      =1  #define BIT_1   0x02
   6      =1  #define BIT_2   0x04
   7      =1  #define BIT_3   0x08
   8      =1  #define BIT_4   0x10
   9      =1  #define BIT_5   0x20
  10      =1  #define BIT_6   0x40
  11      =1  #define BIT_7   0x80
  12      =1  
  13      =1  //#define GammaOff
  14      =1  //#define GammaOn
  15      =1  #define SOG_ON
  16      =1  //#define Debug
  17      =1  #define Version 0x00    //0
  18      =1  #define Reversion 0x12  //12
  19      =1  #define ModeButtom 4*ModeNum            //4*50
  20      =1  #define ModeNum 50
  21      =1  #define UserModeSt 31           //user mode (31 --- 50)
  22      =1  #define SyncStabTime 50         //500ms
  23      =1  
  24      =1  #define H_Min 28        //KHz
  25      =1  #define H_Max 85        //KHz
  26      =1  #define V_Min 55        //Hz
  27      =1  //#define       V_Max 90        //Hz
  28      =1  #define V_Max 80        //Hz
  29      =1  #define P_Max 140       //MHz
  30      =1  
  31      =1  #define Scaler_Addr     0xB0
  32      =1  #define NOVATEK_Addr    0x6e    // for Utility Alignment command
  33      =1  //KeyPad
  34      =1  #define PowerKey        0x22
  35      =1  #define SourceKey       0x41
  36      =1  #define LeftKey         0x04
  37      =1  #define RightKey        0x24
  38      =1  #define UpKey           0x40
  39      =1  #define DownKey         0x42
  40      =1  #define KeyStabTime 50          //50ms
  41      =1  #define KeyHoldTime 100         //1 sec.
  42      =1  #define KeyRepeatTime 3 //0.1 sec.
  43      =1  // ADC PLL
  44      =1  #define AnalogPLL 0
  45      =1  #define DigitalPLL 1
  46      =1  
  47      =1  #define ADC_PLL DigitalPLL
  48      =1  //DVI
  49      =1  #define HVmode 0
  50      =1  #define DEmode 1
  51      =1  
  52      =1  #define DVImode HVmode
  53      =1  
  54      =1  #define Low 0
C51 COMPILER V7.20   SCALER                                                                09/14/2004 12:21:11 PAGE 4   

  55      =1  #define High 1
  56      =1  #define PanelPowerActive High
  57      =1  
  58      =1  #endif
   5          #include "F63REG.H"
   1      =1  #ifndef _F63REG_H
   2      =1  #define _F63REG_H       
   3      =1  //----------------------------------------------------------
   4      =1  extern xdata unsigned char PortA;               // (R/W) : $FF
   5      =1  extern xdata unsigned char PortB;               // (R/W) : $FF
   6      =1  extern xdata unsigned char PortC;               // (R/W) : $FF
   7      =1  extern xdata unsigned char PortD;               // (R/W) : $FF
   8      =1  //--------------[ Watch-Dog Timer ]-------------------------
   9      =1  extern xdata unsigned char CLRWDT;              // (-W-) : $55
  10      =1  //--------------[ A/D Converter ]---------------------------
  11      =1  extern xdata unsigned char ADC_CON;             // (-W-) : $00
  12      =1          #define STRT_ADC  0x80                  // Start A to D Convert
  13      =1          #define EN_ADC    0x10                  // Enable ADC
  14      =1          #define EN_ADC3   0x08                  // Enable ADC3
  15      =1          #define EN_ADC2   0x04                  // Enable ADC2
  16      =1          #define EN_ADC1   0x02                  // Enable ADC1
  17      =1          #define EN_ADC0   0x01                  // Enable ADC0
  18      =1  extern xdata unsigned char ADC_REG[4];  // (-R-) : ADC0 Value
  19      =1          #define CMP_ADC   0x80                  // (-R-): Complete ADC
  20      =1  //--------------[ PWM D/A Converters ]----------------------
  21      =1  extern xdata unsigned char ENPWM_LB;  // (-W-) : Enable PWM07-PWM00
  22      =1  extern xdata unsigned char ENPWM_HB;  // (-W-) : Enable PWM15-PWM08
  23      =1  extern xdata unsigned char PWM_REG[16];

⌨️ 快捷键说明

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