welcome.lst

来自「MP3 整个 SDK」· LST 代码 · 共 974 行 · 第 1/4 页

LST
974
字号
################################################################################
#                                                                              #
#     IAR Systems Z80/64180 Assembler V3.03A/WIN 26/Dec/106  10:49:35          #
#                                                                              #
#           Target option =  z80                                               #
#           Source file   =  d:\case_i_d90f\drv\welcome\welcome.msa            #
#           List file     =  d:\case_i_d90f\drv\welcome\list\welcome.lst       #
#           Object file   =  d:\case_i_d90f\drv\welcome\obj\welcome.r01        #
#           Command line  =  -v0 -OD:\case_i_d90f\drv\welcome\Obj\ -s+ -M<>    #
#                            -w+ -r -LD:\case_i_d90f\drv\welcome\List\ -t8     #
#                            -ID:\SDK_I_90f\INC\                               #
#                            -ID:\CASE_I_d90f\C12832_1\INC\                    #
#                            D:\CASE_I_D90F\DRV\WELCOME\welcome.msa            #
#                                                                              #
#                                               (c) Copyright IAR Systems 1996 #
################################################################################

      1    000000          //**************************************************
 **********
      2    000000          //*  Project:SDK31 标准MP3-上电欢迎程序            
            *
      3    000000          //*  File:welcome.msa                              
          *
      4    000000          //*  SoftWare Engineer:jmzhang                     
          *
      5    000000          //*  2004/10/19  Version: 1.0                      
          *
      6    000000          //*  Actions Semiconductor Co., Ltd                 
          *
      7    000000          //*  Function Description:                         
          *
      8    000000          //*  History Record:                               
          *
      9    000000          //**************************************************
 **********
     10    000000                  #include "UI_S0724.h"
     11    000000                          name  Welcome
     12    000000          #define Contrast_Control_1               0deh
     13    000000          #define Contrast_Control_2               060h
     14    000000          #define Driver_Output_Mode               002h
     15    000000          #define Bias_Set                         011h
     16    000000          #define Clock_Division                   22h
     17    000000          
     18    000000                      public  DispStarting
     19    000000          
     20    000000                      rseg    CODEDISPSTART
     21    000000          DispStarting:                                 //使LC
 M的Reset Pin 有效
     22    000000 DB05                 in      a,(0x05)
     23    000002 47                   ld      b,a
     24    000003 F607                 or      07h
     25    000005 D305                 out     (0x05),a
     26    000007          
     27    000007 DB70                 in      a,(0x70)
     28    000009 4F                   ld      c,a
     29    00000A CBEF                 set     5,a
     30    00000C CBE7                 set     4,a
     31    00000E D370                 out     (0x70),a
     32    000010          
     33    000010 78                   ld      a,b                     //切完IO
                                                  才有RAM保存
     34    000011 32....               ld      (IO05Bak),a             //变量区
     35    000014 79                   ld      a,c
     36    000015 32....               ld      (IO70Bak),a             //变量区
     37    000018          
     38    000018 DBF8                     in      a,(CSTN_BL_EN_REGF0)
     39    00001A F608                     or      CSTN_BL_SET_BIT
     40    00001C D3F8                     out     (CSTN_BL_EN_REGF0),a
     41    00001E                          
     42    00001E DBFE                     in      a,(CSTN_RST_EN_REGF0)
     43    000020 F604                     or      CSTN_RST_SET_BIT
     44    000022 D3FE                     out     (CSTN_RST_EN_REGF0),a
     45    000024                          
     46    000024 DBFE                     in      a,(CSTN_DI_EN_REGF0)
     47    000026 F602                     or      CSTN_DI_SET_BIT
     48    000028 D3FE                     out     (CSTN_DI_EN_REGF0),A
     49    00002A                          
     50    00002A DBF3                     in      a,(LCMCE_GIO_EN_REG)
     51    00002C F608                     or      LCMCE_SET_BIT
     52    00002E D3F3                     out     (LCMCE_GIO_EN_REG),a
     53    000030          //              in      a,(0x02)
     54    000030          //        ld      (CEPort_Sav),a
     55    000030          //        or      0x18            //change by ybfu
     56    000030          //        out     (0x02),a        //chip select enab
 le,select CSTN
     57    000030          
     58    000030 DBF4                     in      a,(LCMCE_GIO_DATA_REG)
     59    000032 E6F7                     and     LCMCE_CLR_BIT
     60    000034 D3F4                     out     (LCMCE_GIO_DATA_REG),a
     61    000036          
     62    000036          
     63    000036          //              ld a, 080h                          
 //switch to LCD mode
     64    000036          //        out (0eeh),a
     65    000036              
     66    000036              //in  a,(0x8d)
     67    000036              //or  04h
     68    000036              //out (0x8d),a
     69    000036              //
     70    000036              //          in  a,(RESET_GIO_EN_REGISTER)
     71    000036              //    and 0e7h
     72    000036              //    out (RESET_GIO_EN_REGISTER),a
     73    000036              
     74    000036          //    in        a,(0xef)
     75    000036          //    and       0xcf
     76    000036          //    out       (0xef),a
     77    000036          //    
     78    000036          //    in        a,(0xf0)
     79    000036          //    or        0x30
     80    000036          //    out       (0xf0),a
     81    000036          //    
     82    000036          //    in        a,(0xf1)
     83    000036          //    and       0xcf
     84    000036          //    out       (0xf1),a    
     85    000036                  
     86    000036                  //gpio_b3 enable
     87    000036                  //in  a,(PW_GIO_CFG)
     88    000036                  //and 0f7h
     89    000036                  //out (PW_GIO_CFG),a
     90    000036                  //
     91    000036                  //in  a,(PW_GOU_EN_REGISTER)
     92    000036                  //or  0x08
     93    000036                  //out (PW_GOU_EN_REGISTER),a
     94    000036                  //
     95    000036                  //in  a,(PW_GIN_EN_REGISTER)
     96    000036                  //or  0x08
     97    000036                  //out  (PW_GIN_EN_REGISTER),a
     98    000036                  
     99    000036                  //open pw gpio_b3 = 1
    100    000036          //        in  a,(PW_GIO_DATA_REGISTER)
    101    000036          //        or 0x02//08h
    102    000036          //        out (PW_GIO_DATA_REGISTER),a
    103    000036          
    104    000036                  
    105    000036 CD....           call Delay_10us 
    106    000039 DBFF         in a,(CSTN_RST_DATA_REGF2)  //reset c2=0
    107    00003B E6FB              and CSTN_RST_CLR_BIT//0xf7
    108    00003D D3FF              out (CSTN_RST_DATA_REGF2),a
    109    00003F          
    110    00003F CD....           call Delay_10us
    111    000042 CD....           call Delay_10us
    112    000045 CD....           call Delay_10us
    113    000048 CD....           call Delay_10us
    114    00004B          
    115    00004B DBFF              in a,(CSTN_RST_DATA_REGF2)
    116    00004D F604              or  CSTN_RST_SET_BIT//0x08
    117    00004F D3FF              out (CSTN_RST_DATA_REGF2),a
    118    000051              
    119    000051 CD....       call                        SlowRdAndWrt
    120    000054          
    121    000054 0E06         ld        c,0x06
    122    000056 CD....       call        Write_Command
    123    000059 0E85         ld        c,0x85
    124    00005B CD....       call        Write_Parameter
    125    00005E          
    126    00005E CD....                   call                    Delay
    127    000061 CD....                   call                    Delay
    128    000064 CD....                   call                    Delay
    129    000067          //              call                    Delay
    130    000067                          
    131    000067 0E01         ld        c,0x01
    132    000069 CD....       call        Write_Command
    133    00006C 0E02         ld        c,0x02
    134    00006E CD....       call        Write_Parameter
    135    000071          
    136    000071 0E02         ld        c,0x02
    137    000073 CD....       call        Write_Command
    138    000076 0E12         ld        c,0x12
    139    000078 CD....       call        Write_Parameter
    140    00007B          
    141    00007B 0E03         ld        c,0x03
    142    00007D CD....       call        Write_Command
    143    000080 0E00         ld        c,0x00
    144    000082 CD....       call        Write_Parameter
    145    000085              
    146    000085 0E04         ld        c,0x04
    147    000087 CD....       call        Write_Command
    148    00008A 0E10         ld        c,0x10
    149    00008C CD....       call        Write_Parameter
    150    00008F              
    151    00008F 0E05         ld        c,0x05
    152    000091 CD....       call        Write_Command
    153    000094 0E08         ld        c,0x08
    154    000096 CD....       call        Write_Parameter
    155    000099          
    156    000099 0E07         ld        c,0x07
    157    00009B CD....       call        Write_Command
    158    00009E 0E7F         ld        c,0x7f
    159    0000A0 CD....       call        Write_Parameter
    160    0000A3          
    161    0000A3 0E08         ld        c,0x08
    162    0000A5 CD....       call        Write_Command
    163    0000A8 0E17         ld        c,0x17
    164    0000AA CD....       call        Write_Parameter
    165    0000AD                  
    166    0000AD 0E09         ld        c,0x09
    167    0000AF CD....       call        Write_Command
    168    0000B2 0E00         ld        c,0x00
    169    0000B4 CD....       call        Write_Parameter
    170    0000B7          
    171    0000B7 0E10         ld        c,0x10
    172    0000B9 CD....       call        Write_Command
    173    0000BC 0E00         ld        c,0x00
    174    0000BE CD....       call        Write_Parameter
    175    0000C1          
    176    0000C1 0E11         ld        c,0x11
    177    0000C3 CD....       call        Write_Command
    178    0000C6 0E7F         ld        c,0x7f
    179    0000C8 CD....       call        Write_Parameter
    180    0000CB          
    181    0000CB 0E12         ld        c,0x12
    182    0000CD CD....       call        Write_Command
    183    0000D0 0E9F         ld        c,0x9f
    184    0000D2 CD....       call        Write_Parameter
    185    0000D5          
    186    0000D5          
    187    0000D5          
    188    0000D5          //    ld        c,0x08
    189    0000D5          //    call        Write_Command
    190    0000D5          //    ld        c, 16//40//20//25//1//25//50//80  //
 0x2; 0x0c; 0x01;
    191    0000D5          //    call        Write_Parameter
    192    0000D5          //
    193    0000D5          //    ld        c,0x07
    194    0000D5          //    call        Write_Command
    195    0000D5          //    ld        c, 97//73//93//89//111//89//64//32 /
 /0x70;//0x40;//0x6c;0x04;
    196    0000D5          //    call        Write_Parameter
    197    0000D5          //
    198    0000D5          //    ld        c,0x09
    199    0000D5          //    call        Write_Command
    200    0000D5          //    ld        c,0x00
    201    0000D5          //    call        Write_Parameter
    202    0000D5          //
    203    0000D5          //    ld        c,0x11
    204    0000D5          //    call        Write_Command
    205    0000D5          //    ld        c,0x7f
    206    0000D5          //    call        Write_Parameter
    207    0000D5          //
    208    0000D5          //    ld        c,0x10
    209    0000D5          //    call        Write_Command
    210    0000D5          //    ld        c,0x00
    211    0000D5          //    call        Write_Parameter
    212    0000D5          //

⌨️ 快捷键说明

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