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

📄 cc6.lst

📁 XC8888是XC800家族的新成员
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V8.04b   CC6                                                                  03/23/2008 23:18:05 PAGE 1   


C51 COMPILER V8.04b, COMPILATION OF MODULE CC6
OBJECT MODULE PLACED IN CC6.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE CC6.C BROWSE DEBUG OBJECTEXTEND

line level    source

   1          //****************************************************************************
   2          // @Module        Capture / Compare Unit 6 (CCU6)
   3          // @Filename      CC6.C
   4          // @Project       CCU01.dav
   5          //----------------------------------------------------------------------------
   6          // @Controller    Infineon XC886CLM
   7          //
   8          // @Compiler      Keil
   9          //
  10          // @Codegenerator 1.0
  11          //
  12          // @Description   This file contains functions that use the CCU6 module.
  13          //
  14          //----------------------------------------------------------------------------
  15          // @Date          8/4/2006 3:20:46 PM
  16          //
  17          //****************************************************************************
  18          
  19          // USER CODE BEGIN (CCU6_General,1)
  20          
  21          // USER CODE END
  22          
  23          
  24          
  25          //****************************************************************************
  26          // @Project Includes
  27          //****************************************************************************
  28          
  29          #include "MAIN.H"
  30          
  31          // USER CODE BEGIN (CCU6_General,2)
  32          
  33          // USER CODE END
  34          
  35          
  36          //****************************************************************************
  37          // @Macros
  38          //****************************************************************************
  39          
  40          // USER CODE BEGIN (CCU6_General,3)
  41          
  42          // USER CODE END
  43          
  44          
  45          //****************************************************************************
  46          // @Defines
  47          //****************************************************************************
  48          
  49          // USER CODE BEGIN (CCU6_General,4)
  50          
  51          // USER CODE END
  52          
  53          
  54          //****************************************************************************
  55          // @Typedefs
C51 COMPILER V8.04b   CC6                                                                  03/23/2008 23:18:05 PAGE 2   

  56          //****************************************************************************
  57          
  58          // USER CODE BEGIN (CCU6_General,5)
  59          
  60          // USER CODE END
  61          
  62          
  63          //****************************************************************************
  64          // @Imported Global Variables
  65          //****************************************************************************
  66          
  67          // USER CODE BEGIN (CCU6_General,6)
  68          
  69          // USER CODE END
  70          
  71          
  72          //****************************************************************************
  73          // @Global Variables
  74          //****************************************************************************
  75          
  76          // USER CODE BEGIN (CCU6_General,7)
  77          
  78          // USER CODE END
  79          
  80          
  81          //****************************************************************************
  82          // @External Prototypes
  83          //****************************************************************************
  84          
  85          // USER CODE BEGIN (CCU6_General,8)
  86          
  87          // USER CODE END
  88          
  89          
  90          //****************************************************************************
  91          // @Prototypes Of Local Functions
  92          //****************************************************************************
  93          
  94          // USER CODE BEGIN (CCU6_General,9)
  95          
  96          // USER CODE END
  97          
  98          
  99          //****************************************************************************
 100          // @Function      void CC6_vInit(void) 
 101          //
 102          //----------------------------------------------------------------------------
 103          // @Description   This is the initialization function of the CCU6 function 
 104          //                library. It is assumed that the SFRs used by this library 
 105          //                are in their reset state. 
 106          //
 107          //----------------------------------------------------------------------------
 108          // @Returnvalue   None
 109          //
 110          //----------------------------------------------------------------------------
 111          // @Parameters    None
 112          //
 113          //----------------------------------------------------------------------------
 114          // @Date          8/4/2006
 115          //
 116          //****************************************************************************
 117          
