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

📄 vx1828_au.lst

📁 lcd驱动程序:用于au
💻 LST
📖 第 1 页 / 共 5 页
字号:
C51 COMPILER V7.50   VX1828_AU                                                             01/14/2006 15:30:03 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE VX1828_AU
OBJECT MODULE PLACED IN .\HEX\vx1828_AU.obj
COMPILER INVOKED BY: F:\Keil\C51\BIN\C51.EXE vx1828_AU.C LARGE BROWSE DEBUG OBJECTEXTEND PRINT(.\lst\vx1828_AU.lst) OBJE
                    -CT(.\HEX\vx1828_AU.obj)

line level    source

   1          //#pragma       SRC
   2          
   3          #include <intrins.h>
   4          #include <reg51.h>
   5          #include <78e65.H>
   6          #include "config.h"
   7          #include "pindef.h"
   8          #include "osd_VX1828.h"
   9          #include "func_shi.h"
  10          #include "inVX1828.h"
  11          #include "osd.h"
  12          #include "globl.h"
  13          #include "MENU.H"
  14          #include "timer.h"
  15          #if _debug
  16          #include <stdio.h>
  17          #endif
  18          #include "ir.h"
  19          #include "tda7440d.h"
  20          
  21          sbit S_PWRON=P4^2;              
  22          void Time_counter(void);
  23          void uart_init();
  24          void cpu_init();
  25          void open_5v();
  26          void init_s35390();
  27          
  28          //extern void isp_prog();
  29          
  30          //----------------------------------------------
  31          //char data channel=0,last_channel=0;
  32          //****************************************************************************
  33          unsigned int idata osd_timer=0;
  34          
  35          unsigned char idata modestatus  =0x9c,tempmode=0x9c;
  36          char idata temp_data[0x06]={0,0,0,0,0,0};
  37          
  38          //*****************************************************************************
  39          
  40          bit  XIE_Power = 0;
  41          
  42          //***********************************************************************************
  43          void OSAUX_RAM_EN(char data temp)
  44          {
  45   1              if(temp==1){
  46   2                      CHPENR=0x87;
  47   2                      CHPENR=0x59;
  48   2                      CHPCON=0x10;
  49   2                      CHPENR=0x00;
  50   2              }
  51   1              else{
  52   2              }
  53   1      }
  54          //====================================================
