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

📄 configtimer23.lst

📁 无线龙ZigBee模块CC1010的接收-发送程序。
💻 LST
字号:
C51 COMPILER V7.08   CONFIGTIMER23                                                         11/25/2008 21:39:35 PAGE 1   


C51 COMPILER V7.08, COMPILATION OF MODULE CONFIGTIMER23
OBJECT MODULE PLACED IN ConfigTimer23.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ConfigTimer23.c OMF2 BROWSE INCDIR(..\..\..\..\Include;..\..\..\..\lib;D:\K
                    -EIL\C51\BIN\;D:\Keil\C51\LIB\) DEFINE(FREQ433) DEBUG

line level    source

   1          /*****************************************************************************
   2           *                                                                           *
   3           *        **********                                                         *
   4           *       ************                                                        *
   5           *      ***        ***                                                       *
   6           *      ***   +++   ***                                                      *
   7           *      ***   + +   ***                                                      *
   8           *      ***   +                            CHIPCON CC1010                    *
   9           *      ***   + +   ***                 HAL - ConfigTimer23                  *
  10           *      ***   +++   ***                                                      *
  11           *      ***       ***                                                        *
  12           *       ***********                                                         *
  13           *        *********                                                          *
  14           *                                                                           *
  15           *****************************************************************************
  16           *                                                                           *
  17           *****************************************************************************
  18           * Author:              ROH                                                  *
  19           *****************************************************************************
  20           * Revision history:                                                         *
  21           *                                                                           *
  22           * $Log: ConfigTimer23.c,v $
  23           * Revision 1.1  2002/10/14 13:04:30  tos
  24           * Initial version in CVS.
  25           *
  26           *                                                                           *
  27           ****************************************************************************/
  28          
  29          #include <chipcon/hal.h>
  30          
  31          
  32          //----------------------------------------------------------------------------
  33          // ulong halConfigTimer23(...);
  34          //
  35          //  Description:
  36          //      This function configures timer 2 or 3 (depending on the value given in
  37          //      _option_ as either an interrupt timer (an interrupt is generated at
  38          //      certain intervals in time, as specified by _period) or a pulse width 
  39          //      modulator (PWM).
  40          //      If _period_ is specified as 0, then, in timer mode the timeout peiod will
  41          //      be set to the maximum possible, and in PWM mode the period will be
  42          //      set as long as possible. Using the PWM mode of timer 2/3 overrides the
  43          //      normal operation of ports P3.4/P3.5 and can thus not be used in conjunction
  44          //      with timer 0/1 configured as counters. The duty cycle is set to 50% (128/255)
  45          //      initially in PWM mode.
  46          //      The timer/PWM must be started with macro TIMERx_RUN(TRUE).
  47          //描述: 
  48          //    这一功能配置计时器2或3(取决于在_option_作为定时器中断所给定的值(中断的产生
  49          //是由_period规定的一定的时间间隔, )或脉冲宽度调制器( PWM ) 。 
  50          //    如果_period_被指定为0 ,然后在定时器模式超时将peiod 设置为最大可能值,并在PWM模式下period将
  51          //设置的时间尽可能的长。利用定时器2/3的PWM模式覆盖正常运作的端口P3.4/P3.5,因此,可以不一起使用
  52          //定时器0/1配置做为计数器。占空比设置为50% (128/255) 初始是在PWM模式。 
  53          //计时器/脉宽调制器必须由宏TIMERx_RUN(TRUE)启动。
  54          //
C51 COMPILER V7.08   CONFIGTIMER23                                                         11/25/2008 21:39:35 PAGE 2   

  55          //  Arguments:
  56          //      byte options
  57          //          Options indicating which timer to configure and how. Different  (Options指示配置哪一个计时器

⌨️ 快捷键说明

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