C51 COMPILER V8.04b   CC6                                                                  03/23/2008 23:18:05 PAGE 3   

 118          // USER CODE BEGIN (Init,1)
 119          
 120          // USER CODE END
 121          
 122          void CC6_vInit(void)
 123          {
 124   1        // USER CODE BEGIN (Init,2)
 125   1      
 126   1        // USER CODE END
 127   1      
 128   1        SFR_PAGE(_cc1, noSST);         // switch to page 1
 129   1      
 130   1        ///  -----------------------------------------------------------------------
 131   1        ///  Configuration of Timer Control Register
 132   1        ///  -----------------------------------------------------------------------
 133   1      
 134   1        CCU6_TCTR0L    =  0x80;        // load CCU6 timer control register 0 low
 135   1        CCU6_TCTR0H    =  0x00;        // load CCU6 timer control register 0 high
 136   1      
 137   1        ///  -----------------------------------------------------------------------
 138   1        ///  Configuration of CCU6 Timer 12:
 139   1        ///  -----------------------------------------------------------------------
 140   1        ///  - prescaler factor is 1
 141   1        ///  - timer 12 run bit is set
 142   1        ///  - single shot mode is disabled
 143   1        ///  - timer 12 works in center aligned mode
 144   1        ///  - interrupt on period match is disabled
 145   1        ///  - interrupt on one match is disabled
 146   1      
 147   1        CCU6_T12PRL    =  0xFF;        // load CCU6 T12 period register low
 148   1        CCU6_T12PRH    =  0xFF;        // load CCU6 T12 period register lhigh
 149   1      
 150   1        ///  -----------------------------------------------------------------------
 151   1        ///  Configuration of CCU6 Timer 13:
 152   1        ///  -----------------------------------------------------------------------
 153   1        ///  - prescaler factor is 1
 154   1        ///  - timer 13 run bit is reset
 155   1        ///  - trigger control is disabled
 156   1        ///  - single shot mode is disabled
 157   1        ///  - interrupt on period match is disabled
 158   1        ///  - interrupt on compare match is disabled
 159   1      
 160   1        CCU6_T13PRL    =  0x01;        // load CCU6 T13 period register low
 161   1        CCU6_T13PRH    =  0x00;        // load CCU6 T13 period register high
 162   1      
 163   1        ///  -----------------------------------------------------------------------
 164   1        ///  Configuration of Dead-Time Control Register for Timer T12
 165   1        ///  -----------------------------------------------------------------------
 166   1      
 167   1        CCU6_T12DTCL   =  0x38;        // load CCU6 dead time control register low 
 168   1                                       // for timer T12
 169   1      
 170   1        CCU6_T12DTCH   =  0x07;        // load CCU6 dead time control register high 
 171   1                                       // for timer T12
 172   1      
 173   1        SFR_PAGE(_cc0, noSST);         // switch to page 0
 174   1      
 175   1        ///  -----------------------------------------------------------------------
 176   1        ///  Configuration of CCU6 Channel 0:
 177   1        ///  -----------------------------------------------------------------------
 178   1        ///  - compare mode 3 is selected
 179   1        ///  - T12 modulation for output CC60 is enabled
C51 COMPILER V8.04b   CC6                                                                  03/23/2008 23:18:05 PAGE 4   

 180   1        ///  - T13 modulation for output CC60 is disabled
 181   1        ///  - the trap functionality of the pin CC60 is disabled
 182   1        ///  - the compare output CC60 drives passive level while CC60ST is '0'
 183   1        ///  - the passive level of the output CC60 is '1'
 184   1        ///  - T12 modulation for output COUT60 is enabled
 185   1        ///  - T13 modulation for output COUT60 is disabled
 186   1        ///  - the trap functionality of the pin COUT60 is disabled
 187   1        ///  - the compare output COUT60 drives passive level while CC60ST is '1'
 188   1        ///  - the passive level of the output COUT60 is '1'
 189   1        ///  - dead time generation is enabled
 190   1      
 191   1        ///  - generation interrupt on flag ICC60R is disabled
 192   1        ///  - generation interrupt on flag ICC60F is disabled
 193   1      
 194   1        CCU6_CC60SRL   =  0x00;        // load CCU6 capture/compare shadow register 
 195   1                                       // low for channel 0
 196   1        CCU6_CC60SRH   =  0xC0;        // load CCU6 capture/compare shadow register 
 197   1                                       // high for channel 0
 198   1      
 199   1      
 200   1        ///  -----------------------------------------------------------------------
 201   1        ///  Configuration of CCU6 Channel 1:
 202   1        ///  -----------------------------------------------------------------------
 203   1        ///  - compare mode 3 is selected
 204   1        ///  - T12 modulation for output CC61 is enabled
 205   1        ///  - T13 modulation for output CC61 is disabled
 206   1        ///  - the trap functionality of the pin CC61 is disabled
 207   1        ///  - the compare output CC61 drives passive level while CC61ST is '0'
 208   1        ///  - the passive level of the output CC61 is '1'
 209   1        ///  - T12 modulation for output COUT61 is enabled
 210   1        ///  - T13 modulation for output COUT61 is disabled
 211   1        ///  - the trap functionality of the pin COUT61 is disabled
 212   1        ///  - the compare output COUT61 drives passive level while CC61ST is '1'
 213   1        ///  - the passive level of the output COUT61 is '1'
 214   1        ///  - dead time generation is enabled
 215   1      
 216   1        ///  - generation interrupt on flag ICC61R is disabled
 217   1        ///  - generation interrupt on flag ICC61F is disabled

⌨️ 快捷键说明

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