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

📄 scaler.lst

📁 NOVATEK公司的LCD_CONTROLLER源代码 液晶显示器驱动板源代码NT68521
💻 LST
📖 第 1 页 / 共 5 页
字号:
  18      =1  void MasterSendByte(unsigned char i);
  19      =1  unsigned char ReadIIC_HW(unsigned char device,unsigned char addr);
  20      =1  unsigned char MasterReadByte(unsigned char k);
  21      =1  void MasterSendStop(void);
C51 COMPILER V7.20   SCALER                                                                09/14/2004 12:21:11 PAGE 8   

  22      =1  void MasterReStart(void);
  23      =1  void WaitStop(void);
  24      =1  unsigned char TestIIC_HW(unsigned char device);
  25      =1  void WaitTx(void);
  26      =1  unsigned long ReadDWordIIC_HW(unsigned char device,unsigned char addr);
  27      =1  unsigned short ReadWordIIC_HW(unsigned char device,unsigned char addr);
  28      =1  void WriteIICV_HW(unsigned char device,unsigned char addr,unsigned char ch);
  29      =1  void MasterSendByteV(unsigned char i);
  30      =1  void CheckDevice(void);
  31      =1  unsigned char TestIIC_HW(unsigned char device);
  32      =1  
  33      =1  #endif
   7          #include "stdio.h"
   1      =1  /*--------------------------------------------------------------------------
   2      =1  STDIO.H
   3      =1  
   4      =1  Prototypes for standard I/O functions.
   5      =1  Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
   6      =1  All rights reserved.
   7      =1  --------------------------------------------------------------------------*/
   8      =1  
   9      =1  #ifndef __STDIO_H__
  10      =1  #define __STDIO_H__
  11      =1  
  12      =1  #ifndef EOF
  13      =1   #define EOF -1
  14      =1  #endif
  15      =1  
  16      =1  #ifndef NULL
  17      =1   #define NULL ((void *) 0)
  18      =1  #endif
  19      =1  
  20      =1  #ifndef _SIZE_T
  21      =1   #define _SIZE_T
  22      =1   typedef unsigned int size_t;
  23      =1  #endif
  24      =1  
  25      =1  #pragma SAVE
  26      =1  #pragma REGPARMS
  27      =1  extern char _getkey (void);
  28      =1  extern char getchar (void);
  29      =1  extern char ungetchar (char);
  30      =1  extern char putchar (char);
  31      =1  extern int printf   (const char *, ...);
  32      =1  extern int sprintf  (char *, const char *, ...);
  33      =1  extern int vprintf  (const char *, char *);
  34      =1  extern int vsprintf (char *, const char *, char *);
  35      =1  extern char *gets (char *, int n);
  36      =1  extern int scanf (const char *, ...);
  37      =1  extern int sscanf (char *, const char *, ...);
  38      =1  extern int puts (const char *);
  39      =1  
  40      =1  #pragma RESTORE
  41      =1  
  42      =1  #endif
  43      =1  
   8          #include "PANEL.H"
   1      =1  #ifndef __PANEL_H__
   2      =1      #define __PANEL_H__
   3      =1  
   4      =1  #define LVDS 0
   5      =1  #define TTL 1
