TimerDelay.LST
上传用户:gxz1972
上传日期:2019-09-13
资源大小:323k
文件大小:2k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1. C51 COMPILER V7.02b   TIMERDELAY                                                           11/30/2007 14:07:15 PAGE 1   
  2. C51 COMPILER V7.02b, COMPILATION OF MODULE TIMERDELAY
  3. OBJECT MODULE PLACED IN TimerDelay.OBJ
  4. COMPILER INVOKED BY: C:KeilC51BINc51.exe TimerDelay.c DB OE
  5. stmt level    source
  6.    1          /************************************************
  7.    2          Delay subroutine
  8.    3          Copyright 2006 by Vson. All rights reserved.
  9.    4          Author:      Bryan Cai
  10.    5          Date:        2006.12.21
  11.    6          Description: soft delay
  12.    7          Note:
  13.    8          Identifier abbreviation: 
  14.    9                                   c-const
  15.   10                                   a-array
  16.   11                                   p-pointer
  17.   12                                   g-global
  18.   13                                   uc-unsigned char
  19.   14                                   w-unsigned int
  20.   15                                   cnt-count
  21.   16                                   pnt-point
  22.   17          Update:
  23.   18                2006.12.21  Bryan      program header
  24.   19          ************************************************/
  25.   20          
  26.   21          #include "Include_H.h" 
  27.   22          //---------------------------------
  28.   23          
  29.   24          /*
  30.   25          void DelayMs(unsigned int wDelay10msCount)
  31.   26          {
  32.   27              gwDelayCnt = wDelay10msCount;
  33.   28                  IE |= 0x20;
  34.   29          
  35.   30              while(gwDelayCnt);
  36.   31          
  37.   32                  IE &= ~0x20;
  38.   33          }
  39.   34          */
  40.   35          void StartTimer2(unsigned int wDelay10msCount)
  41.   36          {
  42.   37   1          gwDelayCnt = wDelay10msCount;
  43.   38   1              IE |= 0x20;
  44.   39   1      }
  45.   40          
  46.   41          void StopTimer2(void)
  47.   42          {
  48.   43   1              IE &= ~0x20;
  49.   44   1      }
  50. MODULE INFORMATION:   STATIC OVERLAYABLE
  51.    CODE SIZE        =     15    ----
  52.    CONSTANT SIZE    =   ----    ----
  53.    XDATA SIZE       =   ----    ----
  54.    PDATA SIZE       =   ----    ----
  55.    DATA SIZE        =   ----    ----
  56.    IDATA SIZE       =   ----    ----
  57.    BIT SIZE         =   ----    ----
  58. END OF MODULE INFORMATION.
  59. C51 COMPILER V7.02b   TIMERDELAY                                                           11/30/2007 14:07:15 PAGE 2   
  60. C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)