C51 COMPILER V7.50   VX1828_AU                                                             01/14/2006 15:30:03 PAGE 2   

  55          //===================================================
  56          //===================================================
  57          void main()
  58          {
  59   1              //unsigned int idata timerdelay1, timerdelay2,timerdelay3;
  60   1              //unsigned int idata checkmtime=0;
  61   1              char tmp=0;
  62   1      
  63   1              #if _debug
  64   1              char tmp1;
  65   1              #endif
  66   1              
  67   1              cpu_init();     SP=0X80;
  68   1              
  69   1              #if _debug
  70   1              uart_init();            printf("main begin\n"); 
  71   1              #endif
  72   1              
  73   1              OSAUX_RAM_EN(1);        LED_R=0;        DelayXms(0x10); // waiting .....
  74   1              sda = 1;        scl = 1;        DelayXms(0x10); 
  75   1      
  76   1              ///////////////////////////////////////////////////////////////////
  77   1      
  78   1              tmp=0x00;//zl.d1.26
  79   1              shi_sub_write1(0x62, 0x00, &tmp);//timer int1,int2 pin high
  80   1              ///////////////////////////////////////////////////////////////////
  81   1              
  82   1              #if _debug
  83   1              tmp=0x09;
  84   1              shi_sub_write(EEPROM, 0xc0, 00, &tmp);  DelayXms(0x30);         
  85   1              shi_sub_read(EEPROM,0xc0,00,&tmp1);
  86   1              printf("test dot \n");
  87   1              if(tmp==tmp1)
  88   1              {  
  89   2                      printf("The value eeprom 0xc0= %bx ,means that IIC is OK. \n",tmp1);
  90   2            } 
  91   1              else{
  92   2                      printf("The IIC isn't OK for eeprom 0xc0=%bx.Stop!!!\n",tmp1);
  93   2                      while(1);
  94   2              }
  95   1              #endif
  96   1      
  97   1      Restart2:
  98   1                      #if LG
                              printf("the panal is LG.\n");
                              #endif
 101   1                      
 102   1                      #if AU
 103   1                      printf("the panal is AU.\n");
 104   1                      #endif
 105   1                      
 106   1              if (pcc)
 107   1              {       
 108   2                      #if _debug
 109   2                      printf("The program jump Restart2 \n");
 110   2                      #endif
 111   2                      
 112   2                      // Set initial address of OSD block ,The initial address of Title Block is default 0x00 
 113   2                      osd_madr(content,0x30);         // Set the initial address of Content Block
 114   2                      osd_madr(bottom,0xD0);          // Set the initial address of Bottom Block
 115   2                      osd_clearall();
 116   2                      osd_hbsection(title,bl,0x00,0x00,0x00,0x00);
C51 COMPILER V7.50   VX1828_AU                                                             01/14/2006 15:30:03 PAGE 3   

 117   2                      osd_hbsection(content,bl,0x00,0x00,0x00,0x00);
 118   2                      osd_hbsection(bottom,bl,0x00,0x00,0x00,0x00);
 119   2                      osd_hbsection(title,hl,0x00,0x00,0x00,0x00);
 120   2                      osd_hbsection(content,hl,0x00,0x00,0x00,0x00);
 121   2                      osd_hbsection(bottom,hl,0x00,0x00,0x00,0x00);
 122   2                      
 123   2                      // Set size of block
 124   2                      osd_size(title,0x2F,0x01);              // Set Title block size
 125   2                      osd_size(content,0,0);          // Set Content block size   adjust by cswu.
 126   2                      // Set position of block
 127   2                      //osd_pos(title,180,7);         // Set Title block position
 128   2                      osd_pos(content,0x80,12);               // Set Content block position
 129   2                      // Select Block Color 
 130   2                      osd_switch(0x00); // Turn the OSD T/C/B block off
 131   2                      osd_blink(0x0f);  // Set the OSD blinking rate
 132   2                      osd_alpha(0x0d);  // Set the OSD transparent
 133   2                      
 134   2                      #if _debug
 135   2                      printf("The program jump Restart.\n");
 136   2                      #endif
 137   2                              
 138   2                      Reloadsetting();            
 139   2                      VX1828ctrl = 1;   DelayXms(0x10);       
 140   2                      BSTctrl = 0;       DelayXms(0x20);                      
 141   2                      signal_sel=0;
 142   2                      top_sel = 1;
 143   2                      pcc = 0;                
 144   2                      EA=1;
 145   2                      
 146   2                      #if _debug
 147   2                      printf("EA = 1 \n");    TI=0;
 148   2                      #endif
 149   2                      
 150   2                      TR0 = 1;
 151   2                      
 152   2                      #if _debug
 153   2                      printf("open timer0\n");TI=0;
 154   2                      #endif
 155   2                      
 156   2                      top_sel=1;
 157   2                      time_sel=1;
 158   2                    topmenu_flag = 0;
 159   2                    timemenu_flag=0;
 160   2                    timeshow_flag=0;
 161   2                    britmenu_flag  = 0;
 162   2                    timemenu_flag=0;
 163   2                    //resetreg_flag = 0;      
 164   2                    //savereg_flag = 0;
 165   2                    volshow_flag = 0;
 166   2                      
 167   2              }
 168   1              while(1)
 169   1              {       
 170   2                      timer_on_off();//zl.d 1.5
 171   2                      //timer_on_off();
 172   2      //=========================================================     
 173   2                      if(!XIE_Power)                  // run only one time .
 174   2                      { 
 175   3                              #if _debug
 176   3                              printf("XIE_Power \n");
 177   3                              #endif

⌨️ 快捷键说明

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