C51 COMPILER V7.20   SCALER                                                                09/14/2004 12:21:11 PAGE 9   

   6      =1  #define RSDS 2
   7      =1  #define TCON 3
   8      =1  
   9      =1      #define AU_L150X2M_1                        0       // 0: 2 pixel/clk, 6 bit
  10      =1      #define CMO_M150X3_T05                      1   // 1: 2 pixel/clk, 6 bit
  11      =1      #define HannStar_HSD150MX49_A       2   // 2: 2 pixel/clk, 8 bit
  12      =1      #define HannStar_HSD150MX41_A       3   // 3: 2 pixel/clk, 6 bit
  13      =1      #define HannStar_HSD150MX12_A       4   // 4: 1 pixel/clk, 8 bit
  14      =1      #define CPT_CLAA150XG01                     5       // 5: 2 pixel/clk, 8 bit
  15      =1      #define SINAI43140CBx_1                     6       // 6: 2 pixel/clk, 6 bit
  16      =1          #define SINAI38951CBx                   7       // 7: 2 pixel/clk, 6 bit
  17      =1      #define SINAI38140CBx                       8       // 8: 1 pixel/clk, 8 bit
  18      =1      #define Sharp_LQ150X1DG51           9       // 9: 2 pixel/clk, 6 bit
  19      =1      #define CMO_M170E4_L01                      10      // 10: 2 Pixel/clk, 8 bit
  20      =1      #define NL6448BC33_46                       11      // 11: 1 Pixel/clk, 6 bit
  21      =1      #define AU_L170EN05                         12      // 10: 2 Pixel/clk, 8 bit
  22      =1      #define AU_M150XN05_1                       13      // 13: 2 pixel/clk, 8 bit
  23      =1      #define CMO_M150X2_T05                      14  // 14: 2 pixel/clk, 6 bit
  24      =1      #define QD170E1                             15      // 15: 2 Pixel/clk, 8 bit
  25      =1      #define Samsung_LTM170E4_L01        16      // 16: 2 Pixel/clk, 8 bit
  26      =1      #define QD170ER01                           17      // 17: 2 Pixel/clk, 8 bit
  27      =1      #define HyundaiHT17E12_100          18      // 18: 2 Pixel/clk, 6 bit
  28      =1      #define CPT_CLAA150XG08                     19      // 19: 1 pixel/clk, 6 bit
  29      =1      #define INNONLUX_RSDS                       20      // 20: 2 Pixel/clk, 6 bit
  30      =1      #define AU_T26XW01                          21      // 21: 1 pixel/clk, 8 bit
  31      =1      #define LG_LM170E01                         22      // 22: 2 Pixel/clk, 8 bit
  32      =1      #define LG_LM150X06_C3                      23      // 23: 2 Pixel/clk, 6 bit
  33      =1      #define NL10276BC30_10                      24      // 24: 1 Pixel/clk, 8 bit
  34      =1      #define N141X201                                   25       // 25: 1 Pixel/clk, 6 bit
  35      =1      #define LG_LM150X06_A4                  26    //26:1 Pixel/clk, 8 bit
  36      =1      #define HannStar_HSD150MX84      27 //27:2 pixel/clk, 6bit   
  37      =1  
  38      =1      //**************************************************************
  39      =1      //              S E L E C T E D   P A N E L
  40      =1      //**************************************************************
  41      =1  //      #define PANEL AU_L150X2M_1
  42      =1  //      #define PANEL CMO_M150X3_T05
  43      =1  //      #define PANEL CMO_M150X2_T05
  44      =1  //      #define PANEL HannStar_HSD150MX49_A
  45      =1  //      #define PANEL HannStar_HSD150MX41_A
  46      =1  //      #define PANEL HannStar_HSD150MX12_A
  47      =1  //      #define PANEL CPT_CLAA150XG01
  48      =1  //      #define PANEL SINAI43140CBx_1
  49      =1  //      #define PANEL SINAI38951CBx
  50      =1  //      #define PANEL SINAI38140CBx
  51      =1  //      #define PANEL Sharp_LQ150X1DG51
  52      =1  //      #define PANEL CMO_M170E4_L01
  53      =1  //      #define PANEL NL6448BC33_46
  54      =1  //      #define PANEL AU_L170EN05
  55      =1  //      #define PANEL AU_M150XN05_1
  56      =1  //      #define PANEL QD170E1
  57      =1  //      #define PANEL Samsung_LTM170E4_L01
  58      =1  //      #define PANEL QD170ER01
  59      =1  //      #define PANEL HyundaiHT17E12_100
  60      =1  //      #define PANEL CPT_CLAA150XG08
  61      =1  //      #define PANEL INNONLUX_RSDS
  62      =1  //      #define PANEL AU_T26XW01
  63      =1  //      #define PANEL LG_LM170E01
  64      =1  //      #define PANEL LG_LM150X06_C3
  65      =1  //      #define PANEL NL10276BC30_10
  66      =1  //      #define PANEL N141X201
  67      =1         #define PANEL LG_LM150X06_A4
