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

📄 main.lst

📁 开发环境为keil166
💻 LST
📖 第 1 页 / 共 2 页
字号:
C166 COMPILER V6.04, MAIN                                                                  04/06/2009 22:15:28 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       can_configure.dav
    5         //----------------------------------------------------------------------------
    6         // @Controller    Infineon XC164CS-16F20
    7         //
    8         // @Compiler      Keil
    9         //
   10         // @Codegenerator 2.8
   11         //
   12         // @Description   This file contains the project initialization function.
   13         //
   14         //----------------------------------------------------------------------------
   15         // @Date          2009-4-4 17:03:46
   16         //
   17         //****************************************************************************
   18         
   19         // USER CODE BEGIN (MAIN_General,1)
   20          //CAN通讯接收完成 屏蔽码验证码设置正确 串口可以发送数据 串口可以控制CAN发送数据
   21          // 164接收正常 串口调试助手有问题!!!程序正确
   22         // USER CODE END
   23         
   24         
   25         
   26         //****************************************************************************
   27         // @Project Includes
   28         //****************************************************************************
   29         
   30         #include "MAIN.H"
   31         
   32         // USER CODE BEGIN (MAIN_General,2)
   33         
   34         // USER CODE END
   35         
   36         
   37         //****************************************************************************
   38         // @Macros
   39         //****************************************************************************
   40         
   41         // USER CODE BEGIN (MAIN_General,3)
   42         
   43         // USER CODE END
   44         
   45         
   46         //****************************************************************************
   47         // @Defines
   48         //****************************************************************************
   49         
   50         // USER CODE BEGIN (MAIN_General,4)
   51         
   52         // USER CODE END
   53         
   54         
   55         //****************************************************************************
C166 COMPILER V6.04, MAIN                                                                  04/06/2009 22:15:28 PAGE 2   

   56         // @Typedefs
   57         //****************************************************************************
   58         
   59         // USER CODE BEGIN (MAIN_General,5)
   60         
   61         // USER CODE END
   62         
   63         
   64         //****************************************************************************
   65         // @Imported Global Variables
   66         //****************************************************************************
   67         
   68         // USER CODE BEGIN (MAIN_General,6)
   69         
   70         // USER CODE END
   71         
   72         
   73         //****************************************************************************
   74         // @Global Variables
   75         //****************************************************************************
   76         
   77         // USER CODE BEGIN (MAIN_General,7)
   78         unsigned char can_data[10]={0};
   79         unsigned char can_data1[10]={0x02,0x20,0};
   80         unsigned char can_data2[10]={0x02,0x21,0};
   81         unsigned char can_data3[10]={0x02,0x30,0};
   82         unsigned char can_data4[10]={0x02,0x90,0};
   83         unsigned char can_data5[10]={0x02,0x91,0};
   84         unsigned char can_data6[10]={0x02,0x92,0};
   85         unsigned char can_data7[10]={0x02,0x93,0};
   86         unsigned char can_data8[10]={0x02,0x94,0};
   87         unsigned char can_data9[10]={0x02,0x95,0};
   88         unsigned char can_data10[10]={0x02,0xb0,0};
   89         unsigned char can_data11[10]={0x02,0xb1,0};
   90         unsigned char can_data12[10]={0x02,0xb2,0};
   91         unsigned char can_data13[10]={0x02,0xc0,0};
   92         
   93         unsigned char rec_data[6]={0};
   94         unsigned char asc0_rec;
   95         extern unsigned char ii;
   96         // USER CODE END
   97         
   98         
   99         //****************************************************************************
  100         // @External Prototypes
  101         //****************************************************************************
  102         
  103         // USER CODE BEGIN (MAIN_General,8)
  104         
  105         // USER CODE END
  106         
  107         
  108         //****************************************************************************
  109         // @Prototypes Of Local Functions
  110         //****************************************************************************
  111         
  112         // USER CODE BEGIN (MAIN_General,9)
  113         
  114         // USER CODE END
  115         
  116         
  117         //****************************************************************************
C166 COMPILER V6.04, MAIN                                                                  04/06/2009 22:15:28 PAGE 3   

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

  180  1      
  181  1          //// this register must be set in the start-up file
  182  1          //// VECSEG  =  0x00C0
  183  1      
  184  1          ///  ---------------------------------------------------------------------

⌨️ 快捷键说明

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