C51 COMPILER V9.02   MAIN                                                                  12/11/2025 12:38:27 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          #ifndef _MAIN_C_
   2          #define _MAIN_C_
   3          /*********************************************************************************************************
             -************/
   4          #include "include/ca51f_config.h"               
   5          #include "include/ca51f2sfr.h"
   6          #include "include/ca51f2xsfr.h"
   7          #include "include/gpiodef_f2.h"
   8          #include "include/system_clock.h"
   9          
  10          #include "include/uart.h"
  11          #include "include/sample.h"
  12          #include "include/delay.h"
  13          #include "include/irc.h"
  14          #include <intrins.h>
  15          /*********************************************************************************************************
             -************
  16                          说明：SAMPLE用于实现红外遥控接收等功能时，节省软件代码，方便开发。
  17          **********************************************************************************************************
             -***********/
  18          void main(void)
  19          {
  20   1      #ifdef LVD_RST_ENABLE
  21   1              LVDCON = 0xE1;                                  //设置LVD复位电压为2V
  22   1      #endif
  23   1              
  24   1      #if (SYSCLK_SRC == PLL)
                      Sys_Clk_Set_PLL(PLL_Multiple);  //设置系统时钟为PLL，PLL_Multiple为倍频倍数
              #endif
  27   1              
  28   1      #ifdef UART0_EN
  29   1              Uart0_Initial(UART0_BAUTRATE);  //初始化UART0
  30   1      #endif
  31   1              
  32   1      #ifdef UART1_EN
                      Uart1_Initial(UART1_BAUTRATE);  //初始化UART1
              #endif
  35   1      
  36   1      #ifdef UART2_EN
                      Uart2_Initial(UART2_BAUTRATE);  //初始化UART2
              #endif
  39   1              
  40   1              EA = 1;                                                                                                 //开全局中断
  41   1      
  42   1      #ifdef PRINT_EN
                      uart_printf("Sample Demo Code\n");
              #endif
  45   1                                      
  46   1              IRC_MainLoop();
  47   1      
  48   1      }
  49          #endif
  50          
  51          
C51 COMPILER V9.02   MAIN                                                                  12/11/2025 12:38:27 PAGE 2   

  52          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     19    ----
   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)