C51 COMPILER V7.20   SCALER                                                                09/14/2004 12:21:11 PAGE 10  

  68      =1  //   #define PANEL HannStar_HSD150MX84
  69      =1  
  70      =1      //**************************************************************
  71      =1      //            P A N E L   D E F I N I T I O N S
  72      =1      //**************************************************************
  73      =1  
  74      =1  
  75      =1      #if PANEL == AU_L150X2M_1
           =1 
           =1                 #define PanelName                               "AU_L150X2M_1\r\n"
           =1                 #define PanelXga                1
           =1                 #define PanelSxga               0
           =1                 #define PanelUxga               0
           =1                 #define PanelTwoPixelPerClk     1       // Double pixels output 
           =1                 #define PanelDepth              6
           =1                 #define PanelSync_DE                    0
           =1 
           =1                 #define PanelWidth                              1024
           =1                 #define PanelHeight                             768
           =1 
           =1                 #define PanelMaxVFreq           75      // Hz
           =1                 #define PanelMinVFreq           50      // Hz
           =1                 #define PanelMaxHFreq           60000   // Hz
           =1 
           =1                 #define PanelMinPClk            60000   // KHz
           =1                 #define PanelMaxPClk            80000   // KHz
           =1 
           =1                 #define PanelMinHTotal          1200
           =1                 #define PanelTypHTotal                  1344
           =1                 #define PanelMaxHTotal          1800
           =1                 #define PanelMinHSyncWidth      80
           =1                 #define PanelMinHSyncBackPorch  80
           =1                 #define PanelHSyncStart                 PanelMinHTotal - PanelMinHSyncWidth - PanelMinHSyncBackPorch
           =1                 #define PanelHSyncEnd                   PanelHSyncStart + PanelMinHSyncWidth
           =1 
           =1                 #define PanelMaxVTotal                  960
           =1                 #define PanelTypVTotal                  800
           =1                 #define PanelMinVTotal                  780
           =1                 #define PanelMinVSyncWidth      3
           =1                 #define PanelMinVSyncBackPorch  7
           =1                 #define PanelVSyncStart                 PanelMinVTotal - PanelMinVSyncWidth - PanelMinVSyncBackPorch
           =1                 #define PanelVSyncEnd                   PanelVSyncStart + PanelMinVSyncWidth
           =1 
           =1                 #define FreeRunH_Freq                   60000           //60KHz
           =1                 #define Panel_Interface                 TTL
           =1                 #define PanelShortHsync                 0
           =1                 #define Panel_Invert_DVS                0xff
           =1                 #define Panel_Invert_DHS                0xff
           =1                 #define Panel_Invert_DCLK               0x00
           =1                 #define Panel_Invert_DEN                0x00
           =1                 #define PanelPadDrive                   0x0333
           =1 
           =1                 #define Panel_Spread_Spect_En   0xff    // 0xff : enable spectrum
           =1                                                                                                 // 0x00 : disable spectrum
           =1                 #define PanelSpreadSpectrumCtrl 0x00
           =1                 // Value for Spread_Spectrum_Control register
           =1                 // 0x00: 0.097% ... 0x07: 12.5%
           =1 
           =1                 // define panel timing. word constant used to program registers 0xd8 and 0xd9 during power up and power 
             -down
           =1                 #define PowerUpPanelTiming              1               // 1 ms
           =1                 #define PowerUpInvTiming                250             // 250 ms
C51 COMPILER V7.20   SCALER                                                                09/14/2004 12:21:11 PAGE 11  

           =1                 #define PowerDownPanelTiming    1               // 1 ms
           =1                 #define PowerDownInvTiming              250             // 250 ms
           =1 
           =1                 #define yuv2rgbXsRGB2rgb {      \
           =1                         {  0x12A1,  0x0000,  0x1989 },  \
           =1                         {  0x12A1, -0x0644, -0x0D01 },  \
           =1                         {  0x12A1,  0x2046,  0x0000 }   \
           =1                 }
           =1 
           =1     #endif
 139      =1  
 140      =1      #if PANEL == CMO_M150X3_T05
           =1 
           =1                 #define PanelName                               "CMO_M150X3_T05\r\n"
           =1                 #define PanelXga                1
           =1                 #define PanelSxga               0
           =1                 #define PanelUxga               0
           =1                 #define PanelTwoPixelPerClk     1       // Double pixels output 
           =1                 #define PanelDepth              6
           =1                 #define PanelSync_DE                    0
           =1 
           =1                 #define PanelWidth                              1024
           =1                 #define PanelHeight                             768
           =1 

⌨️ 快捷键说明

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