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

📄 main.lst

📁 基于c166的 FFT算法源程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
C166 COMPILER V6.04, MAIN                                                                  09/04/2007 08:12:56 PAGE 1   


C166 COMPILER V6.04, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN MAIN.OBJ
COMPILER INVOKED BY: C:\Keil\C166\BIN\C166.EXE MAIN.C MODV2 BROWSE MODV2 DEBUG

 stmt lvl     source

    1         //****************************************************************************
    2         // @Module        Project Settings
    3         // @Filename      MAIN.C
    4         // @Project       fft_test.dav
    5         //----------------------------------------------------------------------------
    6         // @Controller    Infineon XC167CI-16F40
    7         //
    8         // @Compiler      Keil
    9         //
   10         // @Codegenerator 2.5
   11         //
   12         // @Description   This file contains the project initialization function.
   13         //
   14         //----------------------------------------------------------------------------
   15         // @Date          2007-9-3 18:13:24
   16         //
   17         //****************************************************************************
   18         
   19         // USER CODE BEGIN (MAIN_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 (MAIN_General,2)
   32         
   33         // USER CODE END
   34         
   35         
   36         //****************************************************************************
   37         // @Macros
   38         //****************************************************************************
   39         
   40         // USER CODE BEGIN (MAIN_General,3)
   41         
   42         // USER CODE END
   43         
   44         
   45         //****************************************************************************
   46         // @Defines
   47         //****************************************************************************
   48         
   49         // USER CODE BEGIN (MAIN_General,4)
   50         
   51         // USER CODE END
   52         
   53         
   54         //****************************************************************************
   55         // @Typedefs
C166 COMPILER V6.04, MAIN                                                                  09/04/2007 08:12:56 PAGE 2   

   56         //****************************************************************************
   57         
   58         // USER CODE BEGIN (MAIN_General,5)
   59         
   60         // USER CODE END
   61         
   62         
   63         //****************************************************************************
   64         // @Imported Global Variables
   65         //****************************************************************************
   66         
   67         // USER CODE BEGIN (MAIN_General,6)
   68         
   69         // USER CODE END
   70         
   71         
   72         //****************************************************************************
   73         // @Global Variables
   74         //****************************************************************************
   75         
   76         // USER CODE BEGIN (MAIN_General,7)
   77         
   78         // USER CODE END
   79         
   80         
   81         //****************************************************************************
   82         // @External Prototypes
   83         //****************************************************************************
   84         
   85         // USER CODE BEGIN (MAIN_General,8)
   86         
   87         // USER CODE END
   88         
   89         
   90         //****************************************************************************
   91         // @Prototypes Of Local Functions
   92         //****************************************************************************
   93         
   94         // USER CODE BEGIN (MAIN_General,9)
   95         
   96         // USER CODE END
   97         
   98         
   99         //****************************************************************************
  100         // @Function      void MAIN_vInit(void) 
  101         //
  102         //----------------------------------------------------------------------------
  103         // @Description   This function initializes the microcontroller.
  104         //
  105         //----------------------------------------------------------------------------
  106         // @Returnvalue   None
  107         //
  108         //----------------------------------------------------------------------------
  109         // @Parameters    None
  110         //
  111         //----------------------------------------------------------------------------
  112         // @Date          2007-9-3
  113         //
  114         //****************************************************************************
  115         
  116         // USER CODE BEGIN (Init,1)
  117         
C166 COMPILER V6.04, MAIN                                                                  09/04/2007 08:12:56 PAGE 3   

  118         // USER CODE END
  119         
  120         void MAIN_vInit(void)
  121         {
  122  1        // USER CODE BEGIN (Init,2)
  123  1      
  124  1        // USER CODE END
  125  1      
  126  1        ///  -----------------------------------------------------------------------
  127  1        ///  Configuration of the System Clock:
  128  1        ///  -----------------------------------------------------------------------
  129  1        ///  - VCO clock used, input clock is connected
  130  1        ///  - input frequency is 8 MHz
  131  1        ///  - VCO output frequency 100 .. 150 MHz
  132  1        ///  - system clock is 20 MHz
  133  1      
  134  1        MAIN_vUnlockProtecReg();       // unlock write security
  135  1        PLLCON         =  0x7814;      // load PLL control register
  136  1      
  137  1      
  138  1        //// -----------------------------------------------------------------------
  139  1        //// Begin of Important Settings for the Start-Up File
  140  1        //// -----------------------------------------------------------------------
  141  1        ///  All following settings must be set in the start-up file. You can use 
  142  1        ///  DAvE's project file (*.dpt) to include this register values into your 
  143  1        ///  compiler EDE.
  144  1      
  145  1          ///  ---------------------------------------------------------------------
  146  1          ///  Initialization of the CPUCON1 Register:
  147  1          ///  ---------------------------------------------------------------------
  148  1          ///  - space between two vectors is 2 words
  149  1          ///  - DISWDT executable until End of Init
  150  1          ///  - segmentation is enabled
  151  1          ///  - switch context is interruptible
  152  1          ///  - branch prediction is enabled
  153  1          ///  - zero cycle jump function is enabled
  154  1      
  155  1          //// this register must be set in the start-up file
  156  1          //// CPUCON1  =  0x0007
  157  1      
  158  1          ///  ---------------------------------------------------------------------
  159  1          ///  Initialization of the VECSEG Register:
  160  1          ///  ---------------------------------------------------------------------
  161  1          ///  - start from internal program memory
  162  1      
  163  1          //// this register must be set in the start-up file
  164  1          //// VECSEG  =  0x00C0
  165  1      
  166  1          ///  ---------------------------------------------------------------------
  167  1          ///  Initialization of the SYSCON0 Register:
  168  1          ///  ---------------------------------------------------------------------
  169  1      
  170  1          //// this register must be set in the start-up file
  171  1          //// SYSCON0  =  0x0000
  172  1      
  173  1          ///  ---------------------------------------------------------------------
  174  1          ///  Initialization of the SYSCON1 Register:
  175  1          ///  ---------------------------------------------------------------------
  176  1          ///  clock prescaler for system is fpll / 1
  177  1      
  178  1          //// this register must be set in the start-up file
  179  1          //// SYSCON1  =  0x0000
C166 COMPILER V6.04, MAIN                                                                  09/04/2007 08:12:56 PAGE 4   

  180  1      
  181  1          ///  ---------------------------------------------------------------------
  182  1          ///  Initialization of the SYSCON3 Register:
  183  1          ///  ---------------------------------------------------------------------
  184  1      
  185  1          //// this register must be set in the start-up file
  186  1          //// SYSCON3  =  0x0000
  187  1      
  188  1          ///  ---------------------------------------------------------------------
  189  1          ///  Initialization of EBC

⌨️ 快捷键说明

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