C51 COMPILER V9.02   MAIN                                                                  12/11/2025 12:47:25 PAGE 1   


C51 COMPILER V9.02, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN .\output\main.obj
COMPILER INVOKED BY: D:\Keil\C51\BIN\C51.EXE source\main.c OMF2 BROWSE DEBUG PRINT(.\lst\main.lst) OBJECT(.\output\main.
                    -obj)

line level    source

   1          
   2          #ifndef _MAIN_C_
   3          #define _MAIN_C_
   4          /*********************************************************************************************************
             -************/
   5          #include "include/ca51f_config.h"               
   6          #include "include/ca51f2sfr.h"
   7          #include "include/ca51f2xsfr.h"
   8          #include "include/gpiodef_f2.h"
   9          #include "include/system_clock.h"
  10          #include <intrins.h>
  11          /*********************************************************************************************************
             -************/
  12          void main(void)
  13          {
  14   1      #ifdef LVD_RST_ENABLE
  15   1              LVDCON = 0xE1;                                  //设置LVD复位电压为2V
  16   1      #endif
  17   1              //注意：上电后默认系统时钟为IRCH, 如需切换时钟，可在ca51f_config.h选择其他系统时钟定义
  18   1      #if (SYSCLK_SRC == PLL)
                      Sys_Clk_Set_PLL(PLL_Multiple);  //设置系统时钟为PLL，PLL_Multiple为倍频倍数
              #elif (SYSCLK_SRC == IRCL)
                      Sys_Clk_Set_IRCL();                                                     //设置系统时钟为IRCL
              #elif (SYSCLK_SRC == XOSCL)
                      Sys_Clk_Set_XOSCL();                                            //设置系统时钟为XOSCL
              #endif
  25   1              while(1)
  26   1              {
  27   2              }
  28   1      }
  29          #endif


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =      5    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
   EDATA SIZE       =   ----    ----
   HDATA SIZE       =   ----    ----
   XDATA CONST SIZE =   ----    ----
   FAR CONST SIZE   =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)
