C51 COMPILER V8.01   MAIN                                                                  09/05/2017 17:41:29 PAGE 1   


C51 COMPILER V8.01, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN main.OBJ
COMPILER INVOKED BY: C:\Keil_uv3\C51\BIN\C51.EXE main.c BROWSE NOAREGS DEBUG OBJECTEXTEND

line level    source

   1          
   2          #define         uCHAR   unsigned char
   3          #define         uINT    unsigned int
   4          
   5          #include "REG_MA82G5Dxx.H"
   6          #include "delay.H"
   7          
   8          
   9          #define    ISP_ENABLE          0x80              // Set ISP Enable
  10          #define    ISP_DISABLE         0x00              // Set ISP Disable
  11          
  12          
  13          
  14          
  15          void Initial_PCA(void)
  16          {
  17   1              
  18   1              CCAPM0 = 0x42;                                                          //set 8bit PWM
  19   1              CCAP0H = 0x80;                                                          //duty cycle = 50%
  20   1              CMOD = 0x02;                                                            //CPS2 ~ CPS0 = 0, 0, 1. (sysclk) / 2
  21   1              CCON = 0x40;                                                            //PCA run, 12MHz / 2 / 256 = 23.4KHz.
  22   1              P2M0 = 0x04;
  23   1              SFRPI = 0x01;
  24   1              P2M1 = 0x00;
  25   1              SFRPI = 0x00;
  26   1              
  27   1      }
  28          
  29          void main()
  30          {
  31   1      
  32   1              Initial_PCA();
  33   1      
  34   1              while(1);
  35   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     29    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


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