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

📄 uart_dvh.lst

📁 MXIC旺宏液晶电视芯片MX88V44的源码
💻 LST
字号:
C51 COMPILER V7.02b   UART_DVH                                                             05/24/2006 17:59:20 PAGE 1   


C51 COMPILER V7.02b, COMPILATION OF MODULE UART_DVH
OBJECT MODULE PLACED IN .\UART_DVH.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\inc\UART_DVH.H LARGE BROWSE DEBUG OBJECTEXTEND PRINT(.\UART_DVH.lst) OBJ
                    -ECT(.\UART_DVH.obj)

stmt level    source

   1          /*-------------------------------------------------------------------------
   2          UART_DVH.H
   3          
   4          Copyright 2004 Macronix International Co., Ltd.
   5          -------------------------------------------------------------------------*/
   6          #ifndef _UART_DV_H_
   7                  #define _UART_DV_H_
   8          
   9                  #ifndef _UART_DV_
  10                  #define global_uart_dv     extern
  11                  #else
                      #define global_uart_dv
                      #endif
  14          
  15                  //*-------------------------------------------------------------------
  16                  //*                     Global Constants
  17                  //*-------------------------------------------------------------------
  18          
  19                  //============== Command definition ===================================
  20                  #define ACK                             0x06
  21                  #define NACK                    0x09
  22                                                                                  //--- Command to device (PC --> Device)
  23                  #define UARTBAUD                0x05    //set UART baud rate
  24          
  25                  #define MEMRD                   0xA0    //read  memory data
  26                  #define REGRD15xx               0xA1    //read  register data
  27                  #define REGRDTVTuner    0xA2
  28                  #define REGRDTVDecoder  0xA3
  29                  #define REGRDOSDCtrl    0xA4
  30                  #define REGRDOSDCode    0xA5
  31                  #define REGRDOSDAttr    0xA6
  32                  #define RDEEPROM                0xA7
  33                  #define RDGAMMA                 0xA8
  34          
  35                  #define MEMWR                   0xC0    //write memory data
  36                  #define REGWR15xx               0xC1    //write register data
  37                  #define REGWRTVTuner    0xC2
  38                  #define REGWRTVDecoder  0xC3
  39                  #define REGWROSDCtrl    0xC4
  40                  #define REGWROSDCode    0xC5
  41                  #define REGWROSDAttr    0xC6
  42                  #define WREEPROM                0xC7
  43                  #define WRGAMMA                 0xC8
  44          
  45                  #define GETDEV                  0x20    //get device information
  46                                                                          //--- Command from device (Device --> PC)
  47                  #define MEMRP                   0xE0    //respond memory data
  48                  #define REGRP15xx               0xE1    //respond register data
  49                  #define REGRPTVTuner    0xE2
  50                  #define REGRPTVDecoder  0xE3
  51                  #define REGRPOSDCtrl    0xE4
  52                  #define REGRPOSDCode    0xE5
  53                  #define REGRPOSDAttr    0xE6
  54                  #define RPEEPROM                0xE7
C51 COMPILER V7.02b   UART_DVH                                                             05/24/2006 17:59:20 PAGE 2   

  55                  #define RPGAMMA                 0xE7
  56          
  57                  #define MSGSHOW                 0x0A    //show message in PC
  58                  #define DEVICEINF               0x28    //respond device inf
  59                                                                                  //include Project#, IC version
  60                                                                                  //FW version and PCB version.
  61                  #define FILLMEM                 0xF0
  62                  #define UART_PACK_SIZE  8
  63          
  64                  //============== UART Parameter Define ================================
  65          
  66                  #define RX_PARSE                0x80    //pack data ready, wait process Parse routine
  67                  #define RX_HAS_DATA             0x40
  68                  #define RX_SYN1                 0x10    //SYN1 byte rx complete
  69                  #define TX_WAITACK              0x08    //wait ACK command
  70                  #define TX_HAS_DATA             0x04
  71                  #define TX_FLAG                 0x01    //UART in TX state
  72                  #define CLEAN_UARTFlag  0xFF    //XOR there FLAG
  73          
  74                  #define RX_GETLENGTH    4               //length data position in RX buffer
  75                  #define SYN_BYTE                0x66
  76          
  77                  //============== UART Memory Define ================================
  78                  global_uart_dv unsigned char    R15xx_FLAG;
  79                  global_uart_dv unsigned char    W15xx_FLAG;
  80          
  81                  global_uart_dv xdata char       Rx_Buf[2][24];//        _at_ 0x0000;
  82                  global_uart_dv xdata char       Tx_Buf[24]       ;//    _at_ 0x0030;
  83                  global_uart_dv xdata char       ReTx_Buf[24] ;//        _at_ 0x0050;
  84          
  85                  global_uart_dv xdata char       UART_RxInUse ;//        _at_ 0x0070;
  86                  global_uart_dv xdata char       Rx_Index         ;//    _at_ 0x0072;
  87                  global_uart_dv xdata char       Tx_Index         ;//    _at_ 0x0074;
  88                  global_uart_dv xdata char       Data_Length      ;//    _at_ 0x0076;
  89                  global_uart_dv xdata char       Parse_Length ;//        _at_ 0x0078;
  90                  global_uart_dv xdata char       Tx_Length        ;//    _at_ 0x007A;
  91                  global_uart_dv xdata char       ReTx_Length      ;//    _at_ 0x007C;
  92          
  93                  global_uart_dv xdata char       *ExtMemPtr       ;              //_at_ 0x0080;
  94                  global_uart_dv xdata char       RW15xx_Addr;            //_at_ 0x0088;
  95                  global_uart_dv xdata char       W15xx_Val;                      //_at_ 0x008A;
  96                  global_uart_dv xdata char       R15xx_Length;           //_at_ 0x008C;
  97          
  98                  global_uart_dv xdata char       Tempbuf[64];            //_at_ 0x00A0;
  99                  global_uart_dv xdata char       WR_TestByte[16];        //_at_ 0x00E0;
 100                                  
 101                                  //can not be initialized
 102                                                                                                  // data in progeam "main()"
 103                  global_uart_dv char     UARTFlag;
 104                  global_uart_dv char     UART_Count;
 105          
 106                  //============== Struct of the UART pcak ==============================
 107                  struct  UART_PACK
 108                  {
 109                          unsigned char           syn1;
 110                          unsigned char           cmd;
 111                          unsigned char           length;
 112                          unsigned char           reserve;
 113                          int                                     addr;
 114                          unsigned char           crc;
 115                          unsigned char           syn2;
 116                  };
C51 COMPILER V7.02b   UART_DVH                                                             05/24/2006 17:59:20 PAGE 3   

 117                  //*-------------------------------------------------------------------
 118                  //*                     Global Function
 119                  //*-------------------------------------------------------------------
 120                  global_uart_dv void     UART_RxByte(void);
 121                  global_uart_dv void     UART_TxByte(void);
 122                  global_uart_dv void     UART_ParseFun(void);
 123                  global_uart_dv void     UART_SendOut(char * , char );
 124                  global_uart_dv void     PrepareSendBuf(char * , int , char , char );
 125          
 126          #endif  


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   ----    ----
   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 + -