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

📄 keyscan.lst

📁 Keil C51完整的128X64LCD显示的电子打铃仪代码,内含DS1302X5045等操作代码
💻 LST
字号:
C51 COMPILER V7.50   KEYSCAN                                                               06/10/2006 08:26:03 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE KEYSCAN
OBJECT MODULE PLACED IN KeyScan.OBJ
COMPILER INVOKED BY: D:\ExpertTools\Keil\C51\BIN\C51.EXE KeyScan.c OPTIMIZE(5,SPEED) BROWSE DEBUG OBJECTEXTEND

line level    source

   1          /*********************************************************************
   2           *Description:                 SW680GAM Machine KEY Drive Program 
   3           *File Name:                    KeyScan.C
   4           *Use Compile Lanague:  KEIL C51
   5           *Version :                     V1.0
   6           *Code Author:                 zhouhuanxi
   7           *Date:                                 2005-01-14
   8           CopyRight(C)                   2005 --  SHENZHEN XINSANWEI Machine&Electronics CO.,LTD.
   9          *********************************************************************/
  10          //==== FILE Include And Macro Declare Segment====
  11          #define _LCD_H
  12          #include        "Config.H"
  13          
  14          //Define Key Scan Port
  15          #define KEYPORT                         P1
  16          
  17          uint8 DTime=0;
  18          //*************************************************
  19          //============= FUNCTION CODE SEGMENT =============
  20          //*************************************************
  21          
  22          //=================================================
  23          //Function:     ScanFuncKey     
  24          //Description:  Scan self-helpful Key  and Get the KeyPressing of Key Value     
  25          //Parameters:   NO.
  26          //CALL:                 NO.
  27          //Returns:              KeyPressing of Key Value
  28          //=================================================
  29          uint8 KeyScan(void)
  30          {
  31   1              uint8   tempkeyvalue0,tempkeyvalue;
  32   1              KEYPORT                 =       0xFF;
  33   1              tempkeyvalue    =       KEYPORT;
  34   1      
  35   1              if (tempkeyvalue==NOKEY_PRESS)
  36   1                      return NOKEY_PRESS;     
  37   1              
  38   1              Delay(4);
  39   1      
  40   1              KEYPORT                 =       0xFF;
  41   1              tempkeyvalue    =       KEYPORT;
  42   1      
  43   1              if (tempkeyvalue==NOKEY_PRESS)
  44   1                      return NOKEY_PRESS;     
  45   1      
  46   1              if (BeepOnOff)
  47   1                  Beep(1);
  48   1      
  49   1              Key_Continue(DTime);
  50   1      
  51   1              do
  52   1              {//等键松开
  53   2                      KEYPORT                 =       0xFF;
  54   2                      tempkeyvalue0   =       KEYPORT;
  55   2                      if(tempkeyvalue0!=ENTER && tempkeyvalue0!=ESC)
C51 COMPILER V7.50   KEYSCAN                                                               06/10/2006 08:26:03 PAGE 2   

  56   2                      {//连按处理
  57   3                              if(KeyBool==TRUE)
  58   3                              {
  59   4                                      KeyBool=FALSE;
  60   4                                      DTime=24;
  61   4                                      goto KeyExit;
  62   4                              }
  63   3                      }
  64   2                              
  65   2              }while(tempkeyvalue0!=NOKEY_PRESS  );
  66   1              DTime=0;
  67   1      KeyExit:        
  68   1              return tempkeyvalue;
  69   1      }
  70          
  71          /*********************************************************************************************************
             -***
  72          ***************************************** END OF FILE ****************************************************
             -***
  73          **********************************************************************************************************
             -**/
  74          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     82    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =      1       1
   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